-
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 the LOC record #310
Add the LOC record #310
Conversation
Using `meters = ... 'm'?` (making 'm' optional) makes `NUMER DOT NUMBER..` parsing ambigious and matches IPv4 addresses to meters. Instead, handle the cases where m doesn't occur in the parser rather than the lexer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have had a first read through, and the overall approach looks good to me. Thanks for the PR @RyanGibb! Need to test it out and look through the RFC before a full approval. Some more eyes on this welcome @mirage/core
Thanks for your PR, would you mind to add some tests into About the zone file parsing, there aren't many tests yet -- maybe add some to server.ml. |
Yes, sure! |
thank you for your contribution. I added minor comments and suggestions above. IMHO this is mostly ready for being merged. |
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Thank you for the suggestions, and for all the help getting this here! |
sorry, in #314 I decided it doesn't make much sense to define |
CI is green, I squash-merged. |
…er, dns-mirage, dns-client, dns-cli and dns-certify (6.3.0) CHANGES: * dns-server: demote log level for various messages (mirage/ocaml-dns#309 @hannesm) * dns-zone: add additional glue: only add if authoritative for nameserver domain (mirage/ocaml-dns#309 @hannesm) * BUGFIX: dns-trie: fix lookup when delegations are present, add tests (mirage/ocaml-dns#309 @hannesm) * ozone: be more explicit when showing errors (mirage/ocaml-dns#311 @psafont) * dns: avoid polymorphic comparison (mirage/ocaml-dns#314 @hannesm, reported by @RyanGibb) * FEATURE: dns: add LOC resource records (RFC 1876) (mirage/ocaml-dns#310 @RyanGibb)
Certain character (and character sequences) were not allowed in the domain name on the left in a zone file since the lexer created tokens that were not accepted by the parser (missing in the `keyword_or_number` rule): - N S E W (since #310) - -<number> (NEG_NUMBER, also since #310) - <number>m (METERS, also since #310) - DS (since #290) - CAA (since the beginning of this development) - TYPEYYY (since the beginning of this development) Also add test cases and an explanatory comment to keep Dns_zone_parser.keyword_or_number and Dns_zone_lexer.kw_or_cs synchronised.
See rfc1876