Start resolved to support mDNS
All checks were successful
/ terraform (push) Successful in 34s
/ ansible (push) Successful in 1m44s

This commit is contained in:
Jake Howard 2024-01-10 13:28:45 +00:00
parent 06b9197c5b
commit ac166c3874
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 30 additions and 3 deletions

View file

@ -17,15 +17,15 @@
}
theorangeone.net:5353 {
theorangeone.net:53053 {
import alias
}
jakehoward.tech:5353 {
jakehoward.tech:53053 {
import alias
}
.:5353 {
.:53053 {
acl {
block
}

View file

@ -0,0 +1,3 @@
[Resolve]
DNS=127.0.0.1
DNSStubListener=no

View file

@ -4,3 +4,10 @@
state: restarted
enabled: true
become: true
- name: restart systemd-resolved
service:
name: systemd-resolved
state: restarted
enabled: true
become: true

View file

@ -3,6 +3,23 @@
name: adguardhome-bin
become: true
- name: Disable resolved stub
template:
src: files/resolved-adguardhome.conf
dest: /etc/systemd/resolved.conf.d/adguardhome.conf
owner: root
mode: "0644"
notify: restart systemd-resolved
become: true
- name: Use resolved resolv.conf
file:
src: /run/systemd/resolve/resolv.conf
dest: /etc/resolv.conf
state: link
notify: restart systemd-resolved
become: true
- name: Install coredns
kewlfft.aur.aur:
name: coredns