public abstract class DNSResponder extends Object
| Constructor and Description |
|---|
DNSResponder(DNSServerSettings settings,
DNSStore store)
Creates a DNS responder using the provided settings and DNS store.
|
| Modifier and Type | Method and Description |
|---|---|
org.xbill.DNS.Message |
processRequest(byte[] rawMessage)
Processes a DNS request and returns a DNS response.
|
org.xbill.DNS.Message |
processRequest(org.xbill.DNS.Message request)
Processes a DNS request and returns a DNS response.
|
abstract void |
start()
Starts the responder.
|
abstract void |
stop()
Stops the responder.
|
public DNSResponder(DNSServerSettings settings, DNSStore store) throws DNSException
start() is called.settings - The DNS server settings.store - The DNS store that holds the DNS record information.DNSExceptionpublic abstract void start()
throws DNSException
DNSExceptionpublic abstract void stop()
throws DNSException
DNSExceptionpublic org.xbill.DNS.Message processRequest(byte[] rawMessage)
throws DNSException
rawMessage - The raw DNS wire protocol format of the request.DNSExceptionpublic org.xbill.DNS.Message processRequest(org.xbill.DNS.Message request)
request - The DNS request message.Copyright © 2010-2015 The Direct Project. All Rights Reserved.