Michael Vincent van Rantwijk, MultiZilla wrote:
> What exactly is this supposed to do:
> 
> var currentHost = "140.211.166.81"; // example code
> nsIDNSService.resolve(currentHost, 2).canonicalName;

nsHostResolver::ResolveHost has:

450             // try parsing the host name as an IP address literal to short
451             // circuit full host resolution.  (this is necessary on some
452             // platforms like Win9x.  see bug 219376 for more details.)

That might be what you're hitting here.  It looks like in this case nothing 
will 
actually get filled in in the DNS record other than the IP address.

-Boris

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to