Skip to content

shouptech/dynamic_dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DynamicDNS Script

A script to create/update a DNS A record in with your current public IP address. This is intended in dynamic IP scenarios, such as a home Internet connection with an IP that can change.

This script supports both CloudFlare and Gandi LiveDNS as DNS providers.

Usage

usage: dynamic_dns.py [-h] [-i IPURL] {cloudflare,gandi} dnsname authemail authkey

Update DNS record in cloudflare to current IP

positional arguments:
  {cloudflare,gandi}    Which DNS provider to use
  dnsname               DNS Name to update
  authemail             Account Email, only needed for cloudflare. Value is not used for Gandi.
  authkey               API Key for provider

options:
  -h, --help            show this help message and exit
  -i IPURL, --ipurl IPURL
                        URL to query for current IP address

Example

CloudFlare Usage

./dynamic_dns.py cloudflare home.example.com [email protected] secretkey

Gandi Usage

This script supports a personal access token, not the deprecated API keys.

./dynamic_dns.py gandi home.example.com [email protected] personaltoken

About

A Dynamic DNS Update Script (Mirrored from GitLab)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages