[dns-operations] how to use dig command display integral IPV6 address

Witold Krecicki wpk at isc.org
Wed Dec 5 12:09:57 UTC 2018


On 05.12.2018 11:39, Champion Xie wrote:
> 
> 
> hi,all 
> 
> when i use dig command domain ' s AAAA record 
> 
> ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6 <<>> a.root-servers.net
> <http://a.root-servers.net> aaaa
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57657
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 14
> 
> ;; QUESTION SECTION:
> ;a.root-servers.net <http://a.root-servers.net>.INAAAA
> 
> ;; ANSWER SECTION:
> a.root-servers.net
> <http://a.root-servers.net>.604794INAAAA*2001:503:ba3e::2:30*


If you want to get only the AAAA record you need to use '+short':
$ dig +short aaaa a.root-servers.net
2001:503:ba3e::2:30

-- 
Witold Kręcicki




More information about the dns-operations mailing list