diff --git a/dns.go b/dns.go index d8a42f2..9938aa8 100644 --- a/dns.go +++ b/dns.go @@ -13,7 +13,7 @@ import ( ) const ethTLD = "eth" -const linkTLD = "link" +const linkTLD = "domains" // LookupTXTFunc is a generic type for a function that lookups TXT record values. type LookupTXTFunc func(name string) (txt []string, err error) diff --git a/dns_test.go b/dns_test.go index 5a0e2a7..877b814 100644 --- a/dns_test.go +++ b/dns_test.go @@ -126,7 +126,7 @@ func newMockDNS() *mockDNS { "fqdn.example.com.": { "dnslink=/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr", }, - "www.wealdtech.eth.link.": { + "www.wealdtech.eth.domains.": { "dnslink=/ipns/ipfs.example.com", }, }, @@ -168,5 +168,5 @@ func TestDNSResolution(t *testing.T) { testResolution(t, r, "fqdn.example.com.", opts.DefaultDepthLimit, "/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr", nil) testResolution(t, r, "www.wealdtech.eth", 1, "/ipns/ipfs.example.com", ErrResolveRecursion) testResolution(t, r, "www.wealdtech.eth", 2, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD", nil) - testResolution(t, r, "www.wealdtech.eth.link", 2, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD", nil) + testResolution(t, r, "www.wealdtech.eth.domains", 2, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD", nil) }