manage several local resolver
This commit is contained in:
parent
2636d8be51
commit
3d9b462c45
@ -17,13 +17,16 @@ pihole_port:
|
||||
- "67:67/udp"
|
||||
- "{{pihole_http_port}}:80/tcp"
|
||||
|
||||
pihole_forwarder1: '1.1.1.1'
|
||||
pihole_forwarder2: '80.67.169.40'
|
||||
pihole_forwarder1: "1.1.1.1"
|
||||
pihole_forwarder2: "80.67.169.40"
|
||||
pihole_timezone: "Europe/Paris"
|
||||
pihole_local_domain: pihole.lan
|
||||
pihole_local_reverse_domain: '1.168.192.in-addr.arpa'
|
||||
pihole_local_domain:
|
||||
- domain: local.lan
|
||||
resolver: "{{ pihole_local_resolver }}"
|
||||
- domain: "1.168.192.in-addr.arpa"
|
||||
resolver: "{{ pihole_local_resolver }}"
|
||||
pihole_local_resolver:
|
||||
pihole_dns_servers:
|
||||
- '127.0.0.1'
|
||||
- '{{pihole_local_resolver | default(1.1.1.1)}}'
|
||||
pihole_update_container: false
|
||||
- "127.0.0.1"
|
||||
- "{{pihole_local_resolver | default(1.1.1.1)}}"
|
||||
pihole_update_container: false
|
||||
|
@ -1,5 +1,5 @@
|
||||
# {{ ansible_managed }}
|
||||
## local domain forwarder
|
||||
server=/local.lan/{{pihole_local_resolver}}
|
||||
server=/{{pihole_local_domain}}/{{pihole_local_resolver}}
|
||||
server=/{{pihole_local_reverse_domain}}/{{pihole_local_resolver}}
|
||||
{% for localresolver in pihole_local_domain %}
|
||||
server=/{{localresolver.domain}}/{{localresolver.resolver}}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user