Skip to content

mil-acc-github/ec2-cloudflare-dns-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS EC2 - Cloudflare DNS Updater

DNS update script for Amazon EC2 Instance

Test Environment

  • Amazon AWS EC2 instance (ubuntu server 22.04 LTS)
  • Cloudflare DNS Service (API)

Disclaimer

This project is just a personal hobby project

Deployment

All configuration is done in config.py which is file config.py.example renamed into


To deploy this project,


  1. Clone Repository
git clone https://github.com/ParkSnoopy/ec2-cloudflare-dns-updater.git


  1. Rename config.py.example to config.py
mv config.py.example config.py


  1. Go to Cloudflare Dashboard > Overview > Copy Zone ID
    Update config.py CLOUDFLARE_ZONEID


  1. Create API token according to this Cloudflare Docs
    Update config.py CLOUDFLARE_DNS_EDIT_APIKEY


  1. Change 'name' of each TARGET_DNSINFOS into Your Domain Name

Change COMMENT or 'tags' if you want to



  1. run script
./init.sh
./update.sh


  1. add script to crontab
crontab -e
@reboot /path/to/repository/update.sh

About

Dns update script for Amazon EC2 Instance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages