From b6fec303c53b8f9d6f741f508928d0529d5c096a Mon Sep 17 00:00:00 2001 From: pemontto <939704+pemontto@users.noreply.github.com> Date: Tue, 7 May 2024 10:50:00 +0100 Subject: [PATCH] Update DNS IP regarding multiple IPs (#32308) * Update DNS IP regarding multiple IPs * Update dnsip.markdown Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> * Update source/_integrations/dnsip.markdown --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Co-authored-by: G Johansson --- source/_integrations/dnsip.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/dnsip.markdown b/source/_integrations/dnsip.markdown index f99bf6f57a5..832d3d7859f 100644 --- a/source/_integrations/dnsip.markdown +++ b/source/_integrations/dnsip.markdown @@ -17,7 +17,7 @@ ha_integration_type: integration The **DNS IP** {% term integration %} 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 {% term integration %} with the default value, it will query the [OpenDNS](https://www.opendns.com/) 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. +2. If you specify a `hostname`, a regular DNS lookup will be performed, providing you the IP the hostname resolves to. If your hostname resolves to multiple IP addresses, the lowest IP will be returned as the state. The first 10 IPs will be returned in ascending order in the `ip_addresses` attribute. {% include integrations/config_flow.md %}