How to configure RHEL4 to obtain DNS server automattically
My problem is that i have a broadband connection and it supports DHCP. For this i need to update the resolv.conf file with the DNS server names.
Earlier i used to do it manually. Can we do something so that the resolv.conf file gets updated itself and we do not have to go there and update evrytime.
i saw the following some where :-
we update /etc/sysconfig/network-scripts/ifcfg-eth0 with :-
PEERDNS=<answer>, where <answer> is one of the following:
yes — Modify /etc/resolv.conf with information from the server. If using DHCP, then yes is the default.
no — Do not modify /etc/resolv.conf.
Please explain the above to me. also tell me does it work ? Is there a way to do it via a GUI.