Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrHTTPStatus = errors.New("bad HTTP status")
)
Functions ¶
func NewResolver ¶
func NewResolver(settings ResolverSettings) *net.Resolver
NewResolver creates a DNS over HTTPs resolver.
Types ¶
type ResolverSettings ¶
type ResolverSettings struct { DoHProviders []provider.Provider SelfDNS SelfDNS Timeout time.Duration }
func (*ResolverSettings) Lines ¶
func (s *ResolverSettings) Lines(indent, subSection string) (lines []string)
func (*ResolverSettings) String ¶
func (s *ResolverSettings) String() string
type SelfDNS ¶
type ServerSettings ¶
type ServerSettings struct { Resolver ResolverSettings Port uint16 Cache cache.Settings Blacklist blacklist.Settings }
func (*ServerSettings) Lines ¶
func (s *ServerSettings) Lines(indent, subSection string) (lines []string)
func (*ServerSettings) String ¶
func (s *ServerSettings) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.