Is there a way to set up login-accessible DNS using something like Pi-hole?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there a way to set up login-accessible DNS using something like Pi-hole?
So I was thinking I'd like to set up a Pi-hole dns service for ad and tracker blocking and I'd like to let friends and family use it as well but only them. Is there a way to somehow limit who can connect to it that is mostly straight forward?
So I was thinking I'd like to set up a Pi-hole dns service for ad and tracker blocking and I'd like to let friends and family use it as well but only them. Is there a way to somehow limit who can connect to it that is mostly straight forward?
Just don’t tell anyone else what the IP address is and tell the people you want to use it the IP so they can manually enter its IP as their DNS server
Ohhhh you mean you want them to access it from another network? Not via your router? You’d have to have a static public IP (if you can acquire one from your ISP, and it’ll be extra money) and then port forward traffic to your internal private IP of the pi hole. A lot of work lol
Not with a sign in option afaik. But you can make an arptables rule on it to only allow certain Mac addresses to access port 53
This won't work for your use case unfortunately. Not if these friends and family members aren't in your house using your wifi.
Can your friends and family get static IP addresses for their home routers? If they can, the easiest way is with iptables. Failing that you could look into DNS over TLS or HTTPS (these are existing things) and then do client authentication with PKI. I'm not sure what software would support such a setup. Failing that a VPN, just don't use the VPN as a default gateway.
This won't work for your use case unfortunately. Not if these friends and family members aren't in your house using your wifi.
Can your friends and family get static IP addresses for their home routers? If they can, the easiest way is with iptables. Failing that you could look into DNS over TLS or HTTPS (these are existing things) and then do client authentication with PKI. I'm not sure what software would support such a setup. Failing that a VPN, just don't use the VPN as a default gateway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.