# Change of hostname

**URL:** <https://community.dynatrace.com/t/change-of-hostname/8030>\
**Category:** Open Q&A\
**Tags:** hosts-classic\
**Created:** [September 20, 2017, 10:56am UTC](https://community.dynatrace.com/t/change-of-hostname/8030 "2017-09-20T10:56:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rb0c70091](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rb0c70091](https://community.dynatrace.com/u/rb0c70091)\
**Post date:** [September 20, 2017, 10:56am UTC](https://community.dynatrace.com/t/change-of-hostname/8030/1 "2017-09-20T10:56:14Z")

</div>

If a hostname gets changed on the command line of a host that already has an agent does that change get shown on the details of the host in the Topology? We have an example of a host (with agent) getting cloned to a different IP address and then the name being changed on the command line. The original name and new IP continues in the Host details.

---

<div class="post-metadata">

**Author:** ![hayden\_miedema](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hayden_miedema/32/29357_2.png) [@hayden\_miedema](https://community.dynatrace.com/u/hayden_miedema)\
**Post date:** [September 21, 2017, 6:09pm UTC](https://community.dynatrace.com/t/change-of-hostname/8030/2 "2017-09-21T18:09:09Z")

</div>

This would require a restart of the desired process to which you wish to see changes since the agent is already injected at the time the change is made. You could fully restart the host as well, but it is only necessary to do so for the processes required.

---

<div class="post-metadata">

**Author:** ![rb0c70091](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rb0c70091](https://community.dynatrace.com/u/rb0c70091)\
**Post date:** [September 22, 2017, 6:46am UTC](https://community.dynatrace.com/t/change-of-hostname/8030/3 "2017-09-22T06:46:04Z")

</div>

Hi Haden, Thanks for the reply. So are you saying that the “discoveredName” in the Host Topology API will change if I restart the host after changing the hostname ?

---

<div class="post-metadata">

**Author:** ![hayden\_miedema](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hayden_miedema/32/29357_2.png) [@hayden\_miedema](https://community.dynatrace.com/u/hayden_miedema)\
**Post date:** [September 22, 2017, 4:39pm UTC](https://community.dynatrace.com/t/change-of-hostname/8030/4 "2017-09-22T16:39:05Z")

</div>

Hi Ray,

Yes that’s right. It should change after a restart.
