Question on nmcli on Ubuntu 20.04
Tom H
tomh0665 at gmail.com
Fri Dec 18 19:08:14 UTC 2020
On Fri, Dec 18, 2020 at 5:49 PM Jerry Geis <jerry.geis at gmail.com> wrote:
>
> I am using this command:
>
> nmcli connection modify 'Wired connection 1' ipv4.method manual ipv6.method ignore autoconnect yes ipv4.addr 192.168.1.19/22 gw4 192.168.1.1 ipv4.dns 192.168.1.14
>
> to set static address and the DNS. everything seems to work except
> setting the DNS.
>
< The /etc/resolv.conf file still shows 127.0.0.53 and not the
> 192.168.1.14
>
> Why is that ? What did I not do correctly ?
What's the output of "resolvectl"?
[ or of the following ]
ls -l /etc/resolv.conf
cat /run/systemd/resolve/resolv.conf
More information about the ubuntu-users
mailing list