I would like to host my own web server with a domain name I purchased but my public IP isn’t static.

  • elscallr@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I just have a cron script running on a machine that does something like this every 10 seconds

    C_IP=`dig +short my.domain`
    IP=`curl https://api.ipify.org`
    if(C_IP != IP) {
        updateRoute53(IP)
    }
    
    

    This is just for my main home server. Gets the job done because if it’s out of date for a few seconds nothing matters.