On Mon, 16 Jun 2003, David Demner wrote:
In future, please wrap your lines, and don't top-post. TIA.
RH used to use dhcpcd to get an IP address through DHCP, and there was a flag for dhcpcd so it didn't replace the resolv.conf, but this doesn't appear to be the case any more. They now use dhclient which doesn't have this flag.
Poking around, it looks like the script /sbin/dhclient-script is responsible for replacing your resolv.conf at startup. The first function in the fiel is called make_resolv_conf() and it overwrites the resolv.conf. It looks like if you add
echo nameserver 127.0.0.1 >> /etc/resolv.conf
just below the line that reads
echo search $new_domain_name >/etc/resolv.conf
it should work...
Good luck, and of course, YMMV,
Try this simpler fix first. In /etc/sysconfig/network-scripts/ifcfg- eth0,
include the line
PEERDNS=no
You can also set this by editing the interface in redhat-config-network (AKA neat) and unchecking the box on the "General" tab.
The handling of PEERDNS is done in the ifup and ifup-post scripts.
HTH.
David
I tried Mathew's solution and edited ifcfg-eth0 to include PEERDNS=no. It worked just fine. After reboot, resolv.conf was not overwritten.
Probably, David's advise would work as well.
Thank you for all the support.
Mufit
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list