Get IPv4 and IPv6 with one command

It may be that this has been added to dig since the question was asked, but for completeness this can be accomplished through the following query: dig hostname A hostname AAAA +short Source: http://linux.die.net/man/1/dig — under the ‘Multiple Queries’ section

Dig timeout option don’t work

The timeout value is per try so setting a +time=5 would result in a 15 seconds delay as the default for +tries is 3. If you set +tries=1 then your command will timeout in 5 seconds e.g. time dig +time=5 @hii.com hello.me ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5_7.1 <<>> +time=5 @hii.com hello.me ; (1 server found) ;; … Read more

dig show only answer

I am not sure why you are getting comments in the output. That is the correct set of options for the behaviour you want. Here are the same options with the same version of dig: $ dig -version DiG 9.7.3 $ dig +noall +answer google.de google.de. 55 IN A 173.194.44.216 google.de. 55 IN A 173.194.44.223 … Read more