https://github.com/cfstras/ddns
Helper scripts for updating a dynamic DNS via nsupdate.
https://github.com/cfstras/ddns
Last synced: 6 days ago
JSON representation
Helper scripts for updating a dynamic DNS via nsupdate.
- Host: GitHub
- URL: https://github.com/cfstras/ddns
- Owner: cfstras
- Created: 2013-11-18T10:19:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-25T19:04:46.000Z (over 12 years ago)
- Last Synced: 2026-05-14T01:37:03.240Z (about 2 months ago)
- Language: Shell
- Size: 132 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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:
```bash
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