| // Copyright 2015 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // +build !js,!plan9,!windows |
| // forceGoDNS forces the resolver configuration to use the pure Go resolver |
| // and returns a fixup function to restore the old settings. |
| func forceGoDNS() func() { |
| // forceCgoDNS forces the resolver configuration to use the cgo resolver |
| // and returns a fixup function to restore the old settings. |
| // (On non-Unix systems forceCgoDNS returns nil.) |
| func forceCgoDNS() func() { |