github.com/searKing/golang/go@v1.2.74/net/resolver/dns/go113.go (about) 1 // Copyright 2021 The searKing Author. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 // +build go1.13 5 6 package dns 7 8 import "net" 9 10 func init() { 11 filterError = func(err error) error { 12 if dnsErr, ok := err.(*net.DNSError); ok && dnsErr.IsNotFound { 13 // The name does not exist; not an error. 14 return nil 15 } 16 return err 17 } 18 }