Comments (7)
This is how you'd configure a traditional master/slave setup:
- Make sure you have
allow-axfr-ips=<your slaves IP address>
set in the masters/etc/powerdns/pdns.conf
. - Add a new domain as a master on the PowerDNS-Admin instance on the master
- Add the same domain as a slave on the PowerDNS-Admin instance on the slave (making sure to enter the masters IP address when you do it)
- That's it, PowerDNS will take care of replication by itself
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:
INSERT INTO supermasters VALUES ('<your masters IP address>', '<your slaves hostname>', 'admin');
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.
from powerdns-admin.
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. 😄
from powerdns-admin.
@ivanfilippov Yes, that worked. Now I just have to get the actual syncing of records to work. Would you know anything about that?
from powerdns-admin.
@ivanfilippov How long does this usually take to propagate? My settings look like this:
+---------------+------------------------+---------+
| ip | nameserver | account |
+---------------+------------------------+---------+
| 104.XXX.61.XX | ns2.XXXXXXXXXXXXXX.xyz | admin |
+---------------+------------------------+---------+
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?
from powerdns-admin.
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 @yourmastersIP
on the slave should do it.
from powerdns-admin.
@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.
from powerdns-admin.
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.
from powerdns-admin.
Related Issues (20)
- Use of the `before_app_first_request` event removed in Flask 2.3 HOT 4
- Add CockroachDB compatibility to PDA HOT 2
- Issue with accessing IPv6 zones through the UI HOT 1
- Static Fonts not using a Relative Path HOT 2
- Support Path in Docker Health Check HOT 6
- Deployment issues with Ubuntu 22.04 LTS and FreeBSD HOT 11
- Why is the docker container called 'legacy', where is the 'release'? HOT 3
- Support Anonymous LDAP Authentication HOT 1
- Provide access control at the record level HOT 1
- Division into internal and external zones
- PDA Project Update
- LDAP not properly escaping special characters HOT 12
- Update Pip Dependencies (Jinaj2, certifi, cryptography, requests, werkzeug) HOT 1
- Update NPM Dependencies HOT 1
- Documentation Fix: Azure Authentication Scope Setting HOT 1
- Bug: Docker Health Check Filling Sessions Table HOT 1
- LDAP Authentication Errors HOT 1
- Inconsequent search, add regexp into records
- Correct SAML Scope Documentation HOT 3
- Azure OAuth Authentication Issues in v 0.4.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerdns-admin.