Today, Brice Gibson gleened this insight:
> I have 2 linux boxes. The first alows me to use a short name and a FQDN in
> DNS, the second doesn't can anyone tell me what I am missing?
>
> with the first machine I can do this:
>
> [root@lenster /etc]# ping hporau1
> PING hporau1 (192.168.0.20): 56 data bytes
>
> with the second machine It returns the FQDN:
>
> [root@lifw01 namedb]# ping hporau1
> PING hporau1.fantasyentertainment.com (192.168.0.20) from 192.168.0.50 :
> 56(84)
Well, my first question is why does it matter?
But, to answer your question, I suspect that you have an entry in
/etc/hosts on the first machine that looks like this:
192.168.0.20 hporau1 #OR
192.168.0.20 hporau1.fantasyentertainment.com hporau1
and on the second machine you don't.
Another possibility is you have the entries in /etc/hosts on both
machines, but /etc/nsswitch.conf is different on the two hosts. The first
one probably looks something like:
hosts: files dns
and the second probably has the order reversed.
There are probably several other explanations that I haven't thought of
off the top of my head... for example you may also be using NIS (you'd
know it if you were, unless you just inherited administration of these
boxen and the original admins are all gone). Host name resolution is kinda
complicated.
--
PGP/GPG Public key at http://cerberus.ne.mediaone.net/~derek/pubkey.txt
------------------------------------------------------
Derek D. Martin | Unix/Linux Geek
[EMAIL PROTECTED] | [EMAIL PROTECTED]
------------------------------------------------------
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************