You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dnsr seems to have issues resolving records if there is a 2+ labels down delegation in the mix.
As a test example, I've delegated subdeleg.notdel.notdel.notdel.notdel.kakwalab.ovh. (note the notdel intermediary labels) from kakwalab.ovh. and created an A test record record.subdeleg.notdel.notdel.notdel.notdel.kakwalab.ovh. with value 1.1.1.1.
package main
import (
"fmt""os""github.com/domainr/dnsr"
)
funcmain() {
// Create a new DNS resolverresolver:=dnsr.NewResolver()
// The IP to reverse lookup (PTR query)rec:="record.subdeleg.notdel.notdel.notdel.notdel.kakwalab.ovh."dnsr.MaxNameservers=1dnsr.MaxIPs=1dnsr.DebugLogger=os.Stdout// Query A record (nil)results:=resolver.Resolve(rec, "A")
fmt.Printf("%#v\n", results)
// Query again (has response (thanks to cache?))// results = resolver.Resolve(rec, "A")// fmt.Printf("%#v\n", results)
}
Using the above code returns a nil object while dig record.subdeleg.notdel.notdel.notdel.notdel.kakwalab.ovh. A properly returns 1.1.1.1.
This seems to come from the fact dnsr only query for NS one label down.
dnsr seems to have issues resolving records if there is a 2+ labels down delegation in the mix.
As a test example, I've delegated
subdeleg.notdel.notdel.notdel.notdel.kakwalab.ovh.
(note thenotdel
intermediary labels) fromkakwalab.ovh.
and created anA
test recordrecord.subdeleg.notdel.notdel.notdel.notdel.kakwalab.ovh.
with value1.1.1.1
.Using the above code returns a
nil
object whiledig record.subdeleg.notdel.notdel.notdel.notdel.kakwalab.ovh. A
properly returns1.1.1.1
.This seems to come from the fact dnsr only query for NS one label down.
This issue is common for
PTR
resolution.Note:
The text was updated successfully, but these errors were encountered: