Giter Site home page Giter Site logo

nsidenumerator's Issues

RIPE Atlas

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

-4 and -6 options?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.