Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for dnsConfig (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    			Uid:       podUID,
    			Attempt:   attempt,
    		},
    		Labels:      newPodLabels(pod),
    		Annotations: newPodAnnotations(pod),
    	}
    
    	dnsConfig, err := m.runtimeHelper.GetPodDNS(pod)
    	if err != nil {
    		return nil, err
    	}
    	podSandboxConfig.DnsConfig = dnsConfig
    
    	if !kubecontainer.IsHostNetworkPod(pod) {
    		// TODO: Add domain support in new runtime interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. pkg/kubelet/container/helpers.go

    	GenerateRunContainerOptions(ctx context.Context, pod *v1.Pod, container *v1.Container, podIP string, podIPs []string) (contOpts *RunContainerOptions, cleanupAction func(), err error)
    	GetPodDNS(pod *v1.Pod) (dnsConfig *runtimeapi.DNSConfig, err error)
    	// GetPodCgroupParent returns the CgroupName identifier, and its literal cgroupfs form on the host
    	// of a pod.
    	GetPodCgroupParent(pod *v1.Pod) string
    	GetPodDir(podUID types.UID) string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/kube/templates/vm_deployment.yaml

          # the application will first try to resolve the hostname (a, a.ns, etc.) as is
          # before attempting to add the search namespaces.
          dnsPolicy: None
          dnsConfig:
            nameservers:
            - "8.8.8.8"
            options:
            - name: "ndots"
              value: "1"
    {{- if $.VM.IstioHost }}
          # Override the istiod host to force traffic through east-west gateway.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 19:29:42 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. src/net/dnsclient_unix_test.go

    }
    
    func (conf *resolvConfTest) forceUpdateConf(c *dnsConfig, lastChecked time.Time) bool {
    	conf.dnsConfig.Store(c)
    	for i := 0; i < 5; i++ {
    		if conf.tryAcquireSema() {
    			conf.lastChecked = lastChecked
    			conf.releaseSema()
    			return true
    		}
    	}
    	return false
    }
    
    func (conf *resolvConfTest) servers() []string {
    	return conf.dnsConfig.Load().servers
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top