mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 15:05:00 +00:00
Resolves A, CNAME chain, and SRV records via miekg/dns. Queries all configured servers in parallel and returns the first success. Falls back to OpenDNS/Cloudflare/Quad9 when /etc/resolv.conf is absent or empty.
14 lines
310 B
Modula-2
14 lines
310 B
Modula-2
module github.com/therootcompany/golib/net/dnsresolver
|
|
|
|
go 1.26.0
|
|
|
|
require github.com/miekg/dns v1.1.69
|
|
|
|
require (
|
|
golang.org/x/mod v0.30.0 // indirect
|
|
golang.org/x/net v0.47.0 // indirect
|
|
golang.org/x/sync v0.18.0 // indirect
|
|
golang.org/x/sys v0.38.0 // indirect
|
|
golang.org/x/tools v0.39.0 // indirect
|
|
)
|