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

Feature request: generic RR/bytes format output #97

Open
crabique opened this issue Aug 24, 2024 · 0 comments
Open

Feature request: generic RR/bytes format output #97

crabique opened this issue Aug 24, 2024 · 0 comments

Comments

@crabique
Copy link

Hello, thank you for the great tool, this one looks very promising.

Seeing the vast amount of tunables supported, I thought it would make sense to propose the things I'm about to propose, to make it even more powerful.

In modern dig versions, there is a +unknownformat option that lets you see the raw (well, hex) bytes for any RR value, so that it is not parsed by the client. This is useful when debugging very low-level DNS response issues.

Also, I noticed that the tool does not accept the TYPE<N> notation for records, supporting only the named RRs, but this is useful for working with experimental RR types that are not standard. Would be very cool if the tool could accept TYPE* as the type argument, even if there is no explicit support for parsing the response structure.

E.g. here (of course HTTPS RR is now standard, but it used to not be one):

❯ dig -t TYPE65 cloudflare.com +unknownformat +short
\# 61 0001000001000602683302683200040008681084E5681085E5000600 20260647000000000000000000681084E52606470000000000000000 00681085E5

❯ q -t HTTPS cloudflare.com --short
1 . alpn="h3,h2" ipv4hint="104.16.132.229,104.16.133.229" ipv6hint="2606:4700::6810:84e5,2606:4700::6810:85e5"

Thanks!

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

1 participant