Skip to content

Dynamic DNS via Wireguard. Updates Cloudflare DNS records based on the remote endpoint of specific wireguard connections.

Notifications You must be signed in to change notification settings

Oisann/dynamic-dns-via-wireguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic DNS via Wireguard

Updates a Cloudflare DNS record based on the remote endpoint of a wireguard connection.

Config

records:
  -
    email: <cloudflare-dashboard-email>
    key: <wireguard-peer-public-key>
    name: <subdomain>.<domain>
    record: <cloudflare-dns-record-id>
    token: <cloudflare-api-token>
    ttl: <dns-ttl>
    zone: <cloudflare-zone-id>
    proxied: <true-or-false>
settings:
  interval: <seconds>

TTL set to 1 will set it to automatic. The DNS Record ID can be hard to get, I found it by curl'ing the DNS Record Details via the API9. It should probably be part of this product, so feel free to make a pull request! The interval is how often it will check the tunnel endpoints for a change.

Flags

  • --config <config-file>

About

Dynamic DNS via Wireguard. Updates Cloudflare DNS records based on the remote endpoint of specific wireguard connections.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published