# Register 2 nodes with the same hostname

**URL:** <https://forums.suse.com/t/register-2-nodes-with-the-same-hostname/10735>\
**Category:** SUSE Rancher Prime\
**Created:** [June 12, 2018, 2:21pm UTC](https://forums.suse.com/t/register-2-nodes-with-the-same-hostname/10735 "2018-06-12T14:21:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razikus](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/razikus/32/4148_2.png) [@Razikus](https://forums.suse.com/u/Razikus)\
**Post date:** [June 12, 2018, 2:21pm UTC](https://forums.suse.com/t/register-2-nodes-with-the-same-hostname/10735/1 "2018-06-12T14:21:22Z")

</div>

it is possible?

I have 2 nodes with the same /etc/hostname

If it is possible to register them into custom cluster without changing hostname on machine?

---

<div class="post-metadata">

**Author:** ![nvds](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nvds](https://forums.suse.com/u/nvds)\
**Post date:** [June 13, 2018, 8:11am UTC](https://forums.suse.com/t/register-2-nodes-with-the-same-hostname/10735/2 "2018-06-13T08:11:33Z")

</div>

You can add a custom name to a host. Once the node is provisioning, you can edit the node and provide a custom name. I would think this would solve your problem.

I’m just starting to learn kubernetes, rancher, … (I’m new to the field). So my answer might not be correct.

---

<div class="post-metadata">

**Author:** ![Razikus](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/razikus/32/4148_2.png) [@Razikus](https://forums.suse.com/u/Razikus)\
**Post date:** [June 13, 2018, 8:17am UTC](https://forums.suse.com/t/register-2-nodes-with-the-same-hostname/10735/3 "2018-06-13T08:17:33Z")

</div>

I will check this and report if it is working

---

<div class="post-metadata">

**Author:** ![Razikus](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/razikus/32/4148_2.png) [@Razikus](https://forums.suse.com/u/Razikus)\
**Post date:** [June 13, 2018, 8:23am UTC](https://forums.suse.com/t/register-2-nodes-with-the-same-hostname/10735/4 "2018-06-13T08:23:30Z")

</div>

Unfortunatelly it’s not working ☹

---

<div class="post-metadata">

**Author:** ![gibalmeida](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/gibalmeida/32/4161_2.png) [@gibalmeida](https://forums.suse.com/u/gibalmeida)\
**Post date:** [June 13, 2018, 6:35pm UTC](https://forums.suse.com/t/register-2-nodes-with-the-same-hostname/10735/5 "2018-06-13T18:35:55Z")

</div>

I don’t think so.

I also tried with two hosts with the same hostname but just only one host show up on the cluster.

If you want to change the hostname is easy, just type the following command:

sudo ros config set hostname HOSTNAME

---

<div class="post-metadata">

**Author:** ![Razikus](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/razikus/32/4148_2.png) [@Razikus](https://forums.suse.com/u/Razikus)\
**Post date:** [June 14, 2018, 7:10am UTC](https://forums.suse.com/t/register-2-nodes-with-the-same-hostname/10735/6 "2018-06-14T07:10:07Z")

</div>

yes but it’s for a Rancher OS

and i’m asking if there is a possibility to register 2 nodes with the same hostname without changing anything on machine
