Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.23 KB

README.md

File metadata and controls

76 lines (51 loc) · 1.23 KB

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