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
Asked
Active
Viewed 244 times
0
-
there has to be a way to get both ipv6 and ipv4 ip adresses in the same query :( – Onica Radu May 08 '12 at 13:03
-
possible duplicate of [Get IPv4 and IPv6 with one command](http://stackoverflow.com/questions/23699306/get-ipv4-and-ipv6-with-one-command) – StarShine Sep 04 '15 at 12:21
2 Answers
0
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.

Onica Radu
- 183
- 2
- 4
- 11
0
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

user3166580
- 1,155
- 7
- 8