Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit c17fc94

Browse files
authored
Merge pull request #8 from Arachnid/patch-1
Use eth.domains instead of eth.link for .eth names
2 parents db5d403 + cbcc19c commit c17fc94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
const ethTLD = "eth"
16-
const linkTLD = "link"
16+
const linkTLD = "domains"
1717

1818
// LookupTXTFunc is a generic type for a function that lookups TXT record values.
1919
type LookupTXTFunc func(name string) (txt []string, err error)

dns_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func newMockDNS() *mockDNS {
126126
"fqdn.example.com.": {
127127
"dnslink=/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr",
128128
},
129-
"www.wealdtech.eth.link.": {
129+
"www.wealdtech.eth.domains.": {
130130
"dnslink=/ipns/ipfs.example.com",
131131
},
132132
},
@@ -168,5 +168,5 @@ func TestDNSResolution(t *testing.T) {
168168
testResolution(t, r, "fqdn.example.com.", opts.DefaultDepthLimit, "/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr", nil)
169169
testResolution(t, r, "www.wealdtech.eth", 1, "/ipns/ipfs.example.com", ErrResolveRecursion)
170170
testResolution(t, r, "www.wealdtech.eth", 2, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD", nil)
171-
testResolution(t, r, "www.wealdtech.eth.link", 2, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD", nil)
171+
testResolution(t, r, "www.wealdtech.eth.domains", 2, "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD", nil)
172172
}

0 commit comments

Comments
 (0)