diff --git a/hassio/data/coredns.tmpl b/hassio/data/coredns.tmpl index 9d24151ca..7ab08f4aa 100644 --- a/hassio/data/coredns.tmpl +++ b/hassio/data/coredns.tmpl @@ -4,6 +4,9 @@ hosts /config/hosts { fallthrough } + template ANY AAAA local.hass.io hassio { + rcode NOERROR + } forward . $servers { except local.hass.io policy sequential diff --git a/hassio/dns.py b/hassio/dns.py index 9623d3da0..a06bd81f0 100644 --- a/hassio/dns.py +++ b/hassio/dns.py @@ -234,6 +234,7 @@ class CoreDNS(JsonConfig, CoreSysAttributes): ["homeassistant", "home-assistant"], write=False, ) + self.add_host(self.sys_docker.network.dns, ["dns"], write=False) def write_hosts(self) -> None: """Write hosts from memory to file."""