I just installed CentOS 6.5 and configured the following files:
DEVICE=eth0 HWADDR=aa:bb:dd:dd:ee:ff TYPE=Ethernet UUID=adfddfaf-9sda-adse-dfs4-asdfsdfdfg97 ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=dhcp
NETWORKING=yes HOSTNAME=localhost.IM NTPSERVERARGS=iburst
When I reboot the computer,
ifconfig eth0 shows an IP address but the
resolv.conf file is empty. All it says inside is
search IM. There are no
nameservers listed in the file.
However, after bootup, if I do
dhclient -r to release the IP address and then type
dhclient eth0 to get an IP address,
resolv.conf is populated correctly with my DNS name servers.
Why isn't this happening automatically from my configuration files? I thought
dhcp enabled in my
ifcfg-eth0 file should take care of this.
The CentOS documentation says setting
NETWORKING=yes starts networking at boot time: http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-client.html.
Any help is appreciated.