- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getSystemDNSConfig (0.21 sec)
-
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. func (conf *resolverConfig) init() {
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/lookup_windows.go
Protocol: syscall.IPPROTO_IP, } var result *syscall.AddrinfoW name16p, err := syscall.UTF16PtrFromString(name) if err != nil { return nil, newDNSError(err, name, "") } dnsConf := getSystemDNSConfig() start := time.Now() var e error for i := 0; i < dnsConf.attempts; i++ { e = syscall.GetAddrInfoW(name16p, nil, &hints, &result)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 14.2K bytes - Viewed (0) -
src/net/conf.go
// That will use cgo unless the Go resolver was explicitly requested. // If we do figure out the order, return something other // than fallbackOrder to use the Go resolver with that order. dnsConf = getSystemDNSConfig() if canUseCgo && dnsConf.err != nil && !errors.Is(dnsConf.err, fs.ErrNotExist) && !errors.Is(dnsConf.err, fs.ErrPermission) { // We can't read the resolv.conf file, so use cgo if we can.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
src/net/dnsclient_unix_test.go
} } func lookupWithFake(fake fakeDNSServer, name string, typ dnsmessage.Type) error { r := Resolver{PreferGo: true, Dial: fake.DialContext} conf := getSystemDNSConfig() ctx, cancel := context.WithCancel(context.Background()) defer cancel() _, _, err := r.tryOneName(ctx, conf, name, typ) return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 72.4K bytes - Viewed (0)