Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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?

3 REPLIES 3

Mizső
DynaMight Guru
DynaMight Guru

Hi @tarjei_utnes1 

Could you please check this post?

Solved: Rename dynakube-activegate-0 - Dynatrace Community

I hope it helps.

Best regards,

János

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Hi!

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

ljonsson
Frequent Guest

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:

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

 

/Lars J.

Featured Posts