[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] What the hell is that?



Doug Laidlaw schrieb am Freitag, den 12. Juli 2002:

> I have been through this.  I have successfully installed a fresh hostname, 
> but it had to be done twice:
> 
> 1) by editing /etc/hosts.  Change the second appearance of "localhost" to the 
> first word of your new hostname.

Examples:

For machines with 'real' IP, including private IPs (replace 1.2.3.4 by your own IP):
1.2.3.4  hostname.example.com hostname

For machines with just localhost (keep the 127.0.0.1 literally):
127.0.0.1 hostname.example.com hostname localhost

> 2) by changing the hostname with linuxconfig.  Matthias was surprised that 
> both steps were necessary, and I don't know the reason, only that one or the 
> other was insufficient.   My distro is Mandrake 8.2.

Well, I can now explain why.  Leafnode takes two steps to figure its own FQDN:

#1 leafnode looks up the hostname. That's what you used linuxconfig for
(others use YaST, YaST 2 or edit /etc/rc.conf).

#2 leafnode then tries to turn the hostname into a FQDN and makes a name
lookup, which usually consults /etc/hosts first, then DNS, on some
systems also NIS, NIS+ or LDAP.


There is also a quick, but discouraged one-step approach:

Just put the next line into /etc/leafnode/config, replacing
hermes.example.com by your hostname (that must not start with localhost, BTW):
hostname=hermes.example.com

no /etc/hosts and hostname editing necessary.

> I too am using a dialup connection with dynamic allocation of IP address.  I 
> have had no problem with this.

Thank you for your mail.

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list