How to manually assign a canonicalized host name?

Weijun Wang weijun.wang at oracle.com
Mon Nov 11 21:29:27 PST 2013


rdns = false in [libdefaults] works.

ignore_acceptor_hostname seems to be for server side, which allows a 
server (acceptor) to expose itself as any name even if it only has keys 
for one name.

The /etc/hosts way also works, and I've mapped several names to 
different 127.0.1.*. At least on Linux they are all localhost.

Thanks
Max

On 11/12/13, 11:17, Bernd Eckenfels wrote:
> Hello,
>
> the hosts file can be used for both direction. Canonicalizing an IP to a
> hostname will pick the first hostname (alias) in the hosts file. (The
> first entry in the first line with the same IP).
>
> Some tools not use the hosts file directly but the resolver library.
> Then it depends on the nsswitch.conf file if the "hosts:" database has
> the "files" as first argument. (this includes JDK, so we are not
> completely offtopic :)
>
> According to the MIT documentation krb5 is doing the lookup and a
> reverse lookup, the later can be turned off. It points to getaddrinfo()
> which will consult nsswitch.conf (in some cases).
>
> http://web.mit.edu/kerberos/krb5-devel/doc/admin/princ_dns.html
>
> There is also an "ignore_acceptor_hostname" option, but not sure if that
> is related to your problem.
>
> Bernd



More information about the net-dev mailing list