Go to file
Tero Marttila 871fa0613b publish with MIT 2016-06-19 21:37:33 +03:00
.gitignore publish with MIT 2016-06-19 21:37:33 +03:00
LICENSE publish with MIT 2016-06-19 21:37:33 +03:00
README.md publish with MIT 2016-06-19 21:37:33 +03:00
addr.go addrs: follow link state 2016-06-19 21:30:00 +03:00
dns.go autodiscover server from zone SOA 2016-06-19 20:05:55 +03:00
main.go use --watch to continuously watch for addr changes, and update with retry 2016-06-19 21:30:44 +03:00
netlink.go split up modules 2016-06-19 19:46:23 +03:00
update.go use --watch to continuously watch for addr changes, and update with retry 2016-06-19 21:30:44 +03:00

README.md

go-nsupdate

Update dynamic DNS records from netlink.

go-nsupdate reads interface addresses from netlink, updating on ip link up/down and ip addr add/del events.

The set of active interface IPv4/IPv6 addresses is used to send DNS UPDATE requests to the primary NS for a DNS zone.

Install

go get -v github.com/qmsk/go-nsupdate

Usage

TSIG_SECRET=... go-nsupdate --interface=vlan-wan --tsig-algorithm=hmac-sha256 yzzrt.dyn.qmsk.net --watch

# Using a generated TSIG key:
# TSIG_SECRET=$(python -c 'import os; print os.urandom(32).encode("base64")')