Commit b2e083f
Disable negative caching for local.hass.io (#202)
* Disable negative caching for local.hass.io
When a name under local.hass.io is queried before Supervisor's hosts
file entry is picked up (e.g. right after an add-on started), the
resulting NXDOMAIN is negative-cached for ~5s, prolonging resolution
failures even after the hosts entry became visible.
Disable caching of denial responses for local.hass.io. Positive answers
are still cached, and entries for these names live in the local hosts
file anyway, so negative caching provides no benefit here.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Apply negative caching exception to fallback corefile as well
The static /etc/corefile is used when tempio fails to render the
template; keep its cache block in sync.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 67ce413 commit b2e083f
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments