From c715833f57b60079dbc624f49f034dfdd4c27f3a Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Sun, 2 Feb 2003 22:04:51 +0000 Subject: [PATCH] work on zone2sql git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@143 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/backends/bind/zone2sql.cc | 13 +++++++------ pdns/docs/pdns.sgml | 30 +++++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/pdns/backends/bind/zone2sql.cc b/pdns/backends/bind/zone2sql.cc index cb9748ace..83335126c 100644 --- a/pdns/backends/bind/zone2sql.cc +++ b/pdns/backends/bind/zone2sql.cc @@ -18,7 +18,7 @@ */ /* accepts a named.conf as parameter and outputs heaps of sql */ -// $Id: zone2sql.cc,v 1.4 2002/12/18 16:22:20 ahu Exp $ +// $Id: zone2sql.cc,v 1.5 2003/02/02 22:04:51 ahu Exp $ #ifdef WIN32 # pragma warning ( disable: 4786 ) # include @@ -64,6 +64,7 @@ bool g_intransaction; static int num_records; static string lastsoa_qname; + static void callback(unsigned int domain_id,const string &domain, const string &qtype, const string &content, int ttl, int prio) { static int lastsoa_domain_id=-1; @@ -71,6 +72,7 @@ static void callback(unsigned int domain_id,const string &domain, const string & num_records++; if(qtype=="SOA") { + // cout<<"Juh: "<= 3 ios_base::sync_with_stdio(false); #endif - + lastsoa_qname=" "; arg().setSwitch("mysql","Output in format suitable for mysqlbackend")="yes"; arg().setCmd("gpgsql","Output in format suitable for default gpgsqlbackend"); arg().setCmd("gmysql","Output in format suitable for default gmysqlbackend"); @@ -253,12 +255,11 @@ int main(int argc, char **argv) cerr<<"\r100% done\033\133\113"< - v2.1 $Date: 2003/02/01 13:18:22 $ + v2.1 $Date: 2003/02/02 22:04:51 $ @@ -4171,6 +4171,15 @@ local0.err /var/log/pdns.err master. If the SOA serial number there is higher, the domain is retrieved and inserted into the database. In any case, after the check the domain is declared 'fresh', and will only be checked again after 'refresh' seconds have passed. + + + + Slave support is OFF by default, turn it on by adding slave to the configuration. The same + holds for master operation. Both can be on simultaneously. + + + + PDNS also reacts to notifies by immediately checking if the zone has updated and if so, retransfering it. @@ -4207,6 +4216,16 @@ local0.err /var/log/pdns.err if the zone changed, and transferring its contents if it has. Notifications are a way to promptly propagate zone changes to slaves, as described in RFC 1996. + + + + + Master support is OFF by default, turn it on by adding master to the configuration. The same + holds for slave operation. Both can be on simultaneously. + + + + Left open by RFC 1996 is who is to be notified - which is harder to figure out than it sounds. All slaves for this domain must receive a notification but the nameserver only knows the names of the slaves - not the IP addresses, which is where the problem lies. The nameserver itself might @@ -4997,6 +5016,15 @@ local0.err /var/log/pdns.err + + Q: Master or Slave support is not working, PDNS is not picking up changes + + + A: The Master/Slave apparatus is off by default. Turn it on by adding a slave and/or + master statement to the configuration file. Also, check that the configured backend is master or slave capable. + + + Q: Can I use a MySQL database with the Windows version of PowerDNS? -- 2.40.0