Package org.minidns.source
Interface DnsDataSource
- All Known Implementing Classes:
AbstractDnsDataSource
,AsyncNetworkDataSource
,NetworkDataSource
,NetworkDataSourceWithAccounting
public interface DnsDataSource
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieve the current dns query timeout, in milliseconds.int
query
(DnsMessage message, InetAddress address, int port) queryAsync
(DnsMessage message, InetAddress address, int port, DnsDataSource.OnResponseCallback onResponseCallback) void
setTimeout
(int timeout) Change the dns query timeout for all future queries.
-
Method Details
-
query
- Throws:
IOException
-
queryAsync
MiniDnsFuture<DnsQueryResult,IOException> queryAsync(DnsMessage message, InetAddress address, int port, DnsDataSource.OnResponseCallback onResponseCallback) -
getUdpPayloadSize
int getUdpPayloadSize() -
getTimeout
int getTimeout()Retrieve the current dns query timeout, in milliseconds.- Returns:
- the current dns query timeout in milliseconds.
-
setTimeout
Change the dns query timeout for all future queries. The timeout must be specified in milliseconds.- Parameters:
timeout
- new dns query timeout in milliseconds.
-