Skip to content

Tag: dns

Java failure in looking up the MX record for specific domain

Here’s a piece of code demonstrating a case where the Java standard extensions for working with DNS fail to correctly look up the MX record for a specific domain, while the dig utility has no problem doing so. I have replicated this across different machines, networks, and operating systems (AWS Ubuntu,…

A strange UnknownHostException

In a web project . I see the log: but when I ping example.com, it’s ok, I also telnet example.com 2181 successfully! I found the similar question so I run the DomainResolutionTest in my Server java DomainResolutionTest example.com but it’s ok ! env: java version “1.6.0_25” Java(TM) SE …