has anybody a hint for me, how I can use nslookup to get either IPv6 AAAA only or both A and AAAA entries when doing this:
e.g.
# nslookup www.example.com
Thanks, Walter
7 thoughts on - Hint For Nslookup Wanted …
Did your google break?
For just IPv6
nslookup -type
This is bad advice, because in DNS, ANY != ALL
If you query with qtype=any, and you ask a caching resolver, then it will return to you all the records that are in its cache at that time, which may or may not include the records you want.
In order to definitively get the A as well as the AAAA records, one needs to ask for them specifically:
7 thoughts on - Hint For Nslookup Wanted …
Did your google break?
For just IPv6
nslookup -type
This is bad advice, because in DNS, ANY != ALL
If you query with qtype=any, and you ask a caching resolver, then it will return to you all the records that are in its cache at that time, which may or may not include the records you want.
In order to definitively get the A as well as the AAAA records, one needs to ask for them specifically:
nslookup -type
not really;
nslookup -type=any http://www.google.com
shows only IPv6, when having done nalookup -type
Thanks this brings light in the dark …
Greetings, Walter
As I said: For all records. Reading comprehension can be important.
probably because its a CNAME, and points to a different domain, and nslookup isn’t following that.
$ nslookup -query=any http://www.bipa.at Server: xxx.xxx.xxx.xxx Address: xxx.xxx.xxx.xxx#53
Non-authoritative answer:
http://www.bipa.at canonical name = http://www.bipa.at.cdn.cloudflare.net.
Authoritative answers can be found from:
bipa.at nameserver = dns2.telekom.at. bipa.at nameserver = dns3.telekom.at. bipa.at nameserver = dns1.telekom.at. dns1.telekom.at internet address = 80.120.17.26
dns2.telekom.at internet address = 213.33.99.79
dns3.telekom.at internet address = 80.240.225.50
that said, I’ve gotten to using ‘host’ rather than ‘nslookup’. host is part of the bind-utils package for obtuse reasons.
$ host http://www.bipa.at http://www.bipa.at is an alias for http://www.bipa.at.cdn.cloudflare.net. http://www.bipa.at.cdn.cloudflare.net has address 104.16.168.136
http://www.bipa.at.cdn.cloudflare.net has address 104.16.169.136
Don’t use nslookup:
http://web.archive.org/web/20160304065708/http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/nslookup-flaws.html http://groups.google.com/group/comp.protocols.dns.bind/msg/6de73c9eaa37137f http://groups.google.com/group/comp.protocols.dns.bind/msg/39ffce8e8510b9cc
…use dig instead.
Peter