Comment on Is it possible to have a usable domain without a VPS or a static IP address?
marud@piefed.marud.fr 3 days ago
If you already have a domain name and don’t want to switch to something else, know that some DNS registrar have an API to handle the domains.
For a short period of time I had to rely on this and had a little python script to get my current IP and apply it to every A record in my DNS zone.
It worked well (but then I took an arrow in the knee had static IP)
tofu@lemmy.nocturnal.garden 3 days ago
Yeah I still do this. I have a cronjob on one of my servers that runs every five minutes, checks if the upstream DNS IP matches my public IP and, if not, sets it. Adding 60s TTL, this means an average downtime of 3 minutes per change, max 6 minutes.
It’s also possible to use different nameservers than the one the registrar provides, in case the registrar doesn’t have a proper API for DNS.