serveradm
asked on
dig command -- forcing over UDP
Hi guys,
According the dig command man page, if I wanted to force the dig command over udp when querying name servers I would use this:
+[no]tcp
Use or do not use TCP when querying name servers. The default behavior is to use UDP unless an AXFR or IXFR query is requested, in which case a TCP connection is used.
Is this correct usage below:
dig +tcp @ns1.domain.com testdomain.com
If I try taking the instructions literally and using:
dig +[no]tcp @ns1.domain.com testdomain.com
it errors with:
Invalid option: +[no]tcp
Usage: dig [@global-server] [domain] [q-type] [q-class] {q-opt}
{global-d-opt} host [@local-server] {local-d-opt}
[ host [@local-server] {local-d-opt} [...]]
The first command above gives me output but no indication of whether this actually used udp or tcp so that's why I'm not sure.
Thanks
According the dig command man page, if I wanted to force the dig command over udp when querying name servers I would use this:
+[no]tcp
Use or do not use TCP when querying name servers. The default behavior is to use UDP unless an AXFR or IXFR query is requested, in which case a TCP connection is used.
Is this correct usage below:
dig +tcp @ns1.domain.com testdomain.com
If I try taking the instructions literally and using:
dig +[no]tcp @ns1.domain.com testdomain.com
it errors with:
Invalid option: +[no]tcp
Usage: dig [@global-server] [domain] [q-type] [q-class] {q-opt}
{global-d-opt} host [@local-server] {local-d-opt}
[ host [@local-server] {local-d-opt} [...]]
The first command above gives me output but no indication of whether this actually used udp or tcp so that's why I'm not sure.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER