There may be a way to do it via dns, but why wouldn’t you use something like haproxy? You can use a single node instance to do it. I mention it because many devices have a very simple and/or old network stack that may not play as nice as a more full featured network stack. If they are all http/s based services, NGINX serves as a great option. Port information is not in the DNS specification. My $0.02.

Mac

--
Donald Mac McCarthy
Director, Field Operations
+1.602.584.4445 (desk)
+1.602.727.4131 (mobile)

On Sunday, Jul 25, 2021 at 2:13 PM, Aaron Jones via PLUG-discuss <plug-discuss@lists.phxlinux.org> wrote:
You can assign domain names to local services internally using pihole. Yes. I do. 

On Jul 25, 2021, at 10:07 AM, Amit Nepal via PLUG-discuss <plug-discuss@lists.phxlinux.org> wrote:


If I am understanding your question correctly, you can use pihole to resolve ips to your local domain names like you can with linux hosts file, but I don't believe there is a way to include port numbers with DNS resolution.

Thank You,
Amit

On 7/25/2021 12:08 AM, Steve B via PLUG-discuss wrote:
Is there a way to use Pi-holes local DNS functions to create entries for services on my local LAN? 

For example if Pi-Hole is at http://192.168.1.160/admin can i create something that has that full URL? The Linux hosts file limits me to the IP address and I'm looking for a way to have anything that comes after the IP such as port numbers and such.

--------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: https://lists.phxlinux.org/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss