On Wed, Oct 07, 2009 at 04:14:11PM -0700, Henry B. Hotz wrote:
> 
>  On Oct 7, 2009, at 2:09 PM, Kyle McDonald wrote:
> 
> > Will Fiveash wrote:
> >> On Wed, Oct 07, 2009 at 03:29:55PM -0500, Douglas E. Engert wrote:
> >>
> >>> For what it is worth, Kerberos usually want the hostname command to 
> >>> return
> >>> the FQDN, rather then the short name. We always install a new system from
> >>> the start using the FQDN.
> >>>
> >>
> >> It shouldn't matter.  Here inside Sun the norm is for hostname to be set
> >> to the short form.
> >>
> > Which is where I picked up the habit. ;)
> 
>  I've picked up the opposite habit.  I believe other Kerberos distro's may be 
>  less forgiving than Sun in that respect.
> 
>  OTOH, maybe it has to do with other resolver-related configuration.  If 
>  /etc/nsswitch.conf contains:
> 
>  hosts:      files dns
> 
>  and /etc/nodename, /etc/hostname.* and/or /etc/hosts contain the short name, 
>  then don't you get the short name back from a reverse DNS lookup?  As they 
>  said in Ghostbusters, that would be "bad".
> 
>  Anyone care to elaborate on the issues?

In /etc/nsswitch.conf I have:

hosts:        files dns nis
ipnodes:      files dns nis

On my system the hostname command returns:
alton

and the reverse DNS lookup for alton's IP address returns:
$ nslookup 129.122.128.101
Server:         129.123.31.27
Address:        129.123.31.27#53

101.128.122.129.in-addr.arpa    name = alton.Central.Sun.COM.

-- 
Will Fiveash
Sun Microsystems Inc.
http://opensolaris.org/os/project/kerberos/
Sent from mutt, a sweet ASCII MUA

Reply via email to