Meaning of the five fields of the ANSWER SECTION in dig query

Reference: http://www.zytrax.com/books/dns/ch15/#answer and http://www.zytrax.com/books/dns/ch8/a.html The first field is the NAME: The domain name being returned The second field (108 in your example) is the TTL in seconds. IN is the CLASS. Here, IN stands for Internet. A is the TYPE. Here, A stands for mapping a domain name to an IPv4 address. The last field … Read more

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

How is my DNSSEC enabled domain still serving a tiny number of NXDOMAIN response codes?

TL;DR The lack of NXDOMAIN responses for Cloudflare hosted domains is a consequence of their specific DNSSEC implementation (using so called “black lies”) and not a design of the DNSSEC protocol itself; hence observations will be different with other providers doing DNSSEC. Initial questions How are NXDOMAIN responses still possible? Why wouldn’t they be possible? … Read more

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

What’s the difference between `dig` and `host` when querying a specific name-server?

host, dig, and nslookup all share most of the same functionality. In the case you are asking about (asking a particular DNS question to a particular nameserver), dig and host (and indeed nslookup) behave exactly the same. For DNS troubleshooting, dig is preferred because its output format is more “raw”: in its output it directly … Read more