Revision [6235]
This is an old revision of DynamicDNSSetup made by ZorrUno on 2020-08-27 02:37:19.
Setup of dynamic DNS (using a remote server that is owned)
I had to do some more setup to delegate a domain to dibbley (I normally do all my DNS on FreeParking), but I presume you will be creating a dynamic sub-domain of a domain which dibbley is already authoritative for. I have mowson.org managed on freeparking, so I delegated sub.mowson.org to dibbley, and I do dyn-dns updates of lem.sub.mowson.org (which is my home server). I also happen to have a CNAME for lem.mowson.org pointing to lem.sub.mowson.org, just to make things pretty.
So, assuming fox.co.nz is managed by dibbley, these docs let you setup a sub-domain like home.fox.co.nz to resolve to your home IP. My examples will show the setup for lem.sub.mowson.org
On dibbley, I have already edited /etc/bind/named.conf to include a file for dyndns records, so you don't need to edit named.conf (the line I added was to include "/etc/bind/named.conf.dynamic")
I've also created "/etc/bind/keys" on dibbley to hold the TSIG keys. Create keys like this:
$ cd /etc/bind/keys
$ sudo dnssec-keygen -a hmac-sha512 -b 512 -n HOST lem.sub.mowson.org
Klem.sub.mowson.org.+165+55161
Observe the keys if so inclined (I have redacted bits of mine, for security):
$ ls /etc/bind/keys
Klem.sub.mowson.org.+165+55161.key
Klem.sub.mowson.org.+165+55161.private
$ sudo cat /etc/bind/keys/Klem.sub.mowson.org.+165+55161.private
Private-key-format: v1.3 Algorithm: 165 (HMAC_SHA512) Key: 1ThRt61khEE86Wejik8ayssW...SNIP...nm1Oa73qm9i6g4JK89WxyzzyForNiCate663hwtaiusjhOUWeefF== Bits: AAA= Created: 20170613073736 Publish: 20170613073736 Activate: 20170613073736
$ sudo cat /etc/bind/keys/Klem.sub.mowson.org.+165+55161.key
lem.sub.mowson.org. IN KEY 512 3 165 1ThRt61khEE86Wejik8ayssW...SNIP...nm1Oa73qm9i6g4JK89Wxyz zyForNiCate663hwtaiusjhOUWeefF