Skip to content
Advertisement

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, Linode CentOS, local Windows). Meanwhile, here’s dig: What could

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 Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed

Advertisement