dunn Posted July 7, 2023 Share Posted July 7, 2023 Hi, I just recently switched from a Ubuntu server to Unraid. I want to setup a DNS server on Unraid for private domains for all my services. I searched the forums and it kinda baffles me how few people are actually interested in this. Maybe I'm overlooking something? On my old system I used to have dnsmasq running with an Nginx reverse proxy to resolve e.g. sonarr.nas to my NASIP:8989. Now I'm searching for something similar on Unraid, but preferably as a plugin with an interface since I tend to forget about these tinkered solutions like the 14 years old how to for dnsmasq. The DNS server solutions like Technitium or Pi-hole seem to be overkill for my needs. Is there anything like that on Unraid or do I have to setup dnsmasq manually? Quote Link to comment
ljm42 Posted July 7, 2023 Share Posted July 7, 2023 Think of Unraid as an appliance, you want to modify the OS as little as possible. You should run apps like this in a Docker container, PiHole is a pretty popular one. We generally recommend that Unraid use public DNS servers like 8.8.8.8 to reduce issues with accidental blocking and increase stability when the container isn't running. Quote Link to comment
bonienl Posted July 7, 2023 Share Posted July 7, 2023 4 hours ago, dunn said: Is there anything like that on Unraid or do I have to setup dnsmasq manually? I have 6 DNS servers (PIHOLE) running as docker containers. An other DNS server alternative is ADGUARD. See the apps store. 1 Quote Link to comment
Veah Posted July 7, 2023 Share Posted July 7, 2023 4 hours ago, bonienl said: I have 6 DNS servers (PIHOLE) running as docker containers. An other DNS server alternative is ADGUARD. See the apps store.... ^^ This works. I now run PiHole on a VM (Ubuntu) because I was most easily able to integrate Unbound into it for that recursive <3 Quote Link to comment
bonienl Posted July 8, 2023 Share Posted July 8, 2023 9 hours ago, Veah said: ^^ This works. I now run PiHole on a VM (Ubuntu) because I was most easily able to integrate Unbound into it for that recursive ❤️ It is possible to run Unbound containers too. This is what I actually do. Quote Link to comment
Veah Posted July 8, 2023 Share Posted July 8, 2023 Haha. I love how you basically zoomed the camera out a bit for that. Admittedly, I did try an unbound container from the apps plugin to go alongside a PiHole container... I could not get it to work right. I was able to get it working using the pfsense unbound but it was flaky on the pfsense side and I had to periodically restart the unbound service. I stumbled upon some walkthroughs that got me where I am now and it seems to be doing the trick. Quote Link to comment
dunn Posted July 10, 2023 Author Share Posted July 10, 2023 Quite a bummer there's no feature for this yet. Theoretically it shouldn't be too much hassle to implement the feature in the web UI, dnsmasq seems to be already preinstalled on the current version of Unraid. Setting up containers or even a full VM just so I can bypass the limitations, that just doesn't sound right. My hardware is quite old and I wanted the system to draw the least energy possible, so I'm going to configure dnsmasq manually. On 7/7/2023 at 8:39 PM, bonienl said: I have 6 DNS servers (PIHOLE) running as docker containers. An other DNS server alternative is ADGUARD. See the apps store. Not sure if you think this is being helpful or if you just wanted to flex your setup. Quote Link to comment
ljm42 Posted July 11, 2023 Share Posted July 11, 2023 Let's keep things friendly please : ) Unraid is not Ubuntu. It is by far a best practice to do this sort of thing in a Docker container, they have very low overhead. You are of course welcome to do whatever you would like with your system, but the more low level customization you do the harder it will be to upgrade and you will more or less be on your own to work through any issues. 1 Quote Link to comment
Kilrah Posted July 11, 2023 Share Posted July 11, 2023 (edited) I use pihole with a custom dsnmasq configuration file added for my domains. Containers are light, and so is pihole, it's meant to run on a pi after all. I have 50 containers running and the server idles at <5% CPU. A VM would be but a container isn't "something heavy". Edited July 11, 2023 by Kilrah Quote Link to comment
dunn Posted July 12, 2023 Author Share Posted July 12, 2023 I'm not sure but I think my inexperience with Docker and networks might be the issue why I'm not understanding you guys at all. You guys make it sound like it's a cakewalk setting up Pihole, but already at the start you run into issues with network. I add a domain in Pihole and point it to my reverse proxy. But how do I point it to the reverse proxy if the port is not the standard port? Using the custom network interface makes you unable to change the port so that seems not to be an option. If I could change the container port by myself it wouldn't be an issue, but it seems Unraid or the Docker image don't support that. Quote Link to comment
dunn Posted July 13, 2023 Author Share Posted July 13, 2023 So I guess you can't solve the issue without tinkering right? Looks like people are running their instances as a VM to bypass it. I'm now trying to build the image for myself, but then I will have issues with updates. Quote Link to comment
Kilrah Posted July 13, 2023 Share Posted July 13, 2023 (edited) 20 hours ago, dunn said: But how do I point it to the reverse proxy if the port is not the standard port? You make it use the standard port. I have the pihole-dot-doh container on br0 network (it needs its own IP so can be referred to as DNS server) and NPM-official as reverse proxy on host network and standard ports. pihole points my domains to the server address to reach NPM. Edited July 13, 2023 by Kilrah Quote Link to comment
dunn Posted July 13, 2023 Author Share Posted July 13, 2023 20 minutes ago, Kilrah said: You make it use the standard port. I have the pihole-dot-doh container on br0 network (it needs its own IP so can be referred to as DNS server) and NPM-official as reverse proxy on host network and standard ports. pihole points my domains to the server address to reach NPM. The standard ports of the app are 801, 7818 and 4431. The maintainer of the package even called the variables TCP_PORT_801 and so on, so the only way I see using it is by building your own app, but there is no real documentation on how to do that. If I'd use host network I couldn't change the ports either, only in bridge I could. But for this I'd have to change the port of the main appliance so I could give NPM port 80. Quote Link to comment
Kilrah Posted July 13, 2023 Share Posted July 13, 2023 (edited) 53 minutes ago, dunn said: so the only way I see using it is by building your own app, Or use another that uses the right ports. What is it? Both NPM-official and SWAG which are the popular reverse proxies use the standard ports. Edited July 13, 2023 by Kilrah Quote Link to comment
dunn Posted July 13, 2023 Author Share Posted July 13, 2023 Just now, Kilrah said: Or use another that uses the right ports. What is it? What another one? The other Crowdsec one has the same issue. Quote Link to comment
Solution dunn Posted July 13, 2023 Author Solution Share Posted July 13, 2023 21 minutes ago, Kilrah said: Both NPM-official and SWAG which are the popular reverse proxies use the standard ports. I didn't even know there were 3 packages for the same applications due to autocompletion. I'm going try to roll with these images now, thanks. But for the future I looked up on how to create templates yourself to be more flexible and I found this indepth guide. https://selfhosters.net/docker/templating/templating/ Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.