LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2012, 09:12 PM   #1
shemachi
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
Smile 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

Last edited by shemachi; 05-19-2012 at 09:46 AM.
 
Old 05-19-2012, 02:00 PM   #2
es0teric
Member
 
Registered: Apr 2007
Distribution: Ubuntu
Posts: 105

Rep: Reputation: 19
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.
 
Old 05-19-2012, 07:04 PM   #3
shemachi
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Host lookup failure with Sendmail MattiasLofgren Slackware 4 05-14-2009 04:00 PM
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 08:59 PM
Host name lookup failure mauroblanc Linux - Networking 2 06-16-2005 03:09 PM
DHCP: Host name lookup failure kaloyer *BSD 2 07-08-2004 12:01 PM
sendmail: host name lookup failure GabeF Linux - Networking 3 12-04-2002 09:00 AM


All times are GMT -5. The time now is 08:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration