|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dalsemi.tininet.dns.DNSClient
The DNSClient
class allows DNS (Domain Name System)
lookups per RFC 1035. Can perform forward or reverse
lookups.
Constructor Summary | |
DNSClient()
Create an instance of DNSClient . |
Method Summary | |
String[] |
getByIP(byte[] ip)
Performs a reverse DNS lookup. |
String[] |
getByIP(String ip)
Performs a reverse DNS lookup. |
String[] |
getByName(String name)
Performs a DNS lookup. |
void |
setDNSTimeout(int timeout)
Sets the DNS timeout. |
void |
setPrimaryDNS(String dns1)
Sets the primary DNS server to use for resolution. |
void |
setSecondaryDNS(String dns2)
Sets the secondary DNS server to use for resolution. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DNSClient()
DNSClient
.Method Detail |
public void setDNSTimeout(int timeout)
timeout
- Set to 0 for exponential backoff timeout or
non-zero value for single timeout in milliseconds.public void setPrimaryDNS(String dns1)
dns1
- IP address of DNS Serverpublic void setSecondaryDNS(String dns2)
dns2
- IP address of DNS Serverpublic String[] getByIP(String ip)
ip
- Address to look upnull
for failed lookuppublic String[] getByIP(byte[] ip)
ip
- Address to look upnull
for failed lookuppublic String[] getByName(String name)
name
- FQDN to look upnull
for failed lookup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |