# Resolving hostname while installing Elastic Agent

**URL:** <https://discuss.elastic.co/t/resolving-hostname-while-installing-elastic-agent/376050>\
**Category:** Elastic Agent\
**Created:** [March 18, 2025, 8:19am UTC](https://discuss.elastic.co/t/resolving-hostname-while-installing-elastic-agent/376050 "2025-03-18T08:19:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![r00t](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/r00t/32/142111_2.png) [@r00t](https://discuss.elastic.co/u/r00t)\
**Post date:** [March 18, 2025, 8:19am UTC](https://discuss.elastic.co/t/resolving-hostname-while-installing-elastic-agent/376050/1 "2025-03-18T08:19:08Z")

</div>

Hi community. I had a setup to access interface via hostname instead of IP adress.  
While trying to deploying agents on Windows machines via ELASTIC FLEET they can not resolve.  
I know editing the hosts file will fix problem but any other solution if you guys can suggest ?
