How to manually assign a canonicalized host name?

Weijun Wang weijun.wang at oracle.com
Mon Nov 11 18:23:13 PST 2013


This is probably not Java-related, but I guess you guys might know the 
answer.

I know adding a line to /etc/hosts could resolve a host name to any IP 
address. But where can I do the reverse? I am using a tool (kvno from 
MIT krb5) now and it is trying to perform something on the argument

     The service hostnames will be canonicalized according to
     the usual rules for constructing service principals.

Where can I trick the "usual rules" so that the canonicalized output 
becomes any string I want.

Background: I am trying to mimic multiple names on my localhost but do 
not want the canonicalized output to be "localhost" again. Also my local 
ISP has this annoying "feature" that maps every unknown host name to an 
IP address that offers name suggestion and other ads.

Thanks
Max




More information about the net-dev mailing list