public class ServerDNS extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ServerDNS.DNSQuestionResolver |
Constructor and Description |
---|
ServerDNS(ServerDNS.DNSQuestionResolver responder,
Dispatcher dsptch,
String iface,
int port) |
ServerDNS(ServerDNS.DNSQuestionResolver r,
Dispatcher d,
XmlConfig cfg) |
Modifier and Type | Method and Description |
---|---|
Dispatcher |
getDispatcher() |
InetAddress |
getLocalIP() |
int |
getLocalPort() |
boolean |
sendResponse(int qid,
byte qtype,
ByteChars qname,
int rcode,
boolean isauth,
boolean recursion_desired,
ResourceData[] ans,
ResourceData[] auth,
ResourceData[] info,
InetSocketAddress remote_addr,
Object tcpconn) |
void |
start() |
boolean |
stop() |
public ServerDNS(ServerDNS.DNSQuestionResolver responder, Dispatcher dsptch, String iface, int port) throws IOException
IOException
public ServerDNS(ServerDNS.DNSQuestionResolver r, Dispatcher d, XmlConfig cfg) throws IOException
IOException
public InetAddress getLocalIP()
public int getLocalPort()
public Dispatcher getDispatcher()
public void start() throws IOException
IOException
public boolean stop()
public boolean sendResponse(int qid, byte qtype, ByteChars qname, int rcode, boolean isauth, boolean recursion_desired, ResourceData[] ans, ResourceData[] auth, ResourceData[] info, InetSocketAddress remote_addr, Object tcpconn) throws IOException
IOException
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.