Skip to content

Commit 1298c59

Browse files
agnersclaude
andcommitted
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>
1 parent 67ce413 commit 1298c59

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rootfs/usr/share/tempio/corefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
max_fails 5
2323
}
2424
{{ if .fallback }}fallback REFUSED,SERVFAIL,NXDOMAIN . dns://127.0.0.1:5553{{ end }}
25-
cache
25+
cache {
26+
disable denial local.hass.io
27+
}
2628
}
2729

2830
.:5553 {

0 commit comments

Comments
 (0)