# ActiveGate hostname: how is it decided, and can it be configured?

**URL:** <https://community.dynatrace.com/t/activegate-hostname-how-is-it-decided-and-can-it-be-configured/50780>\
**Category:** Open Q&A\
**Tags:** activegate, aws\
**Created:** [March 19, 2025, 12:05pm UTC](https://community.dynatrace.com/t/activegate-hostname-how-is-it-decided-and-can-it-be-configured/50780 "2025-03-19T12:05:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarjei\_utnes1](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@tarjei\_utnes1](https://community.dynatrace.com/u/tarjei_utnes1)\
**Post date:** [March 19, 2025, 12:05pm UTC](https://community.dynatrace.com/t/activegate-hostname-how-is-it-decided-and-can-it-be-configured/50780/1 "2025-03-19T12:05:37Z")

</div>

Hi!

We are deploying ActiveGates in AWS, and they get the less meaningful ip-1123-123-123-123- names. Is it possible to somehow control their naming, or where do they get their name from?

I tried altering the server’s hostname before installing it, but it still picks the private DNS name.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [March 19, 2025, 4:10pm UTC](https://community.dynatrace.com/t/activegate-hostname-how-is-it-decided-and-can-it-be-configured/50780/2 "2025-03-19T16:10:13Z")

</div>

Hi&nbsp;[@tarjei\_utnes1](https://community.dynatrace.com/user/23907)

Could you please check this post?

[Solved: Rename dynakube-activegate-0 - Dynatrace Community](https://community.dynatrace.com/post/237489)

I hope it helps.

Best regards,

János

---

<div class="post-metadata">

**Author:** ![tarjei\_utnes1](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@tarjei\_utnes1](https://community.dynatrace.com/u/tarjei_utnes1)\
**Post date:** [March 25, 2025, 8:23am UTC](https://community.dynatrace.com/t/activegate-hostname-how-is-it-decided-and-can-it-be-configured/50780/3 "2025-03-25T08:23:05Z")

</div>

Hi!

This is not kubernetes deployments but deployments on VMs. But thank you for the suggestion!

---

<div class="post-metadata">

**Author:** ![ljonsson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ljonsson/32/33930_2.png) [@ljonsson](https://community.dynatrace.com/u/ljonsson)\
**Post date:** [April 26, 2026, 6:35pm UTC](https://community.dynatrace.com/t/activegate-hostname-how-is-it-decided-and-can-it-be-configured/50780/4 "2026-04-26T18:35:22Z")

</div>

When the ActiveGate starts it determines its name by doing a reverse lookup on the primary IP. To change the name the ActiveGate sees, update /etc/hosts locally or if you have a route53 domain configured, add an A record for the host.

For example:

```auto
ubuntu@ip-10-0-4-119:~$ getent hosts 10.0.4.119
10.0.4.119 ip-10-0-4-119.ec2.internal

ubuntu@ip-10-0-4-119:~$ echo "10.0.4.119 dynatrace-ag" | sudo tee -a /etc/hosts
10.0.4.119 dynatrace-ag

ubuntu@ip-10-0-4-119:~$ getent hosts 10.0.4.119
10.0.4.119 dynatrace-ag

```

This results in the correct name after AG restart.

 ![ljonsson_0-1777227223073.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/f4bd9e4b46f112d3ffb28a332ae4ab8934314058.png)

/Lars J.
