Skip to content

RealAstr4x/Simple-DDNS-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Simple-DDNS-Script

A simple ddns script i made for cloudflare, thats helpful a lot when u dont have a static ip.

On the script itself there are instructions.

⬇️Other helpful information⬇️

  • How to get the RECORD_ID for your A record.

curl -s -X GET "https://api.cloudflare.com/client/v4/zones/YOUR_ZONE_ID/dns_records?type=A" -H "Authorization: Bearer YOUR_API_TOKEN" -H "Content-Type: application/json" | jq -r '.result[] | "\(.name) => \(.id)"'

It should give output in your bash like this.

text.lol => (Zone Id) aaa.text.lol => (Zone Id) bbb.text.lol => (Zone Id)

  • Don't forget to make it executable by doing: chmod +x ddns.sh on your bash.

  • TIP: Automate this script with cronjob so you don't have to manually run it everytime!

Any other questions? Add me on discord, "the_real_astr4x"!

About

A simple ddns script i made for cloudflare, thats helpful a lot when u dont have a static ip.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages