|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.xbill.DNS.SimpleResolver
An implementation of Resolver that sends one query to one server. SimpleResolver handles TCP retries, transaction security (TSIG), and EDNS0.
Resolver,
TSIG,
OPTRecord| Field Summary | |
static int |
PORT
The default port to send queries to |
| Constructor Summary | |
SimpleResolver()
Creates a SimpleResolver. |
|
SimpleResolver(String hostname)
Creates a SimpleResolver that will query the specified host |
|
| Method Summary | |
Message |
send(Message query)
Sends a message, and waits for a response. |
Object |
sendAsync(Message query,
ResolverListener listener)
Asynchronously sends a message, registering a listener to receive a callback. |
static void |
setDefaultResolver(String hostname)
Sets the default host (initially localhost) to query |
void |
setEDNS(int level)
Sets the EDNS version used on outgoing messages (only 0 is meaningful) |
void |
setIgnoreTruncation(boolean flag)
Sets whether truncated responses will be returned |
void |
setPort(int port)
Sets the port to communicate with on the server |
void |
setTCP(boolean flag)
Sets whether TCP connections will be sent by default |
void |
setTimeout(int secs)
Sets the amount of time to wait for a response before giving up |
void |
setTSIGKey(Name name,
byte[] key)
Specifies the TSIG key that messages will be signed with |
void |
setTSIGKey(String key)
Specifies the TSIG key (with the same name as the local host) that messages will be signed with |
void |
setTSIGKey(String name,
String key)
Specifies the TSIG key that messages will be signed with |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int PORT
| Constructor Detail |
public SimpleResolver(String hostname)
throws UnknownHostException
public SimpleResolver()
throws UnknownHostException
FindServer| Method Detail |
public static void setDefaultResolver(String hostname)
public void setPort(int port)
public void setTCP(boolean flag)
public void setIgnoreTruncation(boolean flag)
public void setEDNS(int level)
public void setTSIGKey(Name name,
byte[] key)
public void setTSIGKey(String name,
String key)
public void setTSIGKey(String key)
public void setTimeout(int secs)
public Message send(Message query)
throws IOException
public Object sendAsync(Message query,
ResolverListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||