Solved

dig command -- forcing over UDP

Posted on 2013-06-17
2
2,721 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
Is your computer hacked? learn how to detect and delete malware in your PC
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now