|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.spi.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 property: 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. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
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 Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public InetAddress[] lookupAllHostAddr(String host) throws UnknownHostException
host
- The host name to resolve.
UnknownHostException
public String getHostByAddr(byte[] addr) throws UnknownHostException
addr
- The ip address to lookup.
UnknownHostException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |