# Heartbeat with Domain name target is not working

**URL:** <https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [January 10, 2021, 10:11am UTC](https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637 "2021-01-10T10:11:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![folderman](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@folderman](https://discuss.elastic.co/u/folderman)\
**Post date:** [January 10, 2021, 10:11am UTC](https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637/1 "2021-01-10T10:11:56Z")

</div>

Hi All,

I have done a simple test with heartbeat to monitor the up/down of host, however, it is found that if I use IP, it works normal, however, once I change to use domain name, it doesn't work (attached).

 ![Screenshot from 2021-01-10 18-05-50](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b42dcd6be5fb5c2a158f1cb596d8d33630571c3a.png)

Do I miss something? Thanks!

Kenneth

---

<div class="post-metadata">

**Author:** ![PaulB-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulb-elastic/32/78691_2.png) [@PaulB-Elastic](https://discuss.elastic.co/u/PaulB-Elastic)\
**Post date:** [January 11, 2021, 10:59am UTC](https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637/2 "2021-01-11T10:59:48Z")

</div>

Hi Kenneth,

You should be able to provide a hostname, so this suggests that the DNS resolution may be failing (and it appears that `www.cisco.com` is responding to ICMP).

From the host where you are running Heartbeat, is DNS resolution working? You could try running `ping www.cisco.com` on the host to see if it can resolve the DNS name successfully.

---

<div class="post-metadata">

**Author:** ![folderman](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@folderman](https://discuss.elastic.co/u/folderman)\
**Post date:** [January 12, 2021, 10:10am UTC](https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637/3 "2021-01-12T10:10:22Z")

</div>

Hi Paul,

DNS is working correctly, i can ping the domain in the terminal.

Thanks!

Rgds,  
Kenneth

---

<div class="post-metadata">

**Author:** ![PaulB-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulb-elastic/32/78691_2.png) [@PaulB-Elastic](https://discuss.elastic.co/u/PaulB-Elastic)\
**Post date:** [January 12, 2021, 12:01pm UTC](https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637/4 "2021-01-12T12:01:11Z")

</div>

Hi Kenneth,

Just to clarify, is this still not working for you in Hearbeat?

Can you include the relevant configuration from your `heartbeat.yml` file please? Also, is the monitor down all of the time? Have you tried any other host names (for other services that are definitely responding to icmp), do they also fail?

---

<div class="post-metadata">

**Author:** ![folderman](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@folderman](https://discuss.elastic.co/u/folderman)\
**Post date:** [January 12, 2021, 3:55pm UTC](https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637/5 "2021-01-12T15:55:15Z")

</div>

Hi Paul,

Finally sort out the problem. It is due to the configuration of below, inside icmp.yml:

# Configure IP protocol types to ping on if hostnames are configured.

# Ping all resolvable IPs if `mode` is `all`, or only one IP if `mode` is `any`.

ipv4: true  
ipv6: true  
mode: any

If changing ipv6: true to false. it works without problem. I think the above configuration may make heartbeat to use ipv6 as the target.

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [January 14, 2021, 7:18pm UTC](https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637/6 "2021-01-14T19:18:21Z")

</div>

Yes, that's right, unfortunately there's no great way to work around that issue with IPv6

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 11, 2021, 9:18pm UTC](https://discuss.elastic.co/t/heartbeat-with-domain-name-target-is-not-working/260637/7 "2021-02-11T21:18:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
