Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ListenPort is the port that the DNS forwarder listens on. It has been used by the client peers also
ListenPort = 5353
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSForwarder ¶
type DNSForwarder struct {
// contains filtered or unexported fields
}
func NewDNSForwarder ¶
func NewDNSForwarder(listenAddress string, ttl uint32) *DNSForwarder
func (*DNSForwarder) Listen ¶
func (f *DNSForwarder) Listen(domains []string) error
func (*DNSForwarder) UpdateDomains ¶
func (f *DNSForwarder) UpdateDomains(domains []string)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) UpdateDomains ¶
Click to show internal directories.
Click to hide internal directories.