firstly, /etc/hosts is used to resolve the names of other machines existing in the network. Even if the entry is there for your machine, the hostname and domainname can be set by network DNS server also.
I would like you to paste me some of the contents of the files:-
cat /etc/host.conf
If it is "order hosts,bind" then you can set your domainname or hostname via /etc/hosts file for the IP address of your machine (not local ip 127.0.0.1).
dnsdomainname command will show your DNS domainame.
Firstly tell me:-
1. Is your computer connected to any network LAN, WAN ??
2. IF so, is any DNS domainname provided to your machine for identifying it over the network ?
3. If not, then you can probably edit /etc/hosts file to clear up the domainname.
4. Print me the output of hostname, domainname, dnsdomainname, yphostname, nisdomainname.
I suggest you to have a look at man pages for domainame for more info.
|