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

Parsing a zonefile that contains an unknown CLASS mnemonic causes the wrong error message. #455

Open
ximon18 opened this issue Nov 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ximon18
Copy link
Member

ximon18 commented Nov 27, 2024

When using the inplace zonefile parsing support providing a zonefile that has a CHAOS or other class for an RR causes error expected rtype.

Even if this should not work for other reasons, the error should not be about an expected rtype.

If a class is unknown one might expect it to be treated as CLASS.

For example replacing IN in a SOA record with CHAOS causes this error.

@ximon18 ximon18 added the bug Something isn't working label Nov 27, 2024
@ximon18
Copy link
Member Author

ximon18 commented Nov 27, 2024

Ah, user error. Using actual https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-2 CLASS mnemonics or any unsigned integer number works fine.

RFC 3597 style CLASS also works (as in does not cause a parsing error).

What doesn't work is an unknown mnemonic, which produces the expected rtype error.

@ximon18 ximon18 changed the title Parsing a zonefile that contains non-IN class RRs fails. Parsing a zonefile that contains an unknown CLASS mnemonic causes the wrong error message. Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant