logoalt Hacker News

slikenlast Friday at 4:14 PM2 repliesview on HN

Do you have a static IPv4, presumably a single IP?

I find it useful, mine does change periodically, but I just have a script that Updates DNS when it changes:

   nsupdate -v -y "${KEY_ALGO}:${KEY_NAME}:${KEY_SECRET}" <<EOF
   server $DNS_SERVER
   zone $ZONE 
   update delete $RECORD AAAA
   update add $RECORD 300 AAAA $CURRENT_IP
   show
   send
   EOF
Sure some services might notice for a bit, but it's plenty good for me.

Replies

przmklast Friday at 4:55 PM

I don't have a static IPv4 address and I have to use a DDNS built into the Caddy plugin on my OPNSense router. From what I understand, you can't get a static "local" (I know, IPv6 has no direct equivalent) address to use for a reverse proxy — at least not in an easy manner. I might be completely wrong but that's why I don't bother with IPv6.

show 1 reply
magicalhippolast Friday at 11:17 PM

I technically have a dynamic IPv4 address from my ISP. I've had the same for five years now, across multiple power outages.

I also have a dynamic IPv6 prefix. That one changes at least once a week, regardless.