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.org
in 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_server
does not show up intop
within 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 nano
orapt install vim-tiny
) and change the linelaunch=
tolaunch=bind
. Then add the linebind-config=/etc/powerdns/bindbackend.conf
. -
Restart
pdns
withsv restart powerdns
-
Run
pdns_control reload
. Nowpdns_control list-zones
should show40-29.133.62.64.in-addr.arpa. cloyne.net. cloyne.org. All zonecount:3
-
Wait patiently for changes to propagate.
TODO: automate this.