nmcli

Chris Green cl at isbd.net
Fri Feb 19 14:06:07 UTC 2021


On Fri, Feb 19, 2021 at 08:57:10AM -0500, Jerry Geis wrote:
> > >
> > /etc/resolv.conf should be a symbolic link to either
> > /run/systemd/resolve/stub-resolv.conf (the default) or
> > /run/systemd/resolve/resolv.conf
> >
> > Both of these files are created at boot time by systemd.
> >
> > Read 'man systemd-resolved' which does explain how it works (though
> > not in the easiest way to understand IMHO).
> >
> 
> Your correct the file is a symbolic link.
> I am trying to use nmcli to set the DNS - but /etc/resolv.conf is not
> updated.
> I'm trying to find out how to update the file. It always says:
> 
> nameserver 127.0.0.53
> options edns0 trust-ad
> 
That's correct for the default configuration, 127.0.0.53 is the cached
DNS server on the system itself.

To see the 'upstream' DNS servers you are using try 'systemd-resolve --status'.

However this may just show the address of your router, which *is* the
upstream DNS server on most LANs.  If you want to know what public
servers you are using you may have to look in the router's
configuration.

-- 
Chris Green




More information about the ubuntu-users mailing list