Please don't do that.

resolv.conf is a symlink to /run/systemd/resolve/stub-resolv.conf and
should remain that way -- this makes sure any changes on the network are
reflected "automatically" in the resolver's behavior, since you'd be
asking systemd-resolved rather than the libc resolver, and it already
knows about the contents of /run/systemd/resolve/resolv.conf.

If you must use global nameservers, you can certainly modify
/etc/systemd/resolved.conf's  DNS= field to add them, but be aware that
"global" nameservers don't make all that much sense. Nameservers are
per-interface, because they might not be reachable by all interfaces
when there are multiple connected.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1698023

Title:
  netplan does not allow a top-level 'nameservers' stanza

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1698023/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to