Package org.xbill.DNS.tools
Class jnamed
java.lang.Object
org.xbill.DNS.tools.jnamed
A very basic implementation of a DNS server.
- Author:
- Brian Wellington <bwelling@xbill.org>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrimaryZone(String zname, String zonefile) voidaddSecondaryZone(String zone, String remote) voidaddTCP(InetAddress addr, int port) voidvoidaddUDP(InetAddress addr, int port) byte[]errorMessage(Message query, int rcode) findBestZone(Name name) findExactMatch(Name name, int type, int dclass, boolean glue) byte[]formerrMessage(byte[] in) getCache(int dclass) static voidvoidserveTCP(InetAddress addr, int port) voidserveUDP(InetAddress addr, int port) void
-
Constructor Details
-
jnamed
- Throws:
IOExceptionZoneTransferException
-
-
Method Details
-
addPrimaryZone
- Throws:
IOException
-
addSecondaryZone
- Throws:
IOExceptionZoneTransferException
-
addTSIG
- Throws:
IOException
-
getCache
-
findBestZone
-
findExactMatch
-
formerrMessage
public byte[] formerrMessage(byte[] in) -
errorMessage
-
TCPclient
-
serveTCP
-
serveUDP
-
addTCP
-
addUDP
-
main
-