fix: support port configuration of dns forwarder
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
c19f3c9db4
commit
d0db9e6944
@ -35,14 +35,22 @@ bind9_options:
|
|||||||
blackhole: []
|
blackhole: []
|
||||||
dnssec_validations: true
|
dnssec_validations: true
|
||||||
forwarders:
|
forwarders:
|
||||||
- "8.8.8.8" # Google IPv4
|
- ip: "8.8.8.8" # Google IPv4
|
||||||
- "8.8.4.4" # Google IPv4
|
port: "53"
|
||||||
- "2001:4860:4860::8888" # Google IPv6
|
- ip: "8.8.4.4" # Google IPv4
|
||||||
- "2001:4860:4860::8844" # Google IPv6
|
port: "53"
|
||||||
- "208.67.222.222" # OpenDNS IPv4
|
- ip: "2001:4860:4860::8888" # Google IPv6
|
||||||
- "208.67.220.220" # OpenDNS IPv4
|
port: "53"
|
||||||
- "2620:0:ccc::2" # OpenDNS IPv6
|
- ip: "2001:4860:4860::8844" # Google IPv6
|
||||||
- "2620:0:ccd::2" # OpenDNS IPv6
|
port: "53"
|
||||||
|
- ip: "208.67.222.222" # OpenDNS IPv4
|
||||||
|
port: "53"
|
||||||
|
- ip: "208.67.220.220" # OpenDNS IPv4
|
||||||
|
port: "53"
|
||||||
|
- ip: "2620:0:ccc::2" # OpenDNS IPv6
|
||||||
|
port: "53"
|
||||||
|
- ip: "2620:0:ccd::2" # OpenDNS IPv6
|
||||||
|
port: "53"
|
||||||
interface_interval: 0
|
interface_interval: 0
|
||||||
listen_on_ipv4:
|
listen_on_ipv4:
|
||||||
- "127.0.0.1"
|
- "127.0.0.1"
|
||||||
|
@ -176,7 +176,11 @@ options {
|
|||||||
{% if bind9_options.forwarders is defined and bind9_options.forwarders | length > 0 %}
|
{% if bind9_options.forwarders is defined and bind9_options.forwarders | length > 0 %}
|
||||||
forwarders {
|
forwarders {
|
||||||
{% for forwarder in bind9_options.forwarders %}
|
{% for forwarder in bind9_options.forwarders %}
|
||||||
{{ forwarder }};
|
{% if forwarder.port is defined and forwarder.port | length > 0 %}
|
||||||
|
{{ forwarder.ip }} port {{ forwarder.port }};
|
||||||
|
{% else %}
|
||||||
|
{{ forwarder.ip }};
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
};
|
};
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user