public final class

DNSNameService

extends Object
implements NameService
java.lang.Object
   ↳ sun.net.spi.nameservice.dns.DNSNameService

Summary

Public Constructors
DNSNameService()
Public Methods
String getHostByAddr(byte[] addr)
Reverse lookup code.
InetAddress[] lookupAllHostAddr(String host)
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.net.spi.nameservice.NameService

Public Constructors

public DNSNameService ()

Throws
Exception

Public Methods

public String getHostByAddr (byte[] addr)

Reverse lookup code. I.E: find a host name from an IP address. IPv4 addresses are mapped in the IN-ADDR.ARPA. top domain, while IPv6 addresses can be in IP6.ARPA or IP6.INT. In both cases the address has to be converted into a dotted form.

public InetAddress[] lookupAllHostAddr (String host)