Skip to content

Updates a Cloudflare DNS record with the current public IP address of the machine it is running on

Notifications You must be signed in to change notification settings

t-mart/cf-dyn-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-dyn-dns

This is a small project that updates a Cloudflare DNS record with the current public IP address of the machine it is running on.

It should run frequently, probably with a service system like systemd, for which a unit file is provided.

Setup

Follow these steps

git clone https://github.com/t-mart/cf-dyn-dns.git
cd cf-dyn-dns
deno cf-dyn-dns

Running as a systemd service

  1. Add the service and timer files to the systemd directory:

    sudo cp cf-dyn-dns.service /etc/systemd/system/
    sudo cp cf-dyn-dns.timer /etc/systemd/system/
  2. Review the cf-dyn-dns.service file and make changes as appropriate.

  3. Copy .env.template to .env and fill in the required values.

  4. Enable and start the service:

    sudo systemctl enable cf-dyn-dns.service
    sudo systemctl enable cf-dyn-dns.timer
    sudo systemctl start cf-dyn-dns.service
    sudo systemctl start cf-dyn-dns.timer

    and check the status and the logs:

    sudo systemctl status cf-dyn-dns
    journalctl -u cf-dyn-dns

About

Updates a Cloudflare DNS record with the current public IP address of the machine it is running on

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published