Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid repeated Cloudflare resolve attempts when DNS over TLS is blocked #134

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions rootfs/etc/corefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,34 @@
template ANY AAAA local.hass.io hassio {
rcode NOERROR
}
template ANY A local.hass.io hassio {
rcode NXDOMAIN
}
mdns
forward . dns://172.0.0.11:53 dns://127.0.0.1:5553 {
forward . dns://127.0.0.11 {
except local.hass.io
policy sequential
health_check 1m
max_fails 5
}
fallback REFUSED,SERVFAIL,NXDOMAIN . dns://127.0.0.1:5553
cache
}

.:5553 {
log
errors
template IN NS . {
rcode REFUSED
}
template IN HINFO . {
rcode REFUSED
}
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 5m
health_check 10m
}
cache
cache 600
}
9 changes: 8 additions & 1 deletion rootfs/usr/share/tempio/corefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@
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 0
max_fails 2
except local.hass.io
health_check 10m
}
cache 600
}