Hass.io cannot use local DNS names in place of IP addresses in configuration.yaml

I had the same problem, local DNS names did not resolve in Home Assistant but did from the SSH plugin.

When running the ha dns logs command some errors popped up:

[ERROR] plugins/errors: 2 <device>.local.hass.io. A: plugin/forward: no next plugin found

This leads me to believe that Home Assistant appends its own local domain to DNS queries (pretty normal), but then doesn’t forward the query to the upstream DNS server when it fails.

You could try either of the following to fix this, in case the same thing is happening to you:

  1. Adding a . (single dot) to the DNS name in the configuration.yaml, e.g. “envoy.” instead of “envoy”.
  2. Or, using the full DNS name, this depends on the domain of your network, for me this was .home, so “envoy” would become “envoy.home”.
4 Likes