Solved

dig command -- forcing over UDP

Posted on 2013-06-17
2
3,190 Views
Last Modified: 2013-06-17
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
0
Comment
Question by:serveradm
2 Comments
 
LVL 9

Accepted Solution

by:
gt2847c earned 500 total points
ID: 39254383
The "[ ]" indicates optional item.  +notcp or +tcp

What you want is:

dig +notcp @ns1.domain.com testdomain.com
0
 

Author Closing Comment

by:serveradm
ID: 39254438
Thanks for clarifying that!
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Transferring data across the virtual world became simpler but protecting it is becoming a real security challenge.  How to approach cyber security  in today's business world!
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question