summaryrefslogtreecommitdiff
path: root/internal/resolver/root.go
diff options
context:
space:
mode:
authorradhitya <alif@radhitya.org>2026-06-18 12:42:29 +0700
committerradhitya <alif@radhitya.org>2026-06-18 12:42:29 +0700
commitf5753c6a8cac5a57a042b0388f38abeff5d1f37d (patch)
tree96e1241126b23051725edb68a79c8e4603d7e23a /internal/resolver/root.go
parente05835493f821055e517a3988c6f9256abbc5c24 (diff)
migration to new dns library
Diffstat (limited to 'internal/resolver/root.go')
-rw-r--r--internal/resolver/root.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/resolver/root.go b/internal/resolver/root.go
index 9dac31c..0557dac 100644
--- a/internal/resolver/root.go
+++ b/internal/resolver/root.go
@@ -2,7 +2,7 @@ package resolver
import (
_ "embed"
- "github.com/miekg/dns"
+ "codeberg.org/miekg/dns"
"strings"
)
@@ -23,7 +23,7 @@ func loadRootServers() []string {
if !ok {
continue
}
- ip := a.A.String()
+ ip := a.A.Addr.String()
if !seen[ip] {
seen[ip] = true
addrs = append(addrs, ip)