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

Operation request: Decode/Encode DNS Wire Format #940

Open
JasperJuergensen opened this issue Jan 20, 2020 · 0 comments
Open

Operation request: Decode/Encode DNS Wire Format #940

JasperJuergensen opened this issue Jan 20, 2020 · 0 comments

Comments

@JasperJuergensen
Copy link

Summary

A dns wire format encoder and decoder would be great. This would be useful, when using dns over https (DoH) without json support or dns over tls (DoT). The binary format is specified in RFC 1035. The plaintext format can be something similar to the format used by dig.

Decode

Example Input

00 00 01 00 00 01 00 00  00 00 00 00 03 77 77 77
07 65 78 61 6d 70 6c 65  03 63 6f 6d 00 00 01 00
01

Example Output

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 0
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.example.com.		IN	A

Encode

For encoding I would suggest a format similar to the DNS over HTTPS operation.

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

No branches or pull requests

1 participant