POM
<!-- https://mvnrepository.com/artifact/dnsjava/dnsjava -->
<dependency>
<groupId>dnsjava</groupId>
<artifactId>dnsjava</artifactId>
<version>3.0.0-next.1</version>
</dependency>
Java
@Test
public void test() throws UnknownHostException {
InetAddress addr = Address.getByName("blog.uhaka.com");
System.out.println(addr);
}