DNS IP


The DNS IP integrationIntegrations connect and integrate Home Assistant with your devices, services, and more.
[Learn more]
will expose an IP address, fetched via DNS resolution (every 2 minutes), as its value. It provides both IPv4 and IPv6 lookup as separate sensors depending on accessibility to resolvers.

  1. When you enable the integrationIntegrations connect and integrate Home Assistant with your devices, services, and more.
    [Learn more]
    with the default value, it will query the OpenDNS nameservers with the hostname myip.opendns.com, which will resolve to your external/public IP address.
  2. If you specify a hostname, a regular DNS lookup will be performed, providing you the IP the hostname resolves to.

Configuration

To add the DNS IP integration to your Home Assistant instance, use this My button:

Options

Options for DNS IP can be set via the user interface, by taking the following steps:

  • Browse to your Home Assistant instance.
  • Go to Settings > Devices & Services.
  • If multiple instances of DNS IP are configured, choose the instance you want to configure.
  • Select the integration, then select Configure.
Resolver

You may override the default nameservers that are being used by setting any nameserver you like.