public class DNSTestingServer extends Object implements ResponseGenerator
Modifier and Type | Field and Description |
---|---|
protected org.xbill.DNS.Zone |
zone |
Constructor and Description |
---|
DNSTestingServer(String address,
String porta) |
Modifier and Type | Method and Description |
---|---|
byte[] |
errorMessage(org.xbill.DNS.Message query,
int rcode) |
byte[] |
formerrMessage(byte[] in) |
byte[] |
generateReply(byte[] in,
int length) |
byte[] |
generateReply(org.xbill.DNS.Message query,
int length,
Socket s) |
void |
setData(Map<String,List<?>> map) |
public DNSTestingServer(String address, String porta) throws org.xbill.DNS.TextParseException, IOException
org.xbill.DNS.TextParseException
IOException
public byte[] generateReply(org.xbill.DNS.Message query, int length, Socket s) throws IOException
IOException
public byte[] formerrMessage(byte[] in)
public byte[] errorMessage(org.xbill.DNS.Message query, int rcode)
public byte[] generateReply(byte[] in, int length)
generateReply
in interface ResponseGenerator
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.