Skip to content

xicesky/ddns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddns

Helper scripts for updating a dynamic DNS domain name.
Uses ip addr and curl to get your IPs, sends them out with nsupdate.

usage

  • Set up your dynamic DNS zone:

    • mkdir /var/lib/bind
    • touch /var/lib/bind/db.dynamic.example.com.jnl
    • copy and edit db.dynamic.example.com to /var/lib/bind
    • insert and edit the contents of named.conf.local into your /etc/bind/named.conf.local
    • run ddns-confgen and copy the generated key to /etc/bind
    • make sure the key is only readable by the bind user
  • On your clients:

    • get the keyfile, chmod it to be only be readable by the user which the script will run as
    • Copy config.example to a file named config
    • Edit config to your desires
    • Execute:
    SEND=false ./update # to see what would be sent
    ./update # to actually send it

requirements

These are the minimum requirements for running the script on a client:

  • nsupdate
    can be found in the dnsutils package on most distros
  • bash
  • GNU awk
    can be found in the gawk package
  • curl
  • ip utility
    can be found in the iproute2 package

About

Helper scripts for updating a dynamic DNS via nsupdate.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%