To add a DNS record (e.g. a subdomain):
0. Make sure the version on the server matches the version in this repository.
If the version on the server is newer, update this repository to match
first. Check /etc/powerdns/bind/db.cloyne.org in the dns container on
server2.
-
Open
etc/powerdns/bind/db.cloyne.orgin an editor -
Increment the Serial number
-
Add the line
-
save and quit
-
Commit/push and wait for Docker hub to update
-
Deploy to server2 according to cloyne/servers
-
On server2, if it doesn't start properly (i.e.,
pdns_serverdoes not show up intopwithin the container), exec into the docker container (docker exec -ti dns script -q -c "/bin/bash" /dev/null) -
edit
/etc/powerdns/pdns.conf(you'll probably need to install an editor, eitherapt install nanoorapt install vim-tiny) and change the linelaunch=tolaunch=bind. Then add the linebind-config=/etc/powerdns/bindbackend.conf. -
Restart
pdnswithsv restart powerdns -
Run
pdns_control reload. Nowpdns_control list-zonesshould show40-29.133.62.64.in-addr.arpa. cloyne.net. cloyne.org. All zonecount:3
-
Wait patiently for changes to propagate.
TODO: automate this.