Local DNS resolution for server?

Father_Redbeard
2023-06-27T00:22:54Z

I have to preface this question with a disclaimer that I am an eager learner of Linux and servers in general, but I'm still a beginner and often run into roadblocks.

Current setup:

Raspberry Pi 3 with Adguard Home acting as primary DNS

unRAID server with Adguard Home acting as secondary DNS

About a dozen other containers running on same server

DHCP is handled by my router

Goal:

provide local DNS names for the containers running in unRAID so I don't have to enter IP:Port (e.g, calibre.local) which also has the side benefit saving the various username/password combos into Bitwarden with an actual domain attached to it instead of 14 occurrences of 192.168.x.x

Additional info:

I had PiHole running on the Pi before as the primary and only DNS previously. And I seem to recall you could put IP:Port as a custom DNS and have it resolve. AGH does have a feature for DNS Rewrites but it does not allow for port numbers, IPs only. I switched to AGH because it seems to be more effective at blocking ads, which is likely more a function of the provided DNS blocklists out of the box as opposed to what I was doing in Pihole. I would prefer to stick with AGH for adblocking/DNS if possible.

I looked into just modifying host files on the main computers I touch these apps from, but again, can't include port. What is a good solution for this? Preferably something approachable for a newb like me.

Comments URL: https://tildes.net/~comp/171c/local_dns_resolution_for_server

Votes: 11

Comments: 11