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#
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 domains comes from etc/hosts
in etc/hosts
you should have
192.168.1.x kermit.inodes.org kermit
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/
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug