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 at centos.org [mailto:centos-bounces at centos.org] On > Behalf Of Walter H. > Sent: Tuesday, October 11, 2016 9:05 AM > To: centos at 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 at 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.comThis 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:23, Richard Mann wrote:>> -----Original Message----- >> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On >> Behalf Of Walter H. >> Sent: Tuesday, October 11, 2016 9:05 AM >> To: centos at 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.comnslookup -type=any www.google.com shows only IPv6, when having done nalookup -type=AAAA www.google.com before??? other sample: [root at 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 at host ~]# why is no IP - neither IPv4 nor IPv6 shown? doesn't matter if -query=any or -type=any Greetings, Walter
>> From: centos-bounces at centos.org [mailto:centos-bounces at 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/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