Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseFunctions = map[string]QueryFunc{
"Dynamic": dynamicResponse,
"Static": staticResponse,
"NxError": allNxErrorResponse,
}
ResponseFunctions contains the mapptings between the response type config options and the response function
Functions ¶
func GetIPv6ForName ¶
GetIPv6ForName constructs an IPv6 name for a passed dns name
func GetNameForIPv6 ¶
GetNameForIPv6 constructs a dns name for a passed IPv6 prefix
func IPv6ToNibble ¶
IPv6ToNibble converts an IPv6 address to a bind nibble.
func NibbleToIPv6 ¶
NibbleToIPv6 will convert a bind nibble format string to an net.IP object.
func SplitPrefix ¶
SplitPrefix splits an IPv6 prefix into an address and a prefix mask.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the top-level structure containing a reference to the dns server that was constructed
func StartServer ¶
func StartServer(quit chan struct{}) *Server
StartServer starts the DNS server in a go routine, returnings a reference to the server
Click to show internal directories.
Click to hide internal directories.