Skip to content

Shell script to automatically update DNS record for domains hosted on Cloudflare that points to home machines which has regular internet (Dynamically allocated IP address)

Notifications You must be signed in to change notification settings

sadeqush/homepc-dynamic-dns-cloudflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

homepc-dynamic-dns-cloudflare

Author: Sadequs Haque

This is a shell script that would be run as a cronjob hourly on my home computer. It will find the current IP address allocated to my desktop, and update the DNS record of my domain in Cloudflare to point to my desktop for SSH access using the domain name.

Replace the CLOUDFLARE_API_URL, BEARER and AUTHKEY, EMAIL and DOMAIN_NAME. Documentation is available at https://api.cloudflare.com/

Turn off VPN (obviously). After that, in your wifi router, set up reserved IP for your Desktop's MAC Address, and port forwarding for your SSH port (22) to that IP address.

For future me: Your API Authkey and everything is in GoogleDrive/UbuntuDesktop.

About

Shell script to automatically update DNS record for domains hosted on Cloudflare that points to home machines which has regular internet (Dynamically allocated IP address)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages