rename dnsperf -> dnseval to avoid confusion with nominom's dnsperf
- rename dnsperf.py -> dnseval.py - improve help text
This commit is contained in:
parent
383dc02636
commit
9e5adde1bb
5
TODO.md
5
TODO.md
@ -1,5 +1,6 @@
|
|||||||
# todo
|
# TODO
|
||||||
|
|
||||||
- input sanitization
|
- input sanitization
|
||||||
- implement basic DNS client functionality into dnstraceroute to eliminate need
|
- implement basic DNS client functionality into dnstraceroute to eliminate need
|
||||||
of modified dnspython module
|
of modified dnspython module
|
||||||
- add support for python 2.x for the conservatives and older people ;-)
|
- add support for python 2.x for the conservatives and faint-hearted ;-)
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
|
|
||||||
import getopt
|
import getopt
|
||||||
|
import os
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
@ -35,6 +36,7 @@ import dns.rdatatype
|
|||||||
import dns.resolver
|
import dns.resolver
|
||||||
|
|
||||||
__VERSION__ = 1.0
|
__VERSION__ = 1.0
|
||||||
|
__PROGNAME__ = os.path.basename(sys.argv[0])
|
||||||
should_stop = False
|
should_stop = False
|
||||||
|
|
||||||
resolvers = [
|
resolvers = [
|
||||||
@ -50,8 +52,8 @@ resolvers = [
|
|||||||
|
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print('dnsperf version %1.1f\n' % __VERSION__)
|
print('%s version %1.1f\n' % (__PROGNAME__, __VERSION__))
|
||||||
print('syntax: dnsping [-h] [-f server-list] [-c count] [-t type] [-w wait] hostname')
|
print('syntax: %s [-h] [-f server-list] [-c count] [-t type] [-w wait] hostname' % __PROGNAME__ )
|
||||||
print(' -h --help show this help')
|
print(' -h --help show this help')
|
||||||
print(' -f --file dns server list to use')
|
print(' -f --file dns server list to use')
|
||||||
print(' -c --count number of requests to send (default: 10)')
|
print(' -c --count number of requests to send (default: 10)')
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
|
|
||||||
import getopt
|
import getopt
|
||||||
|
import os
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
@ -35,12 +36,13 @@ import dns.rdatatype
|
|||||||
import dns.resolver
|
import dns.resolver
|
||||||
|
|
||||||
__VERSION__ = 1.0
|
__VERSION__ = 1.0
|
||||||
|
__PROGNAME__ = os.path.basename(sys.argv[0])
|
||||||
should_stop = False
|
should_stop = False
|
||||||
|
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print('dnsping version %1.1f\n' % __VERSION__)
|
print('%s version %1.1f\n' % (__PROGNAME__, __VERSION__))
|
||||||
print('syntax: dnsping [-h] [-q] [-v] [-s server] [-c count] [-t type] [-w wait] hostname')
|
print('syntax: %s [-h] [-q] [-v] [-s server] [-c count] [-t type] [-w wait] hostname' % __PROGNAME__)
|
||||||
print(' -h --help show this help')
|
print(' -h --help show this help')
|
||||||
print(' -q --quiet quiet')
|
print(' -q --quiet quiet')
|
||||||
print(' -v --verbose print actual dns response')
|
print(' -v --verbose print actual dns response')
|
||||||
@ -115,7 +117,7 @@ def main():
|
|||||||
response_time = []
|
response_time = []
|
||||||
i = 0
|
i = 0
|
||||||
|
|
||||||
print("DNSPING %s: hostname=%s rdatatype=%s" % (dnsserver, hostname, dnsrecord))
|
print("%s %s: hostname=%s rdatatype=%s" % (__PROGNAME__, dnsserver, hostname, dnsrecord))
|
||||||
|
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
if should_stop:
|
if should_stop:
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
|
|
||||||
import getopt
|
import getopt
|
||||||
|
import os
|
||||||
import signal
|
import signal
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
@ -35,7 +36,7 @@ import dns.rdatatype
|
|||||||
import dns.resolver
|
import dns.resolver
|
||||||
|
|
||||||
__VERSION__ = 1.0
|
__VERSION__ = 1.0
|
||||||
__PROGNAME__ = sys.argv[0]
|
__PROGNAME__ = os.path.basename(sys.argv[0])
|
||||||
should_stop = False
|
should_stop = False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user