Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPort = 53
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type DNSServer ¶
type DNSServer struct { Listen []string Block Block Override Overrider OverrideTTL time.Duration Logger slog.Interface ClientTimeout time.Duration ServerTimeout time.Duration DialTimeout time.Duration LookupInterval time.Duration Cache dnscache.Cache NotifyStartedFunc func() error Zones map[string][]string HTTP DNSHTTP // contains filtered or unexported fields }
func (*DNSServer) ListenAndServe ¶
type HTTPSQuestion ¶
type HTTPSRR ¶
type HTTPSResponse ¶
type HTTPSResponse struct { Status int // Standard DNS response code (32 bit integer) TC bool // Whether the response is truncated RD bool // Always true for Google Public DNS RA bool // Always true for Google Public DNS AD bool // Whether all response data was validated with DNSSEC CD bool // Whether the client asked to disable DNSSEC Question []HTTPSQuestion Answer []HTTPSRR Authority []HTTPSRR Additional []HTTPSRR EDNSClientSubnet string `json:"edns_client_subnet"` // IP address / scope prefix-length Comment string }
type ResolvError ¶
type ResolvError struct {
// contains filtered or unexported fields
}
ResolvError type
Click to show internal directories.
Click to hide internal directories.