# Custom hostnames for agent deployments

**URL:** <https://discuss.elastic.co/t/custom-hostnames-for-agent-deployments/276997>\
**Category:** Beats\
**Tags:** elastic-agent\
**Created:** [June 25, 2021, 2:49am UTC](https://discuss.elastic.co/t/custom-hostnames-for-agent-deployments/276997 "2021-06-25T02:49:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![netfire](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netfire/32/80547_2.png) [@netfire](https://discuss.elastic.co/u/netfire)\
**Post date:** [June 25, 2021, 2:49am UTC](https://discuss.elastic.co/t/custom-hostnames-for-agent-deployments/276997/1 "2021-06-25T02:49:17Z")

</div>

I'm testing out fleet. I would like the agents and associated beats to utilize a hostname I provide (or using a template of some sort). The issue I have is that windows hosts are not using the FQDN (in my case it would be based on the joined AD domain). I'm currently deploying the agents using the installer via an ansible playbook, so I could easily template the hostname before or after installing if necessary. Please let me know how this can be done.  
Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 23, 2021, 4:49am UTC](https://discuss.elastic.co/t/custom-hostnames-for-agent-deployments/276997/2 "2021-07-23T04:49:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
