Solved

dig command -- forcing over UDP

Posted on 2013-06-17
2
3,458 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

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

Suggested Solutions

As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
Is your computer hacked? learn how to detect and delete malware in your PC
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

751 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