I'm trying to add a search line to /etc/resolv.conf
I've added it directly, as an append
command in /etc/dhcp/dhclient.conf
and as a nameservers
block in /etc/netplan/50-cloud-init.yaml
.
After roughly an hour, the dhcp and netplan files are intact, but resolv.conf has reverted to not having my search.
I haven't changed /etc/network/interfaces
because it says "ifupdown has been replaced by netplan(5) on this system."
Any thoughts on what might be overwriting /etc/resolv.conf besides those two things?
This is ubuntu 18.04 on EC2.