On Linux Mint, when I view the /etc/resolv.conf
file, the first comment states that the /etc/resolv.conf
file is generated by resolvconf(8)
.
~ $ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
To paraphrase the resolvconf(8)
man page:
the resolvconf program is run by DHCP clients such as dhclient
I run dhclient wlan0
.
~ $ dhclient wlan0
Dhclient should cause the resolvconf
program to update /etc/resolv.conf
. The /var/lib/dhcp/dhclient.leases
file verifies that I am able to lease the IP address of the nameserver (192.168.0.6).
~ $ cat /var/lib/dhcp/dhclient.leases
lease {
interface "wlan0";
. . .
option domain-name-servers 192.168.0.6;
. . .
}
However, the /etc/resolv.conf
file is not updated. The /etc/resolv.conf
file has nameserver 127.0.1.1.
~ $ cat /etc/resolv.conf
# 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 127.0.1.1
search software.eng.apl
There are no nameservers listed in /etc/network/interfaces
.
~ $ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
I am not sure what I am missing here to get the /etc/resolv.conf
file to update using the nameserver being leased from the DHCP server. The DHCP server is a Linux CentOS machine using DHCPD.
/etc/resolv.conf
a file or a symlink?/etc/resolv.conf
is symbolically linked to/run/resolvconf/resolv.conf
. Both files are identical. Thanks for the suggestion. I'll chase this and see if it turns into an answer to the problem.nameserver 127.0.1.1
, you are running some kind of nameserver or DNS proxy yourself. That proxy in turn will use the nameserver provided bydhclient
. If you really want this to be visible inresolv.conf
, disable your DNS proxy.