I am having a little trouble understanding your situation. It's good to inlude exact error messages, thanks for that.
Quote:
Because with DHCP I can't assign IP address to the hostname that is required in /etc/hosts.
|
Why can't it? Is it because you have configured your DHCP server (or your ISP has) so that it will block connections from that host?
Why is the hostname you are seeking "required" in /etc/hosts?
Step 1:
Your /etc/hosts file should read like this
127.0.0.1 localhost.localdomain localhost (HOSTNAME U WANT)
And then any other IPv6 or IPv4 hosts you want to note.
Step 2:
Remember the last half of my first post? When a DHCP server tells you that it can't assign an ip to the hostname you have chosen, it's something with the DHCP server that needs fixing.
AS WELL, GNOME looking up your hostname is different from a DHCP server giving you an IP.
Step 3:
You could also check /etc/hostname and put your hostname there.
Then you could go to /etc/hosts and
add a line like so
127.0.0.1 (HOSTNAME U WANT)
That would fall right under your first line that reads ... localhost.localdomain ... etc