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 (*DNSForwarder) Listen ¶
func (f *DNSForwarder) Listen(entries []*ForwarderEntry) error
func (*DNSForwarder) UpdateDomains ¶
func (f *DNSForwarder) UpdateDomains(entries []*ForwarderEntry)
type ForwarderEntry ¶ added in v0.43.0
ForwarderEntry is a mapping from a domain to a resource ID and a hash of the parent domain list.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Start ¶
func (m *Manager) Start(fwdEntries []*ForwarderEntry) error
func (*Manager) UpdateDomains ¶
func (m *Manager) UpdateDomains(entries []*ForwarderEntry)
Click to show internal directories.
Click to hide internal directories.