PDA

View Full Version : NetworkManager, resolv.conf, DNS search path


rossgrady
2006-11-29, 10:32 AM CST
The NetworkManager FAQ says to check with your distro first, so I'm checking here first. I'm running FC5. My problem is that my resolv.conf doesn't reflect the DNS search path that I have entered in my profile via system-config-network. On the DNS tab in system-config-network, for DNS search path I have mydomain.com,subdomain.mydomain.com. In my /etc/resolv.conf, I only see differentsubdomain.mydomain.com, which I believe it is getting from my DHCP server.

My /etc/resolv.conf claims to have been generated by NetworkManager, and warns against editing it. I can find the correct info in /etc/sysconfig/networking/profiles/default/resolv.conf, but apparently ifup isn't copying that to /etc/resolv.conf, or if it is, it's being overwritten by NetworkManager or whatever.

I have attempted to add the correct syntax to both /etc/dhclient-eth0.conf and /etc/dhclient.conf, to wit:

interface "eth0" {

prepend domain-name "mydomain.com subdomain.mydomain.com";
}

But that appears to have no effect.

Does anybody know which player in this little game is SUPPOSED to be in charge of the DNS search path, so that I can at least figure out who is broken, and work on fixing that portion, rather than just running in circles?

tomcat
2006-11-29, 11:35 AM CST
/sbin/dhclient-script

thyrsus
2008-07-08, 08:39 PM CDT
/sbin/dhclient appears to be unused when NetworkManager is in use, at least in Fedora 8. Were it so, the comment in /etc/resolv.conf would be

; generated by /sbin/dhclient-script

instead, /etc/resolv.conf contains

# generated by NetworkManager, do not edit!

a string which appears in the binary /usr/sbin/NetworkManager. I have not yet found a way to get NetworkManager to put an appropriate search line in /etc/resolv.conf; the GUI appears to contain no
field in which to specify the search string.