We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d312e87 + 56d5ce3 commit 821fb20Copy full SHA for 821fb20
internal/dns/dns.go
@@ -284,6 +284,11 @@ func findNameserversForDomain(
284
// Split record name into labels and lookup each domain and parent until we get a hit
285
queryLabels := dns.SplitDomainName(recordName)
286
287
+ // Special case for root domain
288
+ if queryLabels == nil {
289
+ queryLabels = append(queryLabels, "")
290
+ }
291
+
292
// Check on-chain domains first
293
for startLabelIdx := 0; startLabelIdx < len(queryLabels); startLabelIdx++ {
294
lookupDomainName := strings.Join(queryLabels[startLabelIdx:], ".")
0 commit comments