Issues with master/slave setup

Issues with master/slave setup

TheGeekBoxTheGeekBox Member
edited April 2012 in Help

Currently running powerdns and poweradmin for my DNS but I've got never managed to get a master/slave setup to work be that through mysql replication,inbuilt master/slave or even master/slave working when I used BIND (currently been using sqldump, but that's not really a solution I'm happy with) . In my newest attempt I tried this guide http://poller.se/2011/01/supermaster-with-powerdns/ but that also doesn't work either, the fact this hasn't worked three different ways has really got me, I'm not quite sure where to start trying to fix this so if someone could point me the right direction that would be great :).

Comments

  • What does your PDNS log look like?

    "We are in a prison drama. This is like The Shawshank Redemption, only with more tunneling through shit and no fucking redemption."
  • From the master pdns[5992]: Scheduling exit on remote request pdns[5992]: Guardian is killed, taking down children with us pdns[6122]: Listening on controlsocket in '/var/run/pdns.controlsocket' pdns[6124]: Guardian is launching an instance pdns[6124]: This is module gmysqlbackend.so reporting pdns[6124]: This is a guarded instance of pdns pdns[6124]: It is advised to bind to explicit addresses with the --local-address option pdns[6124]: UDP server bound to 0.0.0.0:53 pdns[6124]: TCP server bound to 0.0.0.0:53 pdns[6124]: PowerDNS 2.9.21.2 (C) 2001-2008 PowerDNS.COM BV (Nov 25 2008, 22:41:18, gcc 4.3.2) starting up pdns[6124]: Creating backend connection for TCP pdns[6124]: gmysql Connection succesful pdns[6124]: About to create 3 backend threads for UDP pdns[6124]: Master/slave communicator launching pdns[6124]: gmysql Connection succesful pdns[6124]: All slave domains are fresh pdns[6124]: No master domains need notifications pdns[6124]: gmysql Connection succesful pdns[6124]: gmysql Connection succesful pdns[6124]: gmysql Connection succesful pdns[6124]: 2 domains for which we are master need notifications pdns[6124]: Queued notification of domain 'thegeekbox.net' to 199.167.30.227 pdns[6124]: Queued notification of domain 'thegeekbox.net' to 206.253.165.5 [6124]: Received NOTIFY for thegeekbox.net from 199.167.30.227 but slave support is disabled in the configuration pdns[6124]: Received unsuccesful notification report for 'thegeekbox.net' from 199.167.30.227, rcode: 4 pdns[6124]: Removed from notification list: 'thegeekbox.net' to 199.167.30.227 pdns[6124]: No master domains need notifications

    That's the last set of from log, cleaned up a bit put the full thing on paste bin and I don't appear to be logging on either slave, I'll get on that.

  • Just use this tutorial from howtoforge to replicate MySQL, I can get mine working with powerdns:

    http://www.howtoforge.com/how-to-set-up-mysql-database-replication-with-ssl-encryption-on-debian-squeeze

    Please make sure when you create CA Certificate and Server Certificate, the COMMON NAME has to be different

Sign In or Register to comment.