Comment on What's up, selfhosters? It's self hosting Sunday!
ExperimentalGuy@programming.dev 3 days ago
Does anyone know how to get a static IP for their server when their ISP doesn’t allow it. I’ve found out how to use duckdns, but I want to set up my own DNS server from anywhere but I’m pretty sure it requires using a static IP.
jane232@discuss.tchncs.de 3 days ago
I use duckdns, and thus have a xyz.duckdns.org domain, that points to the dynamic ipv4 address of my server. I do not host my own DNS server, rather I rely on a cheap Website / Mail / domain bundle. There I can enter my duckdns domain as a CNAME DNS entry. Thus every DNS lookup that is not for the remote hosted Website will resolve the duckdns domain and finally end at my server.
I am not sure where you want to host your DNS server or also for what specific reason… If you don’t have a domain, you kind of don’t need to host a DNS, and every domain provider I had, also offered a DNS server with it.
ExperimentalGuy@programming.dev 2 days ago
I wanted to run a pi hole to use as a DNS so that I can be ad free on any device. The problem is that with my computer or with my phone, I need to put in a specific IP address when I want to change DNS on that device.
Wolfizen@pawb.social 2 days ago
If you drop the “from anywhere” part, you can set up a pihole with a static address that you can use from within your LAN, without any involvement from your ISP.
Read section “Assign your Raspberry Pi a static IP address” of raspberrypi.com/…/running-pi-hole-on-a-raspberry-…
jane232@discuss.tchncs.de 2 days ago
Yes exactly, additionally you probably don’t want to host your pi hole for external use (mobile phone or laptop in a different network) for the reason of latency.
The delay that is imposed by visiting your pi hole at home for each DNS request is going to be very unpleasant.
Rather rely on an external dns provider that provides pi hole like funticionality.
But this does not mean that you can’t also host your pihole for internal use. I use it not just for removing ads, but also to allow the access of local domains.
MangoPenguin@lemmy.blahaj.zone 2 days ago
So I wouldn’t put Pihole on the internet, but instead set up a Wireguard VPN on your devices and access Pihole via that.
Then you can use the dynamic DNS hostname for Wireguard, and a direct IP for Pihole.
ExperimentalGuy@programming.dev 2 days ago
Ooh wireguard sounds like a great option