-
Notifications
You must be signed in to change notification settings - Fork 112
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
allow recursion #47
allow recursion #47
Conversation
ok I was a little bit too much in need of a disable check name, so I also added it to this pull request :) |
Yes of course, tests. Acceptance criteria are:
|
I would prefer. To have one feature per pull request, but I'll keep going. Lets start with validation. Can you add validation on the arrays to start? |
I changed the whole check name to allow for more freedom. You can specify each level independently. |
test written. |
let :params do | ||
{ :allow_recursion => ['10.0.0.1'] } | ||
end | ||
|
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.
can you add additionally that the allow-recursion is in there too?
In these controlled tests, it is not going to be possible for that ip to be leaked from other things, but it might in the future.
In the last 8 days things have changed. Can you merge or rebase against master to fix merge conflicts so Travis can run? |
rebased |
so if we are backward compatible to bind 4.9.4, the check name options is a bit different. ubuntu 12.04 is new enough to not have a bind that is that old. |
Also thanks for the changes in rspec, the test are now much simpler to read and write. |
I have a question, not on this pull request, and on dns::server::options as a whole... In my current implementation setting properties of dns-options looks so: ## Bind (DNS) settings
class{ "dns::server":
forwarders => ['8.8.8.8', '4.2.2.2'],
allow_query => ['172.16.0.0/12', '10.0.0.0/8', '127.0.0.1'],
allow_recursion => ['172.16.0.0/12', '10.0.0.0/8', '127.0.0.1'],
listen_on => ['127.0.0.1', '10.25.2.20'],
} We don't need more then one block of dns-options in real life. Can be to declare this define as a class or really to move it functionality to dns::server? |
Personally, I never used multiple instance of the option defined type. |
I haven't had a chance to look very closely but I trust your judgment!
|
@gcmalloc Thank you for this contribution! You worked hard to take it from a few commits to adding a lot of extra "polish" to make it a really good PR. I appreciate that. |
Do what you got to do! It's great you guys are keeping things moving along.
|
😄 |
thanks for everything :) |
Allow recursion globally for certain ip or ranges.