Private/Internal DNS With Ubuntu 18.04
I'd like to change the nameservers on an Ubuntu 18.04 linode. I've already deactivated network helper for the linode by disabling "auto-configure networking" in Linode Manager. Do I need to select "full virtualization" instead of "paravirtualization"? When I change the contents of /etc/netplan/01-netcfg.yaml from
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: yes
to
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: yes
dhcp4-overrides:
use-dns: no
nameservers:
addresses: [ <my nameserver linode IP> ]
and then run
sudo netplan try
the changes are accepted. But when I run systemd-resolve --status
, I still get the old nameservers. The linode is set to "paravirtualization". Is this correct? Any suggestions would be appreciated:)
1 Reply
So after talking to Linode support, I was directed to look at the file /etc/systemd/network/05-eth0.network
. After renaming the file by putting a .
in front of 05-eth0.network
, the changes made in etc/netplan/01-netcfg.yaml
started showing in the output of the command systemd-resolve --status
, which is great:)