Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(fallbackDNS ...string) dns.Repository
New returns a new DNSCore as a dns.Repository
Types ¶
type DNSCore ¶
type DNSCore struct {
// contains filtered or unexported fields
}
DNSCore adds a basic Answer / Fallback interaction for miekg's DNS implementation (used on the transport layer)
It holds a list of strings which will be the fallback domain-name servers to contact if a domain's IP is requested but there no records for it
func (*DNSCore) Answer ¶
Answer will take the IP address populated in the store.Response `r`, and append it as a DNS response to the dns.Msg `m`'s Answer slice
Click to show internal directories.
Click to hide internal directories.