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
|
||||
- implement basic DNS client functionality into dnstraceroute to eliminate need
|
||||
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 os
|
||||
import signal
|
||||
import sys
|
||||
import time
|
||||
@ -35,6 +36,7 @@ import dns.rdatatype
|
||||
import dns.resolver
|
||||
|
||||
__VERSION__ = 1.0
|
||||
__PROGNAME__ = os.path.basename(sys.argv[0])
|
||||
should_stop = False
|
||||
|
||||
resolvers = [
|
||||
@ -50,8 +52,8 @@ resolvers = [
|
||||
|
||||
|
||||
def usage():
|
||||
print('dnsperf version %1.1f\n' % __VERSION__)
|
||||
print('syntax: dnsping [-h] [-f server-list] [-c count] [-t type] [-w wait] hostname')
|
||||
print('%s version %1.1f\n' % (__PROGNAME__, __VERSION__))
|
||||
print('syntax: %s [-h] [-f server-list] [-c count] [-t type] [-w wait] hostname' % __PROGNAME__ )
|
||||
print(' -h --help show this help')
|
||||
print(' -f --file dns server list to use')
|
||||
print(' -c --count number of requests to send (default: 10)')
|
@ -26,6 +26,7 @@
|
||||
|
||||
|
||||
import getopt
|
||||
import os
|
||||
import signal
|
||||
import sys
|
||||
import time
|
||||
@ -35,12 +36,13 @@ import dns.rdatatype
|
||||
import dns.resolver
|
||||
|
||||
__VERSION__ = 1.0
|
||||
__PROGNAME__ = os.path.basename(sys.argv[0])
|
||||
should_stop = False
|
||||
|
||||
|
||||
def usage():
|
||||
print('dnsping version %1.1f\n' % __VERSION__)
|
||||
print('syntax: dnsping [-h] [-q] [-v] [-s server] [-c count] [-t type] [-w wait] hostname')
|
||||
print('%s version %1.1f\n' % (__PROGNAME__, __VERSION__))
|
||||
print('syntax: %s [-h] [-q] [-v] [-s server] [-c count] [-t type] [-w wait] hostname' % __PROGNAME__)
|
||||
print(' -h --help show this help')
|
||||
print(' -q --quiet quiet')
|
||||
print(' -v --verbose print actual dns response')
|
||||
@ -115,7 +117,7 @@ def main():
|
||||
response_time = []
|
||||
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):
|
||||
if should_stop:
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
|
||||
import getopt
|
||||
import os
|
||||
import signal
|
||||
import socket
|
||||
import sys
|
||||
@ -35,7 +36,7 @@ import dns.rdatatype
|
||||
import dns.resolver
|
||||
|
||||
__VERSION__ = 1.0
|
||||
__PROGNAME__ = sys.argv[0]
|
||||
__PROGNAME__ = os.path.basename(sys.argv[0])
|
||||
should_stop = False
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user