Solved

dig command -- forcing over UDP

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Read about achieving the basic levels of HRIS security in the workplace.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
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…

821 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