On a server machine, I have the /etc/network/interfaces
file similar to:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.35
netmask 255.255.252.0
network 192.168.0.0
broadcast 192.168.3.255
gateway 192.168.1.1
dns-nameservers 192.168.1.3 192.168.1.4
dns-search example.com
When running resolvconf -u
, the /etc/resolv.conf
file becomes:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.3
nameserver 192.168.1.4
search pelicandd.com
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.13
Why is there a nameserver 192.168.1.13
?
Resolvconf generates
/etc/resolv.conf
using files in/etc/resolvconf/resolv.conf.d/
in the order:head
,base
,tail
. Thehead
file is almost always present and contains just the warning message about generated files. Thebase
file may also be present, but is empty by default. There might be atail
file, and this is likely the culprit in your case given that the rogue entry appears at the end.