- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 120 for dnsConfig (0.15 sec)
-
src/net/dnsconfig.go
// Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname defaultNS var defaultNS = []string{"127.0.0.1:53", "[::1]:53"} var getHostname = os.Hostname // variable for testing type dnsConfig struct { servers []string // server addresses (in host:port form) to use search []string // rooted suffixes to append to local name
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 2.2K bytes - Viewed (0) -
src/net/conf_test.go
t.Fatal(err) } if err := f.Close(); err != nil { t.Fatal(err) } return parseNSSConfFile(f.Name()) } // represents a dnsConfig returned by parsing a nonexistent resolv.conf var defaultResolvConf = &dnsConfig{ servers: defaultNS, ndots: 1, timeout: 5, attempts: 2, err: fs.ErrNotExist, } func TestConfHostLookupOrder(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:46:36 UTC 2024 - 12.3K bytes - Viewed (0) -
pkg/kubelet/network/dns/dns_test.go
hostnetwork bool dnsPolicy v1.DNSPolicy dnsConfig *v1.PodDNSConfig expectedDNSConfig *runtimeapi.DNSConfig }{ { desc: "DNSNone without DNSConfig should have empty DNS settings", dnsPolicy: v1.DNSNone, expectedDNSConfig: &runtimeapi.DNSConfig{}, }, { desc: "DNSNone with DNSConfig should have a merged DNS settings", dnsPolicy: v1.DNSNone,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
src/net/dnsclient_unix.go
lastChecked time.Time // last time resolv.conf was checked dnsConfig atomic.Pointer[dnsConfig] // parsed resolv.conf structure used in lookups } var resolvConf resolverConfig func getSystemDNSConfig() *dnsConfig { resolvConf.tryUpdate("/etc/resolv.conf") return resolvConf.dnsConfig.Load() } // init initializes conf and is only called via conf.initOnce.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 24.5K bytes - Viewed (0) -
src/net/dnsconfig_windows.go
// license that can be found in the LICENSE file. package net import ( "internal/syscall/windows" "syscall" "time" ) func dnsReadConfig(ignoredFilename string) (conf *dnsConfig) { conf = &dnsConfig{ ndots: 1, timeout: 5 * time.Second, attempts: 2, } defer func() { if len(conf.servers) == 0 { conf.servers = defaultNS } }() aas, err := adapterAddresses()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 10:25:02 UTC 2024 - 1.6K bytes - Viewed (0) -
pkg/kubelet/container/testing/fake_runtime_helper.go
} return &opts, nil, nil } func (f *FakeRuntimeHelper) GetPodCgroupParent(pod *v1.Pod) string { return "" } func (f *FakeRuntimeHelper) GetPodDNS(pod *v1.Pod) (*runtimeapi.DNSConfig, error) { return &runtimeapi.DNSConfig{ Servers: f.DNSServers, Searches: f.DNSSearches, Options: f.DNSOptions}, f.Err } // This is not used by docker runtime.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 27 11:01:00 UTC 2024 - 2.4K bytes - Viewed (0) -
src/net/dnsconfig_unix.go
package net import ( "internal/bytealg" "internal/stringslite" "net/netip" "time" ) // See resolv.conf(5) on a Linux machine. func dnsReadConfig(filename string) *dnsConfig { conf := &dnsConfig{ ndots: 1, timeout: 5 * time.Second, attempts: 2, } file, err := open(filename) if err != nil { conf.servers = defaultNS conf.search = dnsDefaultSearch() conf.err = err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 02 22:14:43 UTC 2024 - 4.1K bytes - Viewed (0) -
src/net/conf.go
// The provided Resolver is optional. nil means to not consider its options. // It also returns dnsConfig when it was used to determine the lookup order. func (c *conf) addrLookupOrder(r *Resolver, addr string) (ret hostLookupOrder, dnsConf *dnsConfig) { if c.dnsDebugLevel > 1 { defer func() { print("go package net: addrLookupOrder(", addr, ") = ", ret.String(), "\n") }() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
tools/istio-iptables/pkg/config/config.go
// traffic to port 53 will be captured. if c.RedirectDNS && !c.CaptureAllDNS { dnsConfig, err := dns.ClientConfigFromFile("/etc/resolv.conf") if err != nil { return fmt.Errorf("failed to load /etc/resolv.conf: %v", err) } c.DNSServersV4, c.DNSServersV6 = netutil.IPsSplitV4V6(dnsConfig.Servers) } return nil } // mock net.InterfaceAddrs to make its unit test become available var (
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/dns/client/dns.go
// name in our local nametable. If not, we will forward the query to the // upstream resolvers as is. if dnsConfig != nil { for _, s := range dnsConfig.Servers { h.resolvConfServers = append(h.resolvConfServers, net.JoinHostPort(s, dnsConfig.Port)) } h.searchNamespaces = dnsConfig.Search } log.WithLabels("search", h.searchNamespaces, "servers", h.resolvConfServers).Debugf("initialized DNS")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 16:17:34 UTC 2024 - 23.9K bytes - Viewed (0)