Problem with DHCP, /etc/hosts and GNOME

Satish Balay balay at fastmail.fm
Thu Apr 8 20:52:45 UTC 2004



On Thu, 8 Apr 2004, Keven Ring wrote:

> >>> A quick browse through the networking scripts suggests that the
> >>> hostname will only change if it is "localhost".

> >> It's in the /etc/sysconfig/network-scripts/network-functions
> >> script.  There is a function called need_hostname().  Returns 0
> >> if the current hostname is "localhost", "localhost.localdomain"
> >> or "(none)".

useful info. thanks..

> DHCP Client:  Please set my host name to xxx.yyy.zzz.
> DHCP Server:  No chance.  Your host name is aaa.bbb.ccc
> DHCP Client:  Screw you.  I'm setting my hostname to mmm.nnn.ooo
> 
> Fine.  Is everyone happy now?

Exactly whats required for laptops :) - with one more step

DHCP Client: I'll make my own DNS entry in /etc/hosts for mmm.nnn.ooo

Satish





More information about the fedora-list mailing list