Set custom hostname for Elastic-Agent

Hello community,

Is there a possibility to set a custom hostname for my Elastic host when installing Elastic Agent or after the installation in the configuration files? The reason is that we are using system aliases under Linux to segregate our hosts, and we would like to use the alias of the host in Elastic and Fleet.

Thank you for your support!