Okay. I spent some time rewriting my mailet. I replaced InetAddress.getByAddress() with org.apache.james.dnsserver.DNSServer.getByName(), and passing it an IP address string. It returns an instance of InetAddress.

If then I call org.xbill.DNS.Address.getHostName(), passing it that InetAddress instance, it throws a java.net.UnknownHostException (unknown address).

However, if I call getHostName() on that instance of InetAddress, it yields the correct hostname.

Any ideas?

-Mike Bryant.


On Nov 10, 2006, at 10:08 AM, Noel J. Bergman wrote:

Hmm. good question, Stefano. It uses InetAddress.getByAddress().

That means it bypasses our DNS support and uses whatever InetAddress chooses
to use for resolution.

We really should modify the environment to force InetAddress to use dnsjava
as the DNS resolver.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to