Skip to content

net: provide mechanism to force DNS via cgo #11450

@bradfitz

Description

@bradfitz

We should probably provide a mechanism in Go 1.5 to let users force the use of cgo/libc for DNS resolution. I'm afraid the pure Go solution will have problems for some users, and saying "modifying your nsswitch.conf or resolv.conf to be 'complicated enough'" isn't a great answer.

So, two questions:

  1. should we do this? (I think yes)
  2. which mechanism? env var? build tag? (I'm undecided).

/cc @pmarks-net @mikioh @ianlancetaylor @rsc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions