-
Notifications
You must be signed in to change notification settings - Fork 10
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
Include statements are processed even when commented out. #9
Comments
Thanks for the report. Can you provide a minimal test case that shows this behavior? I took a quick look at the code and the |
Thanks for looking into it! I am not super familiar with Perl, but looks like the script is processing The |
If you still need a test case, I'll try to build one later today. |
Here is minimal test case:
When running:
|
I got around this by mangling the commented include line in named.conf:
Everything was fine before I amended my config to have an external view and an internal view, which is when I commented that line and moved it to the internal view. The script really should remove comments before it processes includes, and then remove comments on the included file before processing any includes THAT file might contain. Getting that recursive nature handled might be difficult, depending on how the logic actually works ... my mangling solution is probably easier! The best solution would be to use or write a processor that truly understands EVERYTHING bind config syntax can do, which would know to completely ignore anything that is commented with any of the available commenting syntax. I have no idea whether any such animal exists already or not. |
Include statements in
/etc/bind/named.conf
are processed even when commented out using//
.The text was updated successfully, but these errors were encountered: