DIG command is hanging and not timing out as expected

Posted by igalvez on Super User See other posts from Super User or by igalvez
Published on 2014-06-08T21:12:45Z Indexed on 2014/06/08 21:29 UTC
Read the original article Hit count: 424

Filed under:
|

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

© Super User or respective owner

Related posts about dns

Related posts about dig