|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.spi.DNSJavaNameService
public class DNSJavaNameService
This class implements a Name Service Provider, which Java can use (starting with version 1.4), to perform DNS resolutions instead of using the standard calls.
This Name Service Provider uses dnsjava.
To use this provider, you must set the following system propery: sun.net.spi.nameservice.provider.1=dns,dnsjava
Constructor Summary | |
---|---|
protected |
DNSJavaNameService()
Creates a DNSJavaNameService instance. |
Method Summary | |
---|---|
String |
getHostByAddr(byte[] addr)
Performs a reverse DNS lookup. |
InetAddress[] |
lookupAllHostAddr(String host)
Performs a forward DNS lookup for the host name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DNSJavaNameService()
Uses the sun.net.spi.nameservice.nameservers, sun.net.spi.nameservice.domain, and java.net.preferIPv6Addresses properties for configuration.
Method Detail |
---|
public InetAddress[] lookupAllHostAddr(String host) throws UnknownHostException
lookupAllHostAddr
in interface sun.net.spi.nameservice.NameService
host
- The host name to resolve.
UnknownHostException
public String getHostByAddr(byte[] addr) throws UnknownHostException
getHostByAddr
in interface sun.net.spi.nameservice.NameService
addr
- The ip address to lookup.
UnknownHostException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |