Skip to content

Fix for misleading SOA parser warnings#7774

Merged
thevilledev merged 3 commits into
coredns:masterfrom
rossigee:bugfix/soa-parser-warnings
Dec 21, 2025
Merged

Fix for misleading SOA parser warnings#7774
thevilledev merged 3 commits into
coredns:masterfrom
rossigee:bugfix/soa-parser-warnings

Conversation

@rossigee

Copy link
Copy Markdown
Contributor

1. Why is this pull request needed and what does it do?

I was investigating an issue where what appeared to be valid zone files were being rejected with a 'missing SOA' error. The SOA was present and looked legitimate (to me, at least!). I was scratching my until I realised that it wasn't actually missing, it was just malformed because I'd gone over the 32bit uint limit. The error message was misleading.

2. Which issues (if any) are related?

N/A

3. Which documentation changes (if any) need to be made?

N/A

4. Does this introduce a backward incompatible change or deprecation?

No.

@thevilledev thevilledev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rossigee! I also noticed this same defect exists in the "sign" plugin, so I opened a PR to fix it in #7775.

In addition to fixing the linting, few minor changes requested.

Comment thread plugin/file/file_test.go Outdated
Comment thread plugin/file/file_test.go Outdated
Signed-off-by: Ross Golder <ross@golder.org>
Signed-off-by: Ross Golder <ross@golder.org>
…ix gofmt

Signed-off-by: Ross Golder <ross@golder.org>
@rossigee rossigee force-pushed the bugfix/soa-parser-warnings branch from 61452e4 to 123021e Compare December 21, 2025 03:18
@rossigee rossigee requested a review from thevilledev December 21, 2025 03:19
@rossigee

Copy link
Copy Markdown
Contributor Author

In addition to fixing the linting, few minor changes requested.

Thanks for the rapid response. Changes made as requested.

@thevilledev thevilledev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thevilledev thevilledev merged commit f35e57f into coredns:master Dec 21, 2025
11 checks passed
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.

2 participants