Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 171 for dnsConfig (0.17 sec)

  1. 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)
  2. 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)
  3. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podspec.go

    	Priority                      *int32                                       `json:"priority,omitempty"`
    	DNSConfig                     *PodDNSConfigApplyConfiguration              `json:"dnsConfig,omitempty"`
    	ReadinessGates                []PodReadinessGateApplyConfiguration         `json:"readinessGates,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:22:42 UTC 2022
    - 23.9K bytes
    - Viewed (0)
  4. pilot/pkg/model/network.go

    func newClient() (*dnsClient, error) {
    	servers := NetworkGatewayTestDNSServers
    	if len(servers) == 0 {
    		dnsConfig, err := dns.ClientConfigFromFile("/etc/resolv.conf")
    		if err != nil {
    			return nil, err
    		}
    		if dnsConfig != nil {
    			for _, s := range dnsConfig.Servers {
    				servers = append(servers, net.JoinHostPort(s, dnsConfig.Port))
    			}
    		}
    		// TODO take search namespaces into account
    		// TODO what about /etc/hosts?
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  5. pkg/kubelet/network/dns/dns_windows.go

    	if os.IsNotExist(err) {
    		return false, nil
    	}
    	if err != nil {
    		return false, err
    	}
    
    	return stat.Mode().IsRegular(), nil
    }
    
    func getHostDNSConfig(resolverConfig string) (*runtimeapi.DNSConfig, error) {
    	if resolverConfig == "" {
    		// This handles "" by returning defaults.
    		return getDNSConfig(resolverConfig)
    	}
    
    	isFile, err := fileExists(resolverConfig)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 22:21:57 UTC 2023
    - 6.3K 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/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)
  8. pkg/kubelet/kubelet_network.go

    }
    
    // GetPodDNS returns DNS settings for the pod.
    // This function is defined in kubecontainer.RuntimeHelper interface so we
    // have to implement it.
    func (kl *Kubelet) GetPodDNS(pod *v1.Pod) (*runtimeapi.DNSConfig, error) {
    	return kl.dnsConfigurer.GetPodDNS(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top