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 in
top 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,
either apt install nano or apt install vim-tiny) and change the line
launch= to launch=bind. Then add the line
bind-config=/etc/powerdns/bindbackend.conf.
Restart pdns with sv restart powerdns
Run pdns_control reload. Now pdns_control list-zones should show
40-29.133.62.64.in-addr.arpa. cloyne.net. cloyne.org. All zonecount:3
Wait patiently for changes to propagate.
TODO: automate this.
Content type
Image
Digest
sha256:11349c39c…
Size
81.8 MB
Last updated
over 4 years ago
docker pull cloyne/powerdns-master