how to get secondary/slave NS ?

21 views
Skip to first unread message

riavviato riavviato

unread,
Sep 20, 2021, 5:24:42 AM9/20/21
to dnspython-users
Hallo,
I'm trying to check secondary/slave name servers given a certain domain (even if they are in error status); I''m using dns.resolve to check the Name Servers but I can only retrieve primary NS.
Any idea how to check secondary/slave NS?
thanks in advance
R

Bob Halley

unread,
Sep 21, 2021, 12:20:27 PM9/21/21
to dnspython-users
First get the list of nameservers for your domain by using the resolver to do an NS query.
For each nameserver:
    Get the nameservers A (or AAAA) records by using the resolver to do an A (or AAAA) query.
    Using one of the addresses returned, directly query the nameserver with dns.query.udp(), using whatever query is your check for goodness.
    Check that the response is ok.

Reply all
Reply to author
Forward
0 new messages