Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFailed ¶
func HandleFailed(w dns.ResponseWriter, r *dns.Msg)
HandleFailed is a HandlerFunc that returns SERVFAIL for every request it gets.
Types ¶
type DNSProxy ¶
type DNSProxy struct {
// contains filtered or unexported fields
}
type DNSServer ¶
type DNSServer struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts DNSServerOpts) (*DNSServer, error)
New returns a pointer to a DNSServer configured using opts DNSServerOpts. The returned server needs to be started using DNSServer.ListenAndServe()
func (*DNSServer) ListenAndServe ¶ added in v0.8.1
func (d *DNSServer) ListenAndServe()
ListenAndServe starts the DNSServer and waits until all listeners are up.
func (*DNSServer) PushAuthZone ¶
type DNSServerOpts ¶
Click to show internal directories.
Click to hide internal directories.