Skip to content

Instantly share code, notes, and snippets.

@raffleberry
Last active April 13, 2024 03:37
Show Gist options
  • Save raffleberry/5a7b5afb43ee6c2e07d00697c204b305 to your computer and use it in GitHub Desktop.
Save raffleberry/5a7b5afb43ee6c2e07d00697c204b305 to your computer and use it in GitHub Desktop.
update noip.com ddns manually or with ddns-updater

manually

IP=$(dig -4 TXT +short o-o.myaddr.l.google.com @ns1.google.com | tr -d '"' )

IP=$(curl https://checkip.amazonaws.com/)

#https://www.noip.com/integrate/request
curl https://<username>:<password>@dynupdate.no-ip.com/nic/update?hostname=all.ddnskey.com&$IP

ddns-updater

data/config.json

{
  "settings": [
    {
      "provider": "noip",
      "domain": "all.ddnskey.com",
      "host": "@",
      "username": "<username>",
      "password": "<password>",
      "ip_version": "ipv4",
      "ipv6_suffix": "",
      "provider_ip": true
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment