LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dhcp: Host name lookup failure (https://www.linuxquestions.org/questions/linux-newbie-8/dhcp-host-name-lookup-failure-945813/)

shemachi 05-18-2012 09:12 PM

dhcp: Host name lookup failure
 
I'm using Linux/Redhat and when I run this command to restart the network service:
#/etc/init.d/network restart .... I always get this error--> dhcp: Host name lookup failure
knowing that I already changed the settings in the file:

/etc/sysconfig/network-scripts/ifcfg-eth0

Can anybody tell me what I'm missing please? Thanks

es0teric 05-19-2012 02:00 PM

Could you post the contents of that file? It sounds like it either can't find a DHCP server, or that it's trying to find a host with the name "dhcp", which might imply a wrong value somewhere in a configuration file.

shemachi 05-19-2012 07:04 PM

dhcp: Host name lookup failure
 
Thanks, It worked fine now. There was a problem with the hostname as it wasn't the same in the both files
/etc/hosts and /etc/sysconfig/network ...
Thanks for your reply :)


All times are GMT -5. The time now is 06:16 PM.