insomniacslk / nsidenumerator Goto Github PK
View Code? Open in Web Editor NEWEnumerate DNS servers using the NSID EDNS extension (RFC 5001)
Enumerate DNS servers using the NSID EDNS extension (RFC 5001)
Yopu can also note this is doable with the network of RIPE Atlas probes. Thanks to the API, it is easy to automate it. For instance:
% atlas-resolve -r 10 --nsid -e k.root-servers.net -t TXT .
Nameserver k.root-servers.net
[NSID: ns1.pl-gdy.k.ripe.net] : 1 occurrences
[NSID: ns2.nl-ams.k.ripe.net] : 1 occurrences
[NSID: ns1.de-kae.k.ripe.net] : 1 occurrences
[NSID: ns3.nl-ams.k.ripe.net] : 2 occurrences
[NSID: ns2.gb-lon.k.ripe.net] : 1 occurrences
[NSID: ns1.bg-sof.k.ripe.net] : 1 occurrences
[NSID: ns1.fr-par.k.ripe.net] : 1 occurrences
[NSID: ns1.nl-ams.k.ripe.net] : 1 occurrences
Test #10099383 done at 2017-10-30T15:20:29Z
The good thing is that you can select probes per AS, per prefix or per country. Here, we ask only Brazil:
% atlas-resolve -r 10 --country BR --nsid -e k.root-servers.net -t TXT .
Nameserver k.root-servers.net
[NSID: ns2.us-mia.k.ripe.net] : 3 occurrences
[NSID: ns3.us-mia.k.ripe.net] : 3 occurrences
[NSID: ns2.gb-lon.k.ripe.net] : 1 occurrences
[NSID: ns1.us-mia.k.ripe.net] : 2 occurrences
Test #10099409 done at 2017-10-30T15:24:58Z
This is a fabulous utility.
Since DNS resolution is supported for target, it might be handy to have a -4
and -6
options to force IPv4 or IPv6 for the target.
My output:
$ python3 nsidenumerator.py b.root-servers.net
Found 1 servers
b'b2-lax'
## Statistics
Total DNS queries : 1
Timeouts : 0
Percent failed queries : 0.00
## Warnings
none
I was wondering which protocol this hit, so I had run again each time for the v4 and v6 addresses.
$ python3 nsidenumerator.py 199.9.14.201
Found 1 servers
b'b2-lax'
## Statistics
Total DNS queries : 1
Timeouts : 0
Percent failed queries : 0.00
## Warnings
none
$ python3 nsidenumerator.py 2001:500:200::b
Found 1 servers
b'b2-mia'
## Statistics
Total DNS queries : 1
Timeouts : 0
Percent failed queries : 0.00
## Warnings
none
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.