# Cluster Update Failed Because of same hostname for all nodes

**URL:** <https://community.dynatrace.com/t/cluster-update-failed-because-of-same-hostname-for-all-nodes/40794>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, cluster-management-console\
**Created:** [July 20, 2023, 7:55am UTC](https://community.dynatrace.com/t/cluster-update-failed-because-of-same-hostname-for-all-nodes/40794 "2023-07-20T07:55:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauresh\_shinde](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gauresh_shinde/32/16558_2.png) [@gauresh\_shinde](https://community.dynatrace.com/u/gauresh_shinde)\
**Post date:** [July 20, 2023, 7:55am UTC](https://community.dynatrace.com/t/cluster-update-failed-because-of-same-hostname-for-all-nodes/40794/1 "2023-07-20T07:55:24Z")

</div>

Hi All,

We have 3 node cluster but all node have same hostname in CMC. We want to change the hostname. Anyone has done please assist us. Currently it using domain name as hostname

 ![gauresh_shinde_0-1689839621295.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/b/2bee5699b44a50b8cec35d0aec8024f37f3974f6.png)

Thanks,  
Gauresh

---

<div class="post-metadata">

**Author:** ![chris\_v](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@chris\_v](https://community.dynatrace.com/u/chris_v)\
**Post date:** [July 25, 2023, 3:51am UTC](https://community.dynatrace.com/t/cluster-update-failed-because-of-same-hostname-for-all-nodes/40794/2 "2023-07-25T03:51:05Z")

</div>

Hi Gauresh,

The cluster nodes get their names from a self-lookup on the nodes themselves, when the naming appears wrong, it’s usually because the nodes hosts file doesn’t include the right details.

I suggest you look at the /etc/hosts file on each node, and if not present add a self-resolving (localhost/127.0.0.1) entry for each node. without knowing what may already be in the hosts file in your case, leave anything already in there alone.

so for example if you have three nodes named _node1_, _node2_, and _node3_, and your domain name is _[example.org](http://example.org)_ add a line in each like the below.

on node 1’s /etc/hosts:  
127.0.0.1&nbsp;&nbsp;&nbsp; node1 [node1.example.org](http://node1.example.org)

on node 2’s /etc/hosts:  
127.0.0.1&nbsp;&nbsp;&nbsp; node2 [node2.example.org](http://node2.example.org)

on node 3’s /etc/hosts:  
127.0.0.1&nbsp;&nbsp;&nbsp; node3 [node3.example.org](http://node3.example.org)

The changes won’t be picked up until after restarts, so don’t worry if you don’t see a change right away.

The same can be used for any Linux based ActiveGates you may have incorrect names for.

---

<div class="post-metadata">

**Author:** ![gauresh\_shinde](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gauresh_shinde/32/16558_2.png) [@gauresh\_shinde](https://community.dynatrace.com/u/gauresh_shinde)\
**Post date:** [July 28, 2023, 12:42pm UTC](https://community.dynatrace.com/t/cluster-update-failed-because-of-same-hostname-for-all-nodes/40794/3 "2023-07-28T12:42:35Z")

</div>

Is there any impact on Dynatrace setup?

---

<div class="post-metadata">

**Author:** ![chris\_v](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@chris\_v](https://community.dynatrace.com/u/chris_v)\
**Post date:** [August 1, 2023, 1:51am UTC](https://community.dynatrace.com/t/cluster-update-failed-because-of-same-hostname-for-all-nodes/40794/4 "2023-08-01T01:51:35Z")

</div>

No, the cluster uses the IP addresses for communications, the naming is just for us humans.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [August 7, 2023, 10:20am UTC](https://community.dynatrace.com/t/cluster-update-failed-because-of-same-hostname-for-all-nodes/40794/5 "2023-08-07T10:20:25Z")

</div>

I’d be cautious with such a setup. I’m concerned it may cause OneAgent/ActiveGate communication issues, as hostnames will appear in the communication endpoint list. If the same domain is represented by multiple nodes it may cause instability, missed or incomplete data. It is recommended to have separate host names.
