Domain Lookup problem after changing from DHCP to Static

August 30th, 2012

Added “DNS1 and DNS2” entries because shimla no longer uses dhcp, so name servers have to be explicitly coded in network-scripts for the chosen interface:

[root@shimla ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82574L Gigabit Network Connection
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:30:48:bb:05:02
ONBOOT=yes
DHCP_HOSTNAME=shimla.darenmatthews.com
IPADDR=10.10.0.102
NETMASK=255.255.0.0
GATEWAY=10.10.0.254
TYPE=Ethernet
DNS1=10.10.0.254
DNS2=4.2.2.2
[root@shimla ~]#

Comments are closed.