>> 
>> On Wed, Jul 24, 2002 at 04:27:54PM +1000, Alan L Tyree wrote:
>> > 
>> > 
>> > >> Do you have "bigdog" in your /etc/hosts file on sage?
>> > >> 
>> > >> /etc/hosts on sage should look something like this
>> > >> 
>> > >> 127.0.0.1       localhost
>> > >> 192.168.1.1     biogdog.my.home         bigdog
>> > >> 
>> > >> {assuming bigdog's IP address is 192.168.1.1, of course}
>> > >> 
>> > Yep. On all machines.
>> > 
>> > The only thing that I have noticed that is strange is:
>> > 
>> > [alant@sage alant]$ domainname
>> > (none)
>> > 
>> > [alant@sage alant]$ hostname
>> > sage.my.home
>> > 
>> 
>> >From memory things should be like so
>> 
>> kermit:/usr/src# hostname -s
>> kermit
>> kermit:/usr/src# hostname -d
>> inodes.org
>> kermit:/usr/src# hostname -f
>> kermit.inodes.org
>> kermit:/usr/src#

[alant@sage alant]$ hostname
sage.my.home
[alant@sage alant]$ hostname -s
sage
[alant@sage alant]$ hostname -f
sage.my.home
[alant@sage alant]$ hostname -d
my.home


>> 
>> the way this works is that at system startup 
>> hostname kermit
>> is run this happens on a debian box because kermit lives in
>> /etc/hostname should be similar on redhat

The RH documentation says that the name in /etc/sysconfig/network
should be fully qualified and that the name in /etc/HOSTNAME should be
the same. That produces the above results.

>> 
>> the domains comes from etc/hosts
>> in etc/hosts
>> you should have
>> 192.168.1.x kermit.inodes.org kermit

My /etc/hosts file (on all three boxen) is:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost
192.168.1.1     sage.my.home    sage
192.168.1.2     bigdog.my.home  bigdog
192.168.1.3     chickie.my.home chickie

But that file has been unchanged right along, so that domainname
couldn't be feeding from that file.

It is very frustrating.

>> 
>> so the problem may be that some where "hostname sage.my.home" is being run
>> instead of just "hostname sage"
>> 
>> I'm pretty sure this is how it works. Had to work it out a while back
>> for some sort of similar problem.o
>> Basically you have to have an entry for your own hostname and ip address
>> in /etc/hosts for things to work right. Having an entry in DNS somewhere
>> probably works as well.
>> 
>> -- 
>> John
>> http://www.inodes.org/
>> 

-- 
------------------------------------------------------
Alan L Tyree    [EMAIL PROTECTED]
http://www.law.usyd.edu.au/~alant
Tel: +61 2 4782 2670
Mobile: +61 419 638 170
Fax: +61 2 4782 7092
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to