@@ -127,6 +127,15 @@ func newMockDNS() *mockDNS {
127
127
"fqdn.example.com." : {
128
128
"dnslink=/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr" ,
129
129
},
130
+ "en.wikipedia-on-ipfs.org." : {
131
+ "dnslink=/ipfs/bafybeiaysi4s6lnjev27ln5icwm6tueaw2vdykrtjkwiphwekaywqhcjze" ,
132
+ },
133
+ "custom.non-icann.tldextravaganza." : {
134
+ "dnslink=/ipfs/bafybeieto6mcuvqlechv4iadoqvnffondeiwxc2bcfcewhvpsd2odvbmvm" ,
135
+ },
136
+ "singlednslabelshouldbeok." : {
137
+ "dnslink=/ipfs/bafybeih4a6ylafdki6ailjrdvmr7o4fbbeceeeuty4v3qyyouiz5koqlpi" ,
138
+ },
130
139
"www.wealdtech.eth." : {
131
140
"dnslink=/ipns/ipfs.example.com" ,
132
141
},
@@ -167,6 +176,9 @@ func TestDNSResolution(t *testing.T) {
167
176
testResolution (t , r , "double.example.com" , opts .DefaultDepthLimit , "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD" , nil )
168
177
testResolution (t , r , "conflict.example.com" , opts .DefaultDepthLimit , "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjE" , nil )
169
178
testResolution (t , r , "fqdn.example.com." , opts .DefaultDepthLimit , "/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr" , nil )
179
+ testResolution (t , r , "en.wikipedia-on-ipfs.org" , 2 , "/ipfs/bafybeiaysi4s6lnjev27ln5icwm6tueaw2vdykrtjkwiphwekaywqhcjze" , nil )
180
+ testResolution (t , r , "custom.non-icann.tldextravaganza." , 2 , "/ipfs/bafybeieto6mcuvqlechv4iadoqvnffondeiwxc2bcfcewhvpsd2odvbmvm" , nil )
181
+ testResolution (t , r , "singlednslabelshouldbeok" , 2 , "/ipfs/bafybeih4a6ylafdki6ailjrdvmr7o4fbbeceeeuty4v3qyyouiz5koqlpi" , nil )
170
182
testResolution (t , r , "www.wealdtech.eth" , 1 , "/ipns/ipfs.example.com" , ErrResolveRecursion )
171
183
testResolution (t , r , "www.wealdtech.eth" , 2 , "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD" , nil )
172
184
testResolution (t , r , "www.wealdtech.eth" , 2 , "/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD" , nil )
0 commit comments