A simple DNS server.
Setup and manage a Dnsmasq DNS server. This allows you to manipulate DNS requests. For example, you can have your Home Assistant domain resolve with an internal address inside your network.
The installation of this add-on is straightforward and easy to do.
- Navigate in your Home Assistant frontend to Hass.io -> Add-on Store.
- Find the "Dnsmasq" add-on and click it.
- Click on the "INSTALL" button.
The add-on has a couple of options available. For more detailed instructions see below. The basic thing to get the add-on running would be:
- Start the add-on.
The Dnsmasq add-on can be tweaked to your likings. This section describes each of the add-on configuration options.
Example add-on configuration:
{
"defaults": ["8.8.8.8", "8.8.4.4"],
"forwards": [
{"domain": "mystuff.local", "server": "192.168.1.40"}
],
"hosts": [
{"host": "home.mydomain.io", "ip": "192.168.1.10"}
]
}
The defaults are upstream DNS servers, where DNS requests that can't be handled locally, are forwarded to. By default it is configured to have Google's public DNS servers: `"8.8.8.8", "8.8.4.4".
This option allows you to list domain that are forwarded to a different (not the default) upstream DNS server.
The domain to forward to a different upstream DNS server.
The DNS server to forward the request for this domain to.
This option allows you to provide local static answer for your DNS server.
This is helpful for making addresses resolve on your internal network and even override external domains to be answered with a local address.
For example, one could set myuser.duckdns.org
to resolve directly to a
internal IP address, e.g., 192.168.1.10
. While outsite of this network,
it would resolve normally.
This options allows you to create a so called: Split DNS.
The hostname or domainname to resolve locally.
The IP address Dnsmasq should respond with in its DNS answer.
Got questions?
You have several options to get them answered:
- The Home Assistant Discord Chat Server.
- The Home Assistant Community Forum.
- Join the Reddit subreddit in /r/homeassistant
In case you've found an bug, please open an issue on our GitHub.