insomniacslk / nsidenumerator

Enumerate DNS servers using the NSID EDNS extension (RFC 5001)
10 stars 3 forks source link

RIPE Atlas #3

Open bortzmeyer opened 6 years ago

bortzmeyer commented 6 years ago

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
insomniacslk commented 6 years ago

Hi @bortzmeyer , I know that this is doable with RIPE Atlas too (I'm a "frequent flyer" at RIPE hackatons), but thanks for pointing this out here too. Atlas is a service, while this is a library and a CLI, so this project is still probably useful to someone.