Skip to content

funzoneq/nametime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nametime

Measure performance of authoritative name servers

Building

Install go: http://golang.org/doc/install
chmod +x build
./build

Options

Usage: nametime [option ...]
  -domain="tumblr.com": The domain to resolv
  -jsonout=false: Output json
  -server="8.8.8.8:53": DNS server address (ip:port)
  -timesToCheck=25: How many lookups do you want to base the avg on
  -tsdput=false: Export metrics to OpenTSDB
  -tsdserver="opentsdb.example.com:4243": Endpoint of OpenTSDB to report metrics
  -v=false: Verbose logging

Run as command-line tool

./nametime -server="ns1.p20.dynect.net:53" -domain="soundcloud.com" -timesToCheck=25

Output:

Resolved soundcloud.com with server ns1.p20.dynect.net:53 in avgConnTime 0.002s and avgTime 0.015s.

Export data as JSON

./nametime -server="ns1.yahoo.com:53" -domain="yahoo.com" -jsonout

Output:

{"Domain":"yahoo.com","DnsServer":"ns1.yahoo.com:53","AvgConnTime":0.0011037932000000001,"AvgTime":0.013623636160000003}

Export data to a OpenTSDB endpoint

./nametime -server="pdns1.ultradns.net:53" -domain="tumblr.com" -tsdserver="opentsdb.example.com:4242" -tsdput

About

Measure performance of authoritative name servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published