mirror of
https://github.com/PowerDNS-Admin/PowerDNS-Admin.git
synced 2026-04-25 08:45:55 +03:00
[GH-ISSUE #47] Master & Slave NS Setup #32
Labels
No labels
bug / broken-feature
bug / broken-feature
docs / request
feature / request
help / other
mod / help-wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PowerDNS-Admin-PowerDNS-Admin#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dfiel on GitHub (Jun 8, 2016).
Original GitHub issue: https://github.com/PowerDNS-Admin/PowerDNS-Admin/issues/47
Hello All,
I followed the DigitalOcean tutorial to set up master and slave servers. In order for the domain to replicate, there must be 2 NS records in the domain. I don't see an option to add NS records. Am I missing something?
@ivanfilippov commented on GitHub (Jun 8, 2016):
Hi @dfiel
Thanks for trying PowerDNS-Admin! You'll need to add the NS record type into
config.py. Find the line that says this:RECORDS_ALLOW_EDIT = ['A', 'AAAA', 'CNAME', 'SPF', 'PTR', 'MX', 'TXT']and change it to this:
RECORDS_ALLOW_EDIT = ['A', 'AAAA', 'CNAME', 'SPF', 'PTR', 'MX', 'TXT', 'NS']Let me know if that helps. 😄
@dfiel commented on GitHub (Jun 9, 2016):
@ivanfilippov Yes, that worked. Now I just have to get the actual syncing of records to work. Would you know anything about that?
@ivanfilippov commented on GitHub (Jun 9, 2016):
This is how you'd configure a traditional master/slave setup:
allow-axfr-ips=<your slaves IP address>set in the masters/etc/powerdns/pdns.conf.You can also configure 'supermaster' functionality which is a very cool feature in PowerDNS. This makes the slave automatically query the master for all domains the master hosts and create slave domains for them as long as the slave is one of the configured nameservers. All you'd need to do is add the masters IP address and the current servers hostname into the supermasters database table on the slave. PowerDNS-Admin doesn't have this functionality so you'll need to do it manually via the SQL command line or a tool like phpMyAdmin. Something like:
The DigitalOcean tutorial you linked actually uses this method so I'd recommend going with it. You also won't need a PowerDNS-Admin instance on the slave.
@dfiel commented on GitHub (Jun 9, 2016):
@ivanfilippov How long does this usually take to propagate? My settings look like this:
The correct master IP is in the above record, and the settings in PowerDNS-Admin on the host look like this:

Am I missing something, or are my settings wrong?
@ivanfilippov commented on GitHub (Jun 10, 2016):
Your settings look good to me. To confirm, the supermaster snip you pasted above is on the slave server and the screenshot is from master, correct?
Also, have you tested to make that your slave can access and query the master? Something like running
dig ns1.yourdomain.com @yourmastersIPon the slave should do it.@dfiel commented on GitHub (Jun 10, 2016):
@ivanfilippov Yes, the MySQL results are on the slave, and the screenshot is from my master server.
Using dig as you mention returned the correct IP as an A record.
@ivanfilippov commented on GitHub (Jun 21, 2016):
Hi @dfiel
Sorry for the delay. This may be a bit beyond my abilities, you might want to ask for help on the PowerDNS forums/github.