nmcli

Chris Green cl at isbd.net
Thu Feb 18 16:41:54 UTC 2021


On Thu, Feb 18, 2021 at 11:30:45AM -0500, Jerry Geis wrote:
> When I do nmcli everything works except updating the /etc/resolv.conf
> 
>  nmcli connection modify "Wired Connection 1" ipv4.method manual
> ipv6.method ignore autoconnect yes ipv4.addr 192.168.1.2/23 gw4 192.168.1.1
> ipv4.dns 8.8.8.8
> 
> How do I update /etc/resolv.conf ?
> 
It's one of the things that systemd has taken control of.

There's some configuration of it in /etc/systemd/resolv.conf but that
isn't the whole story.  If you start from 'man systemd-resolved' you
should be able to work out how it all works.

-- 
Chris Green




More information about the ubuntu-users mailing list