Remco Blaakmeer <[EMAIL PROTECTED]> writes:

> On 17 Mar 1998, Martin Bialasinski wrote:
 
> > If your /etc/hostname reads "omnic", then you should have a line like this
> > in your /etc/hosts:
> > 
> > 127.0.0.1   omnic.my.home   omnic
> > 
> > The fqdn has to be at the first place.
> 
> It doesn't work for me, though. I have /etc/hostname reading "blaakmeer"
> and lines in /etc/hosts like this:
> 
> 127.0.0.1     localhost
> 130.89.222.95 blaakmeer.student.utwente.nl blaakmeer 
> cal011205.student.utwente.nl cal011205

Strange. Works for me. I have:

127.0.0.1       localhost
127.0.0.1       haitech.martin.home     haitech
[...]

#hostname --fqdn
haitech.martin.home    

# hostname --domain
martin.home   

[change second line to "127.0.0.1       haitech haitech.martin.home" ]

# hostname --fqdn
haitech    

# hostname --domain
#     

(I dont have a /etc/domainname and /etc/hostname reads "haitech")

Also the hostname man page says:

   THE FQDN
       You can't change the FQDN (as returned by hostname --fqdn)
       or the DNS domain name (as returned by dnsdomainname) with
       this  command. The FQDN of the system is the name that the
       resolver(3) returns for the host name.


       Technically: The FQDN is the name gethostbyname(2) returns
       for  the  host  name  returned by gethostname(2).  The DNS
       domain name is the part after the first dot.              

I use hostname 2.03

Ciao,
        Martin


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to