Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 627 Bytes

File metadata and controls

31 lines (25 loc) · 627 Bytes

Cloudflare bash tool

Features

Support .env (ini config)

You could use different .env file to manage multi domains

ENV=.env-lan ./update-dns.sh
ENV=.env-wan ./update-dns.sh

Support debug mode

  • DEBUG=1 ./update-dns.sh

Support wan and lan ip

  • IP_TYPE=lan ./update-dns.sh
  • IP_TYPE=wan ./update-dns.sh

Use Crontab autoupdate

  • sudo crontab -e
*/5 * * * * /home/sys/bin/update-dns.sh 

Inspire

Change Log

  • 20190728
    • Add logging support
    • proxied could auto transfer to boolean value.