After updating /etc/network/interfaces
with something very similar to below, how do I get /etc/resolv.conf
to update? I tried (as root) resolver -u
, service networking restart
but they didn't work. I also fixed the symlink for resolv.conf
and tried resolver -u
again. Finally in frustration I rebooted, which did fix the problem by rebuilding /etc/resolv.conf
.
Ubuntu 12.04, 64bit server, all the latest patches installed.
Example /etc/network/interfaces
:
iface eth0 inet static
address 192.168.3.3
netmask 255.255.255.0
gateway 192.168.3.1
dns-search example.com
dns-nameservers 192.168.3.45 192.168.8.10