Skip to content

Commit c924bf4

Browse files
authored
Use CoreDNS default cache settings (#157)
Currently our cache settings limit the maximum time a DNS record can be cached to 600 seconds. However, from code history it is unclear why cache is set to that as maximum. A DNS entry which changes often has a lower TTL in it's response, which will be still accepted. So using the default cache setting only affects records which do have a higher TTL on their end already (and thuse likely anyways cached in the usptream DNS).
1 parent 15b0142 commit c924bf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rootfs/etc/corefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@
3939
except local.hass.io
4040
health_check 10m
4141
}
42-
cache 600
42+
cache
4343
}

rootfs/usr/share/tempio/corefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
max_fails 5
2323
}
2424
{{ if .fallback }}fallback REFUSED,SERVFAIL,NXDOMAIN . dns://127.0.0.1:5553{{ end }}
25-
cache 600
25+
cache
2626
}
2727

2828
.:5553 {
@@ -43,5 +43,5 @@
4343
except local.hass.io
4444
health_check 10m
4545
}
46-
cache 600
46+
cache
4747
}

0 commit comments

Comments
 (0)