---
title: "How to set alias for hostname in probe setup"
description: "Setting an alias for a hostname in Geneos probe setup requires proper hostname resolution. You must define the alias-to-hostname mapping in the gateway machine's /etc/hosts file or create a DNS CNAME record for the alias."
url: "https://docs.itrsgroup.com/docs/faq/geneos/12137673150109-geneos-how-to-set-alias-for-hostname-in-probe-setup/index.html"
---
## Concern(s)

The actual setup and working fine with the actual hostname:

![GENEOS - How to set alias for hostname in probe setup.](https://docscdn.itrsgroup.com/faq/images/geneos/12137673150109-15892351228317-mceclip3.png)

- The client set up the probe by declaring the hostname the same word as the name.
- They are trying to replace the hostname with an alias by doing ssh, and the hostname gives the same result on the host but in ITRS it shows disconnected for alias.

![GENEOS - How to set alias for hostname in probe setup.](https://docscdn.itrsgroup.com/faq/images/geneos/12137673150109-15892351229981-mceclip4.png)

![GENEOS - How to set alias for hostname in probe setup.](https://docscdn.itrsgroup.com/faq/images/geneos/12137673150109-15978789424925-mceclip1.png)

Note: Example State Tree View

## Answer(s)

- Need to define first the host alias to hostname to the /etc/hosts file of the gateway machine.
- There needs to be a translation between an alias to a hostname or need to create a cname with the alias in the DNS for the hostname.

## Reference

- <https://learn.microsoft.com/en-us/windows-server/networking/core-network-guide/cncg/server-certs/create-an-alias-cname-record-in-dns-for-web1>


