Skip to content

cloyne/docker-powerdns-primary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

  1. Open etc/powerdns/bind/db.cloyne.org in an editor

  2. Increment the Serial number

  3. Add the line

  4. save and quit

  5. Commit/push and wait for Docker hub to update

  6. Deploy to server2 according to cloyne/servers

  7. 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)

  8. 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.

  9. Restart pdns with sv restart powerdns

  10. 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

  11. Wait patiently for changes to propagate.

TODO: automate this.