| java.lang.Object CustomDNS.VirtualDNS.ErrorMessages
ErrorMessages | public class ErrorMessages (Code) | | Routines for creating different kinds of DNS error responses.
This code was adapted from Brian Wellington's jnamed code.
See Also: org.xbill.DNS.Message |
Method Summary | |
public static Message | makeErrorMessage(Message query, short rcode) Create an arbitrary DNS error message.
Parameters: query - The query sent by the user. Parameters: rcode - The response code to use for this error. | public static Message | makeFormatErrorMessage(byte[] in) Create a format error message (FORMERR).
Parameters: in - The malformed packet. |
makeErrorMessage | public static Message makeErrorMessage(Message query, short rcode)(Code) | | Create an arbitrary DNS error message.
Parameters: query - The query sent by the user. Parameters: rcode - The response code to use for this error. A DNS error message. See Also: org.xbill.DNS.Rcode |
makeFormatErrorMessage | public static Message makeFormatErrorMessage(byte[] in)(Code) | | Create a format error message (FORMERR).
Parameters: in - The malformed packet. A DNS error message. |
|
|