always use arpa.xxxx.xxx

for local domain
This commit is contained in:
Kyattsukuro 2026-09-10 23:15:08 +02:00
parent f80a8e9df1
commit c39bf60baf
4 changed files with 11 additions and 8 deletions

View File

@ -35,8 +35,8 @@ ddns_override:
dns_override:
api_key: "{{ bitwarden_records_urmel_services['Pihole'].login.password }}"
domain: "pihole.arpa.be.urmel.de"
local_domain: "be.urmel.de"
domain: "pihole.arpa.urmel.de"
local_domains: ["be.urmel.de", "arpa.urmel.de"]
domain_host: 192.168.1.2
domain_host_v6: fd00:0000:1000::2
@ -47,7 +47,7 @@ homeassistant_override:
zigbee2mqtt:
zigbee_adapter_id: "usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_f4b015d959f3ef1199c2c61b6d9880ab-if00-port0"
version: latest
domain: "mqtt.arpa.be.urmel.de"
domain: "mqtt.arpa.urmel.de"
auth_token: "{{ (bitwarden_records_urmel_services['Homeassistant'].fields | selectattr('name', '==', 'mqtt_auth_token') | first).value }}"
mariadb:
password: "{{ (bitwarden_records_urmel_services['Homeassistant'].fields | selectattr('name', '==', 'mariadb_password') | first).value }}"

View File

@ -4,4 +4,6 @@ dns_override: {}
dns_defaults:
api_key: ""
domain: ""
local_domains: []
domain_host: ""
domain_host_v6: ""

View File

@ -5,4 +5,5 @@
recreate: "always"
services: ["pihole"]
state: "restarted"
when: not _dns_already_restarted
when: _dns_already_restarted is deffined and not _dns_already_restarted

View File

@ -1,5 +1,5 @@
address=/.{{ dns.local_domain }}/{{ dns.domain_host | default(ansible_facts.default_ipv4.address, true) }}
address=/.arpa.{{ dns.local_domain }}/{{ dns.domain_host | default(ansible_facts.default_ipv4.address, true) }}
{% for local_domain in dns.local_domains %}
address=/.{{ local_domain }}/{{ dns.domain_host | default(ansible_facts.default_ipv4.address, true) }}
address=/.{{ local_domain }}/{{ dns.domain_host_v6 | default(ansible_facts.default_ipv6.address, true) }}
address=/.{{ dns.local_domain }}/{{ dns.domain_host_v6 | default(ansible_facts.default_ipv6.address, true) }}
address=/.arpa.{{ dns.local_domain }}/{{ dns.domain_host_v6 | default(ansible_facts.default_ipv6.address, true) }}
{% endfor %}