Fix AAAA resolv for nginx (#1246)

This commit is contained in:
Pascal Vizeli 2019-08-18 21:05:42 +02:00 committed by GitHub
parent 4f381d01df
commit fb8216c102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,9 @@
hosts /config/hosts { hosts /config/hosts {
fallthrough fallthrough
} }
template ANY AAAA local.hass.io hassio {
rcode NOERROR
}
forward . $servers { forward . $servers {
except local.hass.io except local.hass.io
policy sequential policy sequential

View File

@ -234,6 +234,7 @@ class CoreDNS(JsonConfig, CoreSysAttributes):
["homeassistant", "home-assistant"], ["homeassistant", "home-assistant"],
write=False, write=False,
) )
self.add_host(self.sys_docker.network.dns, ["dns"], write=False)
def write_hosts(self) -> None: def write_hosts(self) -> None:
"""Write hosts from memory to file.""" """Write hosts from memory to file."""