# Can I use Pi-Hole DNS as a online hosts manager?

**URL:** <https://discourse.pi-hole.net/t/can-i-use-pi-hole-dns-as-a-online-hosts-manager/25504>\
**Category:** Off topic\
**Created:** [November 22, 2019, 8:50am UTC](https://discourse.pi-hole.net/t/can-i-use-pi-hole-dns-as-a-online-hosts-manager/25504 "2019-11-22T08:50:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGulshanKumar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/thegulshankumar/32/9949_2.png) [@TheGulshanKumar](https://discourse.pi-hole.net/u/TheGulshanKumar)\
**Post date:** [November 22, 2019, 8:50am UTC](https://discourse.pi-hole.net/t/can-i-use-pi-hole-dns-as-a-online-hosts-manager/25504/1 "2019-11-22T08:50:53Z")

</div>

Hi.

Is it possible to point a domain to specific IP address using Pi-hole server?

```auto
139.XX.XXX.XX example.com
139.XX.XXX.XX www.example.com

```

### Why I need this?

- Before I make my site live, I want to test it on Android device by pointing domain to new IP locally.
- For some reason, I cannot do this via other devices.

Not sure if this is related

- [ubuntu - Pi-Hole Redirecting Domain to IP - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/454039/pi-hole-redirecting-domain-to-ip)
- [Add host-record option by DL6ER · Pull Request #1266 · pi-hole/pi-hole · GitHub](https://github.com/pi-hole/pi-hole/pull/1266)

Thanks & Regards,  
Gulshan

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [November 22, 2019, 12:41pm UTC](https://discourse.pi-hole.net/t/can-i-use-pi-hole-dns-as-a-online-hosts-manager/25504/2 "2019-11-22T12:41:59Z")

</div>

Add these mappings to `/etc/hosts` on the Pi-Hole host.
