DIG command is hanging and not timing out as expected
- by igalvez
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