Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
You can absolutely self-host DNS. Personally I use Pihole, and I had zero downtime of local services during the outage.
The primary reason most people use Pihole is for DNS filtering, blocking unwanted things like ads, trackers, and malware from loading. However, you can also list local DNS entries that Pihole will answer authoritatively without forwarding it to a public DNS like CloudFlare.
Of course, you will still need to use an upstream public DNS (like 1.1.1.1 for CloudFlare) or (8.8.8.8 for Google) for the public internet, and those sites would be subject to the same downtime as everyone else, but your local stuff will always resolve as long as your Pihole is available.
If you want something even simpler, your router might also support adding local DNS entries, then you just need to use DHCP (don’t manually set DNS on your devices) and your router should take care of it for you.
I don't believe pihole functions as an authorative DNS server though. Something like technetium does and they could be used as the nameservers for a domain while still offering all the same adblocking functionality that pihole does.
Though pihole could work of you were relying on a VPN to access your stuff remotely.
If you manually add local DNS entries, it won’t forward the lookup, it will just point the client to the IP you specify. I do this all the time for intranet communication because it’s faster and more reliable.
Those are not authoritative responses, though. You can only add CNAME and A records to pihole, because it's built on dnsmasq and not on bind/unbound.
You can't add SOA records to pihole. Or zone transfers, or any actual DNS server functions, really. Pihole is just a forwarder.
Sure but this won't work if you're accessing services outside your network like OP is doing. You're going to need publicly available DNS records somewhere to do that.