public class DNSServer extends Object
Modifier and Type | Method and Description |
---|---|
void |
addAddress(InetAddress address) |
void |
addPort(int port) |
void |
addPrimaryZone(String zname,
String zonefile) |
void |
addSecondaryZone(String zone,
String remote) |
void |
addTSIG(String algstr,
String namestr,
String key) |
void |
addZone(org.xbill.DNS.Zone zone) |
byte[] |
errorMessage(org.xbill.DNS.Message query,
int rcode) |
org.xbill.DNS.Zone |
findBestZone(org.xbill.DNS.Name name) |
org.xbill.DNS.RRset |
findExactMatch(org.xbill.DNS.Name name,
int type,
int dclass,
boolean glue) |
byte[] |
formerrMessage(byte[] in) |
org.xbill.DNS.Cache |
getCache(int dclass) |
protected void |
initializeDefaults() |
protected void |
parseConfiguration(String conffile) |
void |
setAddresses(List<InetAddress> addresses) |
void |
setPorts(List<Integer> ports) |
void |
start() |
void |
stop() |
public DNSServer(String conffile) throws IOException, org.xbill.DNS.ZoneTransferException, ConfigurationException
IOException
org.xbill.DNS.ZoneTransferException
ConfigurationException
public DNSServer() throws UnknownHostException
UnknownHostException
public void start() throws UnknownHostException
UnknownHostException
public void stop()
protected void parseConfiguration(String conffile) throws ConfigurationException, IOException, org.xbill.DNS.ZoneTransferException, UnknownHostException
ConfigurationException
IOException
org.xbill.DNS.ZoneTransferException
UnknownHostException
protected void initializeDefaults() throws UnknownHostException
UnknownHostException
public void addPort(int port)
public void addAddress(InetAddress address)
public void setAddresses(List<InetAddress> addresses)
public void addZone(org.xbill.DNS.Zone zone)
public void addPrimaryZone(String zname, String zonefile) throws IOException
IOException
public void addSecondaryZone(String zone, String remote) throws IOException, org.xbill.DNS.ZoneTransferException
IOException
org.xbill.DNS.ZoneTransferException
public void addTSIG(String algstr, String namestr, String key) throws IOException
IOException
public org.xbill.DNS.Cache getCache(int dclass)
public org.xbill.DNS.Zone findBestZone(org.xbill.DNS.Name name)
public org.xbill.DNS.RRset findExactMatch(org.xbill.DNS.Name name, int type, int dclass, boolean glue)
public byte[] formerrMessage(byte[] in)
public byte[] errorMessage(org.xbill.DNS.Message query, int rcode)
Copyright © 2020. All rights reserved.