# Hosting a domain in localhost

**URL:** <https://community.learnlinux.tv/t/hosting-a-domain-in-localhost/694>\
**Category:** Uncategorized\
**Created:** [July 28, 2021, 10:49am UTC](https://community.learnlinux.tv/t/hosting-a-domain-in-localhost/694 "2021-07-28T10:49:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItzB](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/i/bb73d2/32.png) [@ItzB](https://community.learnlinux.tv/u/ItzB)\
**Post date:** [July 28, 2021, 10:49am UTC](https://community.learnlinux.tv/t/hosting-a-domain-in-localhost/694/1 "2021-07-28T10:49:27Z")

</div>

Is it possible to host a domain in localhost??

like .net .org .com in localhost??

---

<div class="post-metadata">

**Author:** ![ameinild](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@ameinild](https://community.learnlinux.tv/u/ameinild)\
**Post date:** [July 28, 2021, 12:09pm UTC](https://community.learnlinux.tv/t/hosting-a-domain-in-localhost/694/2 "2021-07-28T12:09:41Z")

</div>

Yes, this can be done if you’re using a local DNS resolver. On systems using systemd, the default resolver would be systemd-resolved.

Alternately, you could use another DNS resolver, like Unbound (which I use). For the exact configuration, you will have to consult the documentation of your chosen DNS resolver.
