Hello,
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
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Walter H. Sent: Tuesday, October 11, 2016 9:05 AM To: centos@centos.org Subject: [CentOS] Hint for nslookup wanted ...
Hello,
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
Did your google break?
For just IPv6 nslookup -type=AAAA www.example.com
For all records nslookup -type=any www.example.com
Thanks, Walter
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On 11/10/16 15:23, Richard Mann wrote:
Did your google break?
For just IPv6 nslookup -type=AAAA www.example.com
For all records nslookup -type=any www.example.com
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=AAAA www.example.com nslookup -type=A www.example.com
This makes a cache explicitly look up those types of records if it doesn't already have them.
Regards, Anand
On Tue, October 11, 2016 15:27, Anand Buddhdev wrote:
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=AAAA www.example.com nslookup -type=A www.example.com
This makes a cache explicitly look up those types of records if it doesn't already have them.
Thanks this brings light in the dark ...
Greetings, Walter
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Anand Buddhdev Sent: Tuesday, October 11, 2016 9:28 AM To: CentOS mailing list centos@centos.org Subject: Re: [CentOS] Hint for nslookup wanted ...
On 11/10/16 15:23, Richard Mann wrote:
Did your google break?
For just IPv6 nslookup -type=AAAA www.example.com
For all records nslookup -type=any www.example.com
This is bad advice, because in DNS, ANY != ALL
As I said: For all records. Reading comprehension can be important.
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=AAAA www.example.com nslookup -type=A www.example.com
This makes a cache explicitly look up those types of records if it doesn't already have them.
Regards, Anand _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Tue, October 11, 2016 15:23, Richard Mann wrote:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Walter H. Sent: Tuesday, October 11, 2016 9:05 AM To: centos@centos.org Subject: [CentOS] Hint for nslookup wanted ...
Hello,
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
Did your google break?
not really;
For just IPv6 nslookup -type=AAAA www.example.com
For all records nslookup -type=any www.example.com
nslookup -type=any www.google.com
shows only IPv6, when having done nalookup -type=AAAA www.google.com before???
other sample:
[root@host ~]# nslookup -query=any www.bipa.at Server: 192.168.23.2 Address: 192.168.23.2#53
Non-authoritative answer: www.bipa.at canonical name = www.bipa.at.cdn.cloudflare.net.
Authoritative answers can be found from:
[root@host ~]#
why is no IP - neither IPv4 nor IPv6 shown? doesn't matter if -query=any or -type=any
Greetings, Walter
On 10/11/2016 6:41 AM, Walter H. wrote:
[root@host ~]# nslookup -query=anywww.bipa.at Server: 192.168.23.2 Address: 192.168.23.2#53
Non-authoritative answer: www.bipa.at canonical name =www.bipa.at.cdn.cloudflare.net.
Authoritative answers can be found from:
[root@host ~]#
why is no IP - neither IPv4 nor IPv6 shown? doesn't matter if -query=any or -type=any
probably because its a CNAME, and points to a different domain, and nslookup isn't following that.
$ nslookup -query=any www.bipa.at Server: xxx.xxx.xxx.xxx Address: xxx.xxx.xxx.xxx#53
Non-authoritative answer: www.bipa.at canonical name = 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 www.bipa.at www.bipa.at is an alias for www.bipa.at.cdn.cloudflare.net. www.bipa.at.cdn.cloudflare.net has address 104.16.168.136 www.bipa.at.cdn.cloudflare.net has address 104.16.169.136
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Walter H. Sent: Tuesday, October 11, 2016 9:05 AM
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:
Don't use nslookup: http://web.archive.org/web/20160304065708/http://homepage.ntlworld.com/jonat... 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