Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround is not necessary anymore #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@ To add a DNS record (e.g. a subdomain):
4. save and quit
5. Commit/push and wait for Docker hub to update
6. Deploy to server2 according to [cloyne/servers](http://github.com/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
7. To debug, on server2, exec into the docker container
(`docker exec -ti dns script -q -c "/bin/bash" /dev/null`) and
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, I generally do docker exec -t -i --entrypoint /bin/bash dns to exec into the container with runit.

`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.
8. Wait patiently for changes to propagate.

TODO: automate this.