# Local DNS entries - port based entries

**URL:** <https://discourse.pi-hole.net/t/local-dns-entries-port-based-entries/32969>\
**Category:** Closed or Out Of Scope\
**Created:** [May 20, 2020, 12:50pm UTC](https://discourse.pi-hole.net/t/local-dns-entries-port-based-entries/32969 "2020-05-20T12:50:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![poiromaniax](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/poiromaniax/32/8305_2.png) [@poiromaniax](https://discourse.pi-hole.net/u/poiromaniax)\
**Post date:** [May 20, 2020, 12:50pm UTC](https://discourse.pi-hole.net/t/local-dns-entries-port-based-entries/32969/1 "2020-05-20T12:50:59Z")

</div>

Im not sure this is even possible, but would be awesome if I could define the new local DNS entries feature based on ports too.

E.G I have a server running Plex and UniFi controller (amongst other things) and would be awesome if I could say:

```auto
Hostname IP
unifi xxx.xxx.xxx.100:8443
plex xxx.xxx.xxx.100:32400

```

---

<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:** [May 20, 2020, 1:44pm UTC](https://discourse.pi-hole.net/t/local-dns-entries-port-based-entries/32969/2 "2020-05-20T13:44:01Z")

</div>

Ports are not part of the domain name space. You will need a proxy server to redirect traffic to different ports, and this is outside the scope of Pi-hole.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [June 9, 2020, 1:25pm UTC](https://discourse.pi-hole.net/t/local-dns-entries-port-based-entries/32969/3 "2020-06-09T13:25:28Z")

</div>


