File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,8 @@ func findNameserversForDomain(
292
292
// Check on-chain domains first
293
293
for startLabelIdx := 0 ; startLabelIdx < len (queryLabels ); startLabelIdx ++ {
294
294
lookupDomainName := strings .Join (queryLabels [startLabelIdx :], "." )
295
+ // Convert to canonical form for consistency
296
+ lookupDomainName = dns .CanonicalName (lookupDomainName )
295
297
nameservers , err := state .GetState ().LookupDomain (lookupDomainName )
296
298
if err != nil {
297
299
return "" , nil , err
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
23
23
input_chainsync "github.com/blinklabs-io/snek/input/chainsync"
24
24
output_embedded "github.com/blinklabs-io/snek/output/embedded"
25
25
"github.com/blinklabs-io/snek/pipeline"
26
+ "github.com/miekg/dns"
26
27
)
27
28
28
29
type Domain struct {
@@ -169,6 +170,8 @@ func (i *Indexer) handleEvent(evt event.Event) error {
169
170
continue
170
171
}
171
172
domainName := string (dnsDomain .Origin )
173
+ // Convert to canonical form for consistency
174
+ domainName = dns .CanonicalName (domainName )
172
175
nameServers := map [string ]string {}
173
176
for _ , record := range dnsDomain .Records {
174
177
// NOTE: we're losing information here, but we need to revamp the storage
You can’t perform that action at this time.
0 commit comments