Skip to content

fix: allow any valid DNS label characters in RR file parser#30

Open
dotysan wants to merge 1 commit intoanonion0:masterfrom
dotysan:fix/rrfile-parser-special-chars
Open

fix: allow any valid DNS label characters in RR file parser#30
dotysan wants to merge 1 commit intoanonion0:masterfrom
dotysan:fix/rrfile-parser-special-chars

Conversation

@dotysan
Copy link
Copy Markdown

@dotysan dotysan commented Apr 21, 2026

The parser regexes for owner and next-owner names only accepted [a-zA-Z0-9\_*-], but vis.py can output any printable ASCII in labels. This caused --continue to fail with "invalid file format" on zones containing names like //.com.er. (RFC 2181 §11 permits any octet in labels).

Relax both regexes to accept any non-whitespace, non-dot character, matching what the writer can produce and the DNS protocol allows.

Fixes: #29

The parser regexes for owner and next-owner names only accepted
[a-zA-Z0-9\\_*-], but vis.py can output any printable ASCII in labels.
This caused --continue to fail with "invalid file format" on zones
containing names like //.com.er. (RFC 2181 §11 permits any octet in
labels).

Relax both regexes to accept any non-whitespace, non-dot character,
matching what the writer can produce and the DNS protocol allows.

Fixes: anonion0#29
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

Successfully merging this pull request may close these issues.

cannot read own output in --continue mode

1 participant