Skip to content

net: respect GODEBUG=netdns=go on macOS #27774

Closed
@gregory-m

Description

@gregory-m

What version of Go are you using (go version)?

go version go1.11 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

Can be reproduced on any darwin.

What did you do?

Tried to debug some DNS issues on our production system.

In order to do this I tried to run code with GODEBUG=netdns=go+2 and GODEBUG=netdns=cgo+2 on my local Mac.

What did you expect to see?

Go runtime will use cgo or go resolver according to GODEBUG env variable.

What did you see instead?

Runtime silently used cgo resolver every time.

Also despite this comment I don't see any popups after I removed this check.

Can we put darwin check before if confVal.dnsDebugLevel > 0 and use go resolver on darwin if user explicitly asked for it?

If there are no objections I will create CL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.OS-DarwinWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions