5 ms·
You mean the Go tools have their own resolver? The blog at miek.nl says that Go had a DNS library written in Go in the provided samples for a while, then they
by CUR10US 14y ago
You mean the Go tools have their own resolver?
The blog at miek.nl says that Go had a DNS library written in Go in the provided samples for a while, then they removed it.
It would be interesting to know why.
- james4k 14y agoGo's net package has its own resolver. See http://golang.org/src/pkg/net/dnsclient.go http://golang.org/src/pkg/net/dnsclient.go http://golang.org/src/pkg/net/dnsclient_unix.go http://golang.org/src/pkg/net/dnsclient_unix.go But yes, it does not appear to be used anywhere now, as all of the dns lookups for each platform seem to end up at cgo calls.
- CUR10US 14y agoInteresting to read the comments. They should just rewrite the C resolver library for UNIX. Let's face it, the Plan 9^W^WGo team would probably produce a more elegant result than what we're using now, which has had its share of bugs over the years.