We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As far as I see, its currently not possible to add a forward only zone, because the "file"-statement is not allow while using type forward
zone "domain.tld" { type forward; forward only; #file [...] (not allowed) forwarders { 123.123.123.123; // dns-server of domain.tld }; };
I really far away being a ruby expert, so: Is this a fix? _zone.erb_
zone "<%= @zone %>" { type <%= @zone_type %>; <% if @zone_notify -%> notify <%= @zone_notify %>; <% end -%> <% if @zone_type != "forward" %> file "<%= @zone_file %>"; <% end -%> <% if @zone_type == 'slave' -%> masters { <%= @slave_masters %>;}; <% elsif @zone_type == 'master' or @zone_type == 'forward'-%> <% if @allow_transfer -%> allow-transfer { <% @allow_transfer.each do |ip| -%> <%= ip %>; <% end -%> }; <% end -%> <% if !@allow_forwarder.empty? -%> forward <%= @forward_policy %>; forwarders { <% @allow_forwarder.each do |ip| -%> <%= ip %>; <% end -%> }; <% end -%> <% end -%> };
The text was updated successfully, but these errors were encountered:
I think that would be fine. I would accept a PR if it was accompanied with tests for this.
I agree that the file line should not be there on a forward zone ftp://ftp.isc.org/isc/bind9/cur/9.10/doc/arm/Bv9ARM.ch06.html#zone_statement_grammar
Sorry, something went wrong.
okay I try to do it next week
This issue can be closed. The suggested changes and tests were committed in 19ebe75.
No branches or pull requests
As far as I see, its currently not possible to add a forward only zone, because the "file"-statement is not allow while using type forward
I really far away being a ruby expert, so: Is this a fix?
_zone.erb_
The text was updated successfully, but these errors were encountered: