diff --git a/supervisor/plugins/dns.py b/supervisor/plugins/dns.py index 27ee99e45..58d9ac1ef 100644 --- a/supervisor/plugins/dns.py +++ b/supervisor/plugins/dns.py @@ -150,8 +150,12 @@ class CoreDNS(JsonConfig, CoreSysAttributes): _LOGGER.error("Can't read resolve.tmpl: %s", err) # Run CoreDNS + # If running, restart to update config/hosts + # this get shipped with Supervisor with suppress(CoreDNSError): - if not await self.instance.is_running(): + if await self.instance.is_running(): + await self.restart() + else: await self.start() # Update supervisor