-
Notifications
You must be signed in to change notification settings - Fork 15
/
corefile
47 lines (46 loc) · 1.05 KB
/
corefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.:53 {
log {{ if not .debug }}{
class error
}{{ end }}
errors
loop
{{ if .debug }}debug{{ end }}
hosts /config/hosts {
fallthrough
}
template ANY AAAA local.hass.io hassio {
rcode NOERROR
}
template ANY A local.hass.io hassio {
rcode NXDOMAIN
}
mdns
forward . {{ join " " .servers }} {{ if len .locals | eq 0 }}dns://127.0.0.11{{ else }}{{ join " " .locals }}{{ end }} {
except local.hass.io
policy sequential
health_check 1m
max_fails 5
}
{{ if .fallback }}fallback REFUSED,SERVFAIL,NXDOMAIN . dns://127.0.0.1:5553{{ end }}
cache 600
}
.:5553 {
log {{ if not .debug }}{
class error
}{{ end }}
errors
template IN NS . {
rcode REFUSED
}
template IN HINFO . {
rcode REFUSED
}
{{ if .debug }}debug{{ end }}
forward . tls://1.1.1.1 tls://1.0.0.1 {
tls_servername cloudflare-dns.com
max_fails 2
except local.hass.io
health_check 10m
}
cache 600
}