Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Integralist
Copy link
Collaborator

@Integralist Integralist commented Feb 15, 2023

The latest version of Go (1.20)...

DNS resolution will detect changes to /etc/nsswitch.conf and reload the file when it changes. Checks are made at most once every five seconds, matching the previous handling of /etc/hosts and /etc/resolv.conf.

Additionally, under https://tip.golang.org/doc/go1.20#cgo

On macOS, the net and os/user packages have been rewritten not to use cgo: the same code is now used for cgo and non-cgo builds as well as cross-compiled builds.

We're hoping the DNS related changes to Go for programs compiled without CGO should help resolve #289.

@Integralist Integralist added the enhancement New feature or request label Feb 15, 2023
@Integralist Integralist merged commit 4538dec into main Feb 15, 2023
@Integralist Integralist deleted the integralist/go1.20 branch February 15, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"context deadline exceeded" - Continuous delay when running with (broken?) DNS settings

2 participants