- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewLocalDNSServer (0.14 sec)
-
pkg/dns/client/dns_test.go
func TestDNS(t *testing.T) { d := initDNS(t, false) testDNS(t, d) } func TestBuildAlternateHosts(t *testing.T) { // Create the server instance without starting it, as it's unnecessary for this test d, err := NewLocalDNSServer("ns1", "ns1.svc.cluster.local", "localhost:0", false) if err != nil { t.Fatal(err) } // Fill the DNS table with test data fillTable(d) testCases := []struct { startsWith string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 16:17:34 UTC 2024 - 20.4K bytes - Viewed (0) -
pkg/dns/client/dns.go
} const ( // In case the client decides to honor the TTL, keep it low so that we can always serve // the latest IP for a host. // TODO: make it configurable defaultTTLInSeconds = 30 ) func NewLocalDNSServer(proxyNamespace, proxyDomain string, addr string, forwardToUpstreamParallel bool) (*LocalDNSServer, error) { h := &LocalDNSServer{ proxyNamespace: proxyNamespace,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 16:17:34 UTC 2024 - 23.9K bytes - Viewed (0) -
pkg/istio-agent/agent.go
} } } func (a *Agent) initLocalDNSServer() (err error) { // we don't need dns server on gateways if a.cfg.DNSCapture && a.cfg.ProxyType == model.SidecarProxy { if a.localDNSServer, err = dnsClient.NewLocalDNSServer(a.cfg.ProxyNamespace, a.cfg.ProxyDomain, a.cfg.DNSAddr, a.cfg.DNSForwardParallel); err != nil { return err } a.localDNSServer.StartDNS() } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 05 10:02:56 UTC 2024 - 26.7K bytes - Viewed (0)