On Fri, 21 Dec 2001, Mathieu Nantel wrote:
> Good day, > I got this issue where most of the kerberized stuff will not work if the > hostname in the HOSTS files is the non-FQDN version of the one in > Kerberos and DNS. I.E.: > [HOSTS file] > 10.1.2.3 myserver > [DNS] > 10.1.2.3 myserver.mydomain.com > [Kerberos] > host/myserver.mydomain.com > Is there no way to tell the GSSAPI to use DNS for it's naming > requirements? Yes; you can either change your /etc/host.conf to read "order bind,hosts" instead of "order hosts,bind", in which case you might as well get rid of /etc/hosts altogether; or you can rewrite your system's gethostname() function. Otherwise, you should edit /etc/hosts to list an FQDN instead of an alias in the second column, as is documented in the hosts(5) manpage on my (Debian) system and as the standard behavior for /etc/hosts dictates. Try using 10.1.2.3 myserver.mydomain.com myserver In your hosts file; this will probably give you better results for other applications that use the resolver library, as well. Steve Langasek postmodern programmer
