PDA

View Full Version : resolv.conf not replaced


testosaf1
1st November 2010, 07:07 AM
Hi there
I'm a bit lost here. I use Fedora 13 (minimal installation), ISC DHCP server 4.1.1-P1. I'm running Fedora 13 too on a separate machine (minimal installation) with ISC DHCPclient 4.1.1-P1. My goal is to do some IPv6 testing.
When I use the DHCP client manually (dhclient -6 -timeout 5 -d -v eth0), the client retrieves and installs a dynamically assigned IPv6 address. Additionally, the client gets 1 DNS resolver address and 1 DNS search list. The resolver address and DNS search list always get written into /etc/resolv.conf. Perfect, exactly what I need.
But when I do a "service network restart" or restart my system (which should trigger the same, as far as I understood), the DNS resolver addr and the search list get written into /etc/resolv.conf.save and the /etc/resolv.conf stays as before. How can I change this behavior? I don't need the .save file, I just want to have /etc/resolv.conf replaced by the latest DNS information.
Any help is very much appreciated.

stevea
4th November 2010, 11:00 AM
All of this is controlled by the RH network configuration scripts.

Start looking here ...
/sbin/dhclient-script

testosaf1
4th November 2010, 10:23 PM

Thanks, I was already looking at this script. I thought there would be an easier way how to change the behavior. To me, it doesn't make sense how resolv.conf is handled.