Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DNSMakeCurrentTime ¶
DNSMakeCurrentTime creates a responder that returns the current sever time
Types ¶
type DNSServer ¶
type DNSServer struct { LocalMap map[string](*DNSEntry) LookupFuncs []func(query string) *DNSEntry NSNames []string SoaMBox string SpoofRecursive bool Logger Logger }
DNSServer contains the configuration of the server.
func NewDNSServer ¶
NewDNSServer creates an empty DNSServer object.
func (*DNSServer) ListenAndServe ¶
ListenAndServe will handle queries
Click to show internal directories.
Click to hide internal directories.