سؤال

I want to see the ip details of a machine that has a dual-stack. I am using dig to do this using the options -A and -AAAA to get the individual answers, and was wondering if there isn't an option to get both of the results with just one query. Thx

هل كانت مفيدة؟

المحلول

I managed to find the answer . You have to use the -ANY flag to get both the ipv6 and ipv4 ip's. Hope this helps.

نصائح أخرى

There is a duplicate question here:

Get IPv4 and IPv6 with one command

Where I've given the alternative answer:

dig hostname A hostname AAAA +short
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top