dns - DIG command is hanging and not timing out as expected
2014-07
iglvzx
I ran into the following issue by accident when playing around with the DIG command and testing some domain names.
Why does DIG hang and not timeout after 10 seconds when executing the following:
dig +tries=1 +tries=1 +retry=1 +time=5 +trace google.us.com
DIG hangs for about 30 seconds instead of timing out and then dies with the following error message:
dig: couldn't get address for 'ns.reserved-domain.uk.com': no more
Do I need to set another flag/option for DIG to have it timeout instead of hanging, or is this a bug?
- DIG version:
DiG 9.9.5-3-Ubuntu
Answers
Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.
Related Question
linux - Installing dig on Debian
KdgDev
I've tried installing dig on Debian, but the apt-get utility doesn't seem to know what it is.
Is it part of some larger set of packages? Where can I find this?
Related Answers
Dennis Williamson
On Ubuntu it's in dnsutils. I assume it's the same in Debian.
apt-file lets you search for files in packages even if they aren't installed.