Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries for AAAA records return A records #91

Open
pocc opened this issue Dec 5, 2021 · 3 comments
Open

Queries for AAAA records return A records #91

pocc opened this issue Dec 5, 2021 · 3 comments

Comments

@pocc
Copy link

pocc commented Dec 5, 2021

Problem

Querying for AAAA records returns A results

Expected

A dig to google should return this IPv6 address:

$ dig aaaa google.com +short
2607:f8b0:4005:80f::200e

Actual

But it doesn't:

dog aaaa google.com
Status: NXDomain
SOA             1h10m29s A "a.root-servers.net." "nstld.verisign-grs.com." 2021120500 30m00s 15m00s 7d0h00m00s 1d0h00m00s
  A google.com.    1m04s   142.250.191.46

Weirdly, it shows the A record instead, which is not what I asked for.

Version info

Macos 12.0.1
Installed dog with brew

dog --version
dog ● command-line DNS client
v0.1.0
https://dns.lookup.dog/
@elsaco
Copy link

elsaco commented Dec 9, 2021

@pocc try with AAAA instead lower cases:

[tux@fedora ~]$ dog AAAA google.com
AAAA google.com. 1m24s   2607:f8b0:400a:806::200e

On Linux it returns server failure when using aaaa:

[tux@fedora ~]$ dog aaaa google.com
Status: Server Failure
A google.com. 4m15s   142.250.217.110

@pocc
Copy link
Author

pocc commented Dec 9, 2021

This utility shouldn't be case-sensitive with records. The linux example seems to be a separate issue.

@elsaco
Copy link

elsaco commented Dec 9, 2021

FWIW after building the latest pre-release ( main 721440b ) lowercase options work also:

[~]$ dog aaaa www.cloudflare.com
AAAA www.cloudflare.com. 4m41s   2606:4700::6810:7c60
AAAA www.cloudflare.com. 4m41s   2606:4700::6810:7b60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants