GithubHelp home page GithubHelp logo

Master & Slave NS Setup about powerdns-admin HOT 7 CLOSED

dfiel avatar dfiel commented on June 16, 2024
Master & Slave NS Setup

from powerdns-admin.

Comments (7)

ivanfilippov avatar ivanfilippov commented on June 16, 2024 2

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.

ivanfilippov avatar ivanfilippov commented on June 16, 2024

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.

dfiel avatar dfiel commented on June 16, 2024

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

dfiel avatar dfiel commented on June 16, 2024

@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:
image

Am I missing something, or are my settings wrong?

from powerdns-admin.

ivanfilippov avatar ivanfilippov commented on June 16, 2024

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.

dfiel avatar dfiel commented on June 16, 2024

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

ivanfilippov avatar ivanfilippov commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.