Package org.xbill.DNS.tools
Class jnamed
java.lang.Object
org.xbill.DNS.tools.jnamed
A very basic implementation of a DNS server.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAdditional(Message response, int flags) private voidaddAdditional2(Message response, int section, int flags) (package private) byteprivate voidaddCacheNS(Message response, Cache cache, Name name) private voidprivate voidvoidaddPrimaryZone(String zname, String zonefile) private static Stringaddrport(InetAddress addr, int port) (package private) voidvoidaddSecondaryZone(String zone, String remote) private voidvoidaddTCP(InetAddress addr, int port) voidvoidaddUDP(InetAddress addr, int port) (package private) byte[]buildErrorMessage(Header header, int rcode, Record question) (package private) byte[]byte[]errorMessage(Message query, int rcode) findBestZone(Name name) findExactMatch(Name name, int type, int dclass, boolean glue) byte[]formerrMessage(byte[] in) (package private) byte[]generateReply(Message query, byte[] in, Socket s) getCache(int dclass) static voidvoidserveTCP(InetAddress addr, int port) voidserveUDP(InetAddress addr, int port) void
-
Field Details
-
FLAG_DNSSECOK
static final int FLAG_DNSSECOK- See Also:
-
FLAG_SIGONLY
static final int FLAG_SIGONLY- See Also:
-
caches
-
znames
-
tsigs
-
-
Constructor Details
-
jnamed
- Throws:
IOExceptionZoneTransferException
-
-
Method Details
-
addrport
-
addPrimaryZone
- Throws:
IOException
-
addSecondaryZone
- Throws:
IOExceptionZoneTransferException
-
addTSIG
- Throws:
IOException
-
getCache
-
findBestZone
-
findExactMatch
-
addRRset
-
addSOA
-
addNS
-
addCacheNS
-
addGlue
-
addAdditional2
-
addAdditional
-
addAnswer
-
doAXFR
-
generateReply
-
buildErrorMessage
-
formerrMessage
public byte[] formerrMessage(byte[] in) -
errorMessage
-
TCPclient
-
serveTCP
-
serveUDP
-
addTCP
-
addUDP
-
main
-