HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free and registered users see less advertising! If you just want to browse through the existing questions, just select the forum that you want to visit from the selection below. Otherwise, click here to register!. We highly recommend that you print a copy of our Guide for New Members. Enjoy!

stop dhcp client changing hostname

Linux fedora core 2
GNOME

How can I stop dhcp client chaning hostname that it gets from dhcp server. In sort I want to have hostname equal to xxxxx.test.com instead of dch<ip address>.test.com.
I also changed HOSTNAME = xxxxx.test.com in \etc\sysconfig\network and still getting following alert message:

Could not look up internet address for xxxxx. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding xxxxx to the file /etc/hosts.

Re: stop dhcp client changing hostname

Originally Posted by skskal

Linux fedora core 2
GNOME

How can I stop dhcp client chaning hostname that it gets from dhcp server. In sort I want to have hostname equal to xxxxx.test.com instead of dch<ip address>.test.com.
I also changed HOSTNAME = xxxxx.test.com in \etc\sysconfig\network and still getting following alert message:

Could not look up internet address for xxxxx. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding xxxxx to the file /etc/hosts.

Log in Anyway Try Again

Any input to resolve this issue is appreciated.
Thanks

Found solution to the above mentioned alert message in one of the forum.
What I did is, I edited line 127.0.0.1 localhost.localdomain localhosts in /etc/hosts file as below and restarted machine.

Re: stop dhcp client changing hostname

Originally Posted by skskal

Originally Posted by skskal

Linux fedora core 2
GNOME

How can I stop dhcp client chaning hostname that it gets from dhcp server. In sort I want to have hostname equal to xxxxx.test.com instead of dch<ip address>.test.com.
I also changed HOSTNAME = xxxxx.test.com in \etc\sysconfig\network and still getting following alert message:

Could not look up internet address for xxxxx. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding xxxxx to the file /etc/hosts.

Log in Anyway Try Again

Any input to resolve this issue is appreciated.
Thanks

Found solution to the above mentioned alert message in one of the forum.
What I did is, I edited line 127.0.0.1 localhost.localdomain localhosts in /etc/hosts file as below and restarted machine.