import "istio.io/istio/pilot/pkg/dns"
type LocalDNSServer struct {
// contains filtered or unexported fields
}
Holds configurations for the DNS downstreamUDPServer in Istio Agent
func NewLocalDNSServer(proxyNamespace, proxyDomain string) (*LocalDNSServer, error)
func (h *LocalDNSServer) Close()
func (h *LocalDNSServer) ServeDNS(proxy *dnsProxy, w dns.ResponseWriter, req *dns.Msg)
ServerDNS is the implementation of DNS interface
func (h *LocalDNSServer) StartDNS()
StartDNS starts the DNS-over-UDP downstreamUDPServer.
func (h *LocalDNSServer) UpdateLookupTable(nt *nds.NameTable)
type LookupTable struct {
// contains filtered or unexported fields
}
Borrowed from https://github.com/coredns/coredns/blob/master/plugin/hosts/hostsfile.go
Package dns imports 7 packages (graph) and is imported by 2 packages. Updated 2021-01-09. Refresh now. Tools for package owners.