diff --git a/dnsutil/util.go b/dnsutil/util.go index c3f3a844e..f7a1547c7 100644 --- a/dnsutil/util.go +++ b/dnsutil/util.go @@ -8,7 +8,7 @@ package dnsutil import ( "strings" - "github.com/zmap/dns" + "github.com/miekg/dns" ) // AddOrigin adds origin to s if s is not already a FQDN. diff --git a/example_test.go b/example_test.go index 408558ac3..0138f617a 100644 --- a/example_test.go +++ b/example_test.go @@ -6,7 +6,7 @@ import ( "log" "net" - "github.com/zmap/dns" + "github.com/miekg/dns" ) // Retrieve the MX records for miek.nl. diff --git a/go.mod b/go.mod index 08cf2b1b3..81f3cf55c 100644 --- a/go.mod +++ b/go.mod @@ -3,10 +3,13 @@ module github.com/zmap/dns go 1.19 require ( + github.com/miekg/dns v1.1.62 golang.org/x/net v0.28.0 golang.org/x/sync v0.7.0 golang.org/x/sys v0.23.0 golang.org/x/tools v0.22.0 ) +replace github.com/miekg/dns => ./ + require golang.org/x/mod v0.18.0 // indirect diff --git a/privaterr_test.go b/privaterr_test.go index aa21da285..d362b8915 100644 --- a/privaterr_test.go +++ b/privaterr_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/zmap/dns" + "github.com/miekg/dns" ) const TypeISBN uint16 = 0xFF00