Start resolved to support mDNS
This commit is contained in:
parent
06b9197c5b
commit
ac166c3874
4 changed files with 30 additions and 3 deletions
|
@ -17,15 +17,15 @@
|
|||
}
|
||||
|
||||
|
||||
theorangeone.net:5353 {
|
||||
theorangeone.net:53053 {
|
||||
import alias
|
||||
}
|
||||
|
||||
jakehoward.tech:5353 {
|
||||
jakehoward.tech:53053 {
|
||||
import alias
|
||||
}
|
||||
|
||||
.:5353 {
|
||||
.:53053 {
|
||||
acl {
|
||||
block
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[Resolve]
|
||||
DNS=127.0.0.1
|
||||
DNSStubListener=no
|
|
@ -4,3 +4,10 @@
|
|||
state: restarted
|
||||
enabled: true
|
||||
become: true
|
||||
|
||||
- name: restart systemd-resolved
|
||||
service:
|
||||
name: systemd-resolved
|
||||
state: restarted
|
||||
enabled: true
|
||||
become: true
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue