-
Notifications
You must be signed in to change notification settings - Fork 43
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
add NULL record #338
add NULL record #338
Conversation
Thanks for your contribution. The only question I have is why. Do you actually have a usecase for "NULL"? (I'm more interested in keeping the code base small than to support all resource records we can find.) |
Yes, my use case is transporting arbitrary bytes over DNS. For an example, see https://github.com/yarrick/iodine. |
CI is failing ( The README states rather clearly that legacy/barely used RR types is not dealt with. There is since some time support for |
I'm fine with merging this, but there are a few things:
|
I did, and am using it live now. I'll investigate.
I'll take a look.
I don't think I can create a NULL record with this, like I can with:
And the advantage of NULL over TXT is that it allows binary data of arbitrary length.
I'm serving it dynamically at the moment, and don't have a use for reading it from a zonefile. I could take a look at adding it, but I don't think there's support for encoding binary in the current zonefile parsing. |
"Arbitrary". Wouldn't something like
Ah, for encoding purposes you'd need to prefix the length to the value. Indeed, that's a bit inconvenient.
It is fine to not include it in the zone file parser. But there is support for "encoding binary", as suggested in the RFC, using hex encoding (and TYPENNN as type). But now I've done enough reviewing on this PR, and won't be back for the rest of the week. |
I've removed any instances of
I've changed this to a
Would copy the first 65535 octets from
Done!
And also fixed. [0] Instances of @@
|
thanks. about |
…er, dns-mirage, dns-client, dns-client-mirage, dns-client-lwt, dns-cli and dns-certify (7.0.2) CHANGES: * dns-server: for secondary servers use the right zone transfers and keys, fixed in mirage/ocaml-dns#339 by @hannesm * dns: add support for null record (arbitrary binary data) (mirage/ocaml-dns#338 @RyanGibb)
See https://www.rfc-editor.org/rfc/rfc1035#section-3.3.10
Adds a dependency on
hex
todns
for pretty printing hex