Change default timeout value to 2 (was 5) (fix #24)
This commit is contained in:
parent
50934cbe91
commit
2715f42722
@ -52,7 +52,7 @@ usage: %s [-h] [-f server-list] [-c count] [-t type] [-w wait] hostname
|
||||
-h --help show this help
|
||||
-f --file dns server list to use (default: system resolvers)
|
||||
-c --count number of requests to send (default: 10)
|
||||
-w --wait maximum wait time for a reply (default: 5)
|
||||
-w --wait maximum wait time for a reply (default: 2)
|
||||
-t --type DNS request record type (default: A)
|
||||
-T --tcp Use TCP instead of UDP
|
||||
-e --edns Disable EDNS0 (Default: Enabled)
|
||||
@ -187,7 +187,7 @@ def main():
|
||||
# defaults
|
||||
dnsrecord = 'A'
|
||||
count = 10
|
||||
waittime = 5
|
||||
waittime = 2
|
||||
inputfilename = None
|
||||
fromfile = False
|
||||
use_tcp = False
|
||||
|
@ -57,7 +57,7 @@ usage: %s [-ehqv] [-s server] [-p port] [-P port] [-S address] [-c count] [-t ty
|
||||
-P --srcport Query source port number (default: 0)
|
||||
-S --srcip Query source IP address (default: default interface address)
|
||||
-c --count Number of requests to send (default: 10)
|
||||
-w --wait Maximum wait time for a reply (default: 5)
|
||||
-w --wait Maximum wait time for a reply (default: 2)
|
||||
-i --interval Time between each request (default: 0)
|
||||
-t --type DNS request record type (default: A)
|
||||
-e --edns Disable EDNS0 (default: Enabled)
|
||||
@ -85,7 +85,7 @@ def main():
|
||||
# defaults
|
||||
dnsrecord = 'A'
|
||||
count = 10
|
||||
timeout = 5
|
||||
timeout = 2
|
||||
interval = 0
|
||||
quiet = False
|
||||
verbose = False
|
||||
|
@ -125,7 +125,7 @@ def usage():
|
||||
print(' -s --server DNS server to use (default: first system resolver)')
|
||||
print(' -p --port DNS server port number (default: 53)')
|
||||
print(' -c --count Maximum number of hops (default: 30)')
|
||||
print(' -w --wait Maximum wait time for a reply (default: 5)')
|
||||
print(' -w --wait Maximum wait time for a reply (default: 2)')
|
||||
print(' -t --type DNS request record type (default: A)')
|
||||
print(' -C --color Print colorful output')
|
||||
print(' -e --edns Disable EDNS0 (Default: Enabled)')
|
||||
|
Loading…
x
Reference in New Issue
Block a user