Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getSystemNSS (0.34 sec)

  1. src/net/conf.go

    		// We always return before this point.
    		// The code below is for non-OpenBSD.
    	}
    
    	// Canonicalize the hostname by removing any trailing dot.
    	hostname = stringslite.TrimSuffix(hostname, ".")
    
    	nss := getSystemNSS()
    	srcs := nss.sources["hosts"]
    	// If /etc/nsswitch.conf doesn't exist or doesn't specify any
    	// sources for "hosts", assume Go's DNS will work fine.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. src/net/dnsclient_unix_test.go

    		t.Fatal(err)
    	}
    }
    
    func TestLookupOrderFilesNoSuchHost(t *testing.T) {
    	defer func(orig string) { hostsFilePath = orig }(hostsFilePath)
    	if runtime.GOOS != "openbsd" {
    		defer setSystemNSS(getSystemNSS(), 0)
    		setSystemNSS(nssStr(t, "hosts: files"), time.Hour)
    	}
    
    	conf, err := newResolvConfTest()
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer conf.teardown()
    
    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