Posts: 99
Joined: Sat Dec 22, 2012 2:36 pm


Wed Dec 09, 2015 8:44 pm


after few hour searching and testing i found very strange behaviour of reslofconf command.

If you dont change hostname (raspi-config) dns-namservers attribute in /etc/network/interface wouldnt be implemented in /etc/resolv.conf file (very, very strange logic) . Some information about that is written in /etc/resolveconf.conf , and if you put info about DNS in that file it will be implemented in resolv.conf without changing hostname.

Everything that is probably change in few last release of wheezy distribution. My old installation work without that normally.


Posts: 5
Joined: Tue Dec 15, 2015 6:31 pm

Re: resolv.conf

Tue Dec 15, 2015 7:01 pm

Hi Dubravko,
I've noticed this change in behaviour too. It doesn't seem to be an issue if you're using DHCP (and dhcpcd), but for me, I only use that when I'm setting up a new Pi.
For static IP addressed hosts, the most reliable way seems to be to add an interface specific entry into /etc/network/interfaces.
This suits me as I use virtual interfaces, so I can set my "internal only" IP to use my internal DNS server, and the "normal" IP to query public DNS servers (eg. google)

Return to “Networking and servers”