All Projects → adrienbrignon → cloudflare-ddns

adrienbrignon / cloudflare-ddns

Licence: BSD-3-Clause license
A script to update your Cloudflare DNS records at a glance.

Projects that are alternatives of or similar to cloudflare-ddns

server-ip-addresses
Daily updated list of IP addresses / CIDR blocks used by data centers, cloud service providers, servers, etc.
Stars: ✭ 74 (-51.32%)
Mutual labels:  cloudflare, ip
ddns
No description or website provided.
Stars: ✭ 26 (-82.89%)
Mutual labels:  ddns, cloudflare
cloudflare-worker-routing
A simple Cloudflare Worker with built-in routing
Stars: ✭ 38 (-75%)
Mutual labels:  cloudflare, cloudflare-api
cloudflareddns
DDNS with Cloudflare
Stars: ✭ 33 (-78.29%)
Mutual labels:  ddns, cloudflare
cloudflare-ddns-updater
Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP! Written in pure BASH~
Stars: ✭ 434 (+185.53%)
Mutual labels:  ddns, cloudflare
CloudFlare-DDNS-Script
CloudFlare-DDNS-Script Support LEDE/Openwrt with IPv4/IPv6
Stars: ✭ 40 (-73.68%)
Mutual labels:  cloudflare, cloudflare-ddns
Ddns
🚩 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
Stars: ✭ 2,582 (+1598.68%)
Mutual labels:  ddns, cloudflare
CloudflareCustomPages
My Cloudflare Custom Pages ,It is Beautiful!
Stars: ✭ 35 (-76.97%)
Mutual labels:  cloudflare, cloudflare-api
Cloudmare
Cloudflare, Sucuri, Incapsula real IP tracker.
Stars: ✭ 213 (+40.13%)
Mutual labels:  cloudflare, ip
Cloudflare Ip Tester
Cloudflare IP Batch Test Tool including HTTP respond time, region detection and download speed test
Stars: ✭ 148 (-2.63%)
Mutual labels:  cloudflare, ip
cloudflare-ddns-script
CloudFlare ddns / 树莓派IPV6 DDNS解决方案
Stars: ✭ 94 (-38.16%)
Mutual labels:  cloudflare, cloudflare-ddns
ddns
a multiple providers ddns script without dependencies
Stars: ✭ 47 (-69.08%)
Mutual labels:  ddns, cloudflare
cf ddns
CloudFlare DDNS executable written in Swift
Stars: ✭ 20 (-86.84%)
Mutual labels:  cloudflare, cloudflare-ddns
Cloudfail
Utilize misconfigured DNS and old database records to find hidden IP's behind the CloudFlare network
Stars: ✭ 1,239 (+715.13%)
Mutual labels:  cloudflare, ip
DnsTube
Access your computer from anywhere. DnsTube is a Windows .NET dynamic DNS client for Cloudflare.
Stars: ✭ 137 (-9.87%)
Mutual labels:  ddns, cloudflare
docker-ddns-cloudflare
Cloudflare DDNS Script
Stars: ✭ 21 (-86.18%)
Mutual labels:  ddns, cloudflare
pupflare
A webpage proxy that request through Chromium (puppeteer) - can be used to bypass Cloudflare anti bot / anti ddos on any application (like curl)
Stars: ✭ 183 (+20.39%)
Mutual labels:  cloudflare
DDos-Attack-OVH-
Powerful DDoS Attack
Stars: ✭ 155 (+1.97%)
Mutual labels:  cloudflare
tcpview
TcpView For Linux
Stars: ✭ 62 (-59.21%)
Mutual labels:  ip
private-ip
Check if IP address is private.
Stars: ✭ 26 (-82.89%)
Mutual labels:  ip

cloudflare-ddns

This is a continued version of thatjpk's cloudflare-ddns.

Introduction

A script for dynamically updating Cloudflare DNS records. If you have a dynamic IP and you're hosting servers behind it, it's an easy way to make it 'pseudo-static'.

Dependencies

You'll need a Python interpreter and the following libraries:

You can install them with pip: pip install -r requirements.txt

Features

  • Two ways to grab your IP address
    • HTTP
    • DNS lookup (dig)
  • IPv4 and IPv6 support (A and AAAA records)
  • Logging
  • One configuration file for multiple records
  • Multiple record settings:
    • Time to Live (TTL)
    • Proxy mode
    • Logging level
  • Lightweight
  • Smart update (your record will only be updated if needed)

Usage

First, a few assumptions:

  • You're using Cloudflare to host DNS for a domain you own.
  • You have one or more A/AAAA records in Cloudflare you intend to dynamically update.

To use this utility, create a copy of the example.com.yml file inside the zones folder and rename it to your zone name. To do a one-off update of your DNS record, simply run python cloudflare-ddns.py -z example.com from your terminal. The script will determine your public IP address and automatically update the records along with it and the settings you provided.

If the program encounters an issue while attempting to update Cloudflare's records, you can check the the logs folder for more informations.

Because dynamic IPs can change regularly, it's recommended that you run this utility periodically in the background to keep your records up-to-date.

Just add a line to your crontab and let cron run it for you at a regular interval.

# Every 30 minutes, update my Cloudflare records.
*/30 * * * * python /path/to/cloudflare-ddns.py -z example.com

This example will update your records every 30 minutes. You'll want to be sure that you insert the correct paths to reflect where the codebase is located.

If you want to learn more about the Cloudflare API, you can read on here.

Credits and Thanks

  • Cloudflare for having an API and otherwise generally being cool.
  • icanhazip.com for making grabbing your public IP from a script super easy.
  • thatjpk for the initial releases of this project.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].