LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-15-2007, 06:20 AM   #1
rmvinodh123
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Rep: Reputation: 0
Unable to resolve hostname / IP assigned by DHCP server.


Hi,

My machine is connected to a LAN where IP is assigned by a DHCP server.
The IP of my machine has changed, so when i try to ping <hostname> i get the following error:
"Ping request could not find host . Please check the name and try again."

/etc/hosts entry:
127.0.0.1 mybox.mydomain.com localhost.localdomain localhost mybox

/etc/sysconfig/network-scripts/ifcfg-eth0 :
DHCP_HOSTNAME="mybox.mydomain.com"

cat /proc/sys/kernel/hostname :
mybox.mydomain.com

How do i update the local DNS server with the new host name and DHCP IP?

Thanks in advance.
 
Old 10-15-2007, 08:00 AM   #2
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 366

Rep: Reputation: 44
Why don't you just reserve the IP in dhcp to your MAC. You will keep the same IP
 
  


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
Unable to resolve address with DHCP enabled DaJohnson Slackware 4 09-14-2007 02:08 PM
eth0 ip assigned by dhcp , how would i know the ip address of the dhcp server where.. kublador Linux - Networking 14 05-16-2006 07:33 AM
Unable to resolve hostname adirock2 Linux - Networking 14 07-06-2005 03:08 AM
Want Numeric IP of Web Server to resolve to hostname cyrusc Linux - Newbie 2 03-19-2005 03:54 PM
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 08:37 AM


All times are GMT -5. The time now is 07:46 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration