From: Bert Hubert Date: Thu, 2 Jan 2003 16:11:43 +0000 (+0000) Subject: wuh X-Git-Tag: pdns-2.9.4~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=468e50b8d8037d8ae76ca3830a7637f95dd128b5;p=pdns wuh git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@110 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/docs/pdns.sgml b/pdns/docs/pdns.sgml index cd08c06f6..49c2b935c 100644 --- a/pdns/docs/pdns.sgml +++ b/pdns/docs/pdns.sgml @@ -15,7 +15,7 @@ - v2.1 $Date: 2002/12/29 00:50:34 $ + v2.1 $Date: 2003/01/02 16:11:43 $ @@ -5582,6 +5582,115 @@ GRANT ALL ON records_id_seq TO pdns; + Master/slave queries + + Most installations will have zero need to change the following settings, but should the need arise, here they are: + + + master-zone-query + + + Called to determine the master of a zone. + Default: select master from domains where name='%s' and type='SLAVE' + + + + + info-zone-query + + + Called to retrieve (nearly) all information for a domain: + Default: select id,name,master,last_check,notified_serial,type from domains where name='%s' + + + + + info-all-slaves-query + + + Called to retrieve all slave domains + Default: select id,name,master,last_check,type from domains where type='SLAVE' + + + + + supermaster-query + + + Called to determine if a certain host is a supermaster for a certain domain naeme. + Default: + select account from supermasters where ip='%s' and nameserver='%s'"); + + + + + + insert-slave-query + + + Called to add a domain as slave after a supermaster notification. + Default: + insert into domains (type,name,master,account) values('SLAVE','%s','%s','%s') + + + + + + insert-record-query + + + Called during incoming AXFR. + Default: + insert into records (content,ttl,prio,type,domain_id,name) values ('%s',%d,%d,'%s',%d,'%s') + + + + + + update-serial-query + + + Called to update the last notified serial of a master domain. + Default: + update domains set notified_serial=%d where id=%d + + + + + + update-lastcheck-query + + + Called to update the last time a slave domain was checked for freshness. + Default: + update domains set notified_serial=%d where id=%d + + + + + + info-all-master-query + + + Called to get data on all domains for which the server is master. + Default: + select id,name,master,last_check,notified_serial,type from domains where type='MASTER' + + + + + + delete-zone-query + + + Called to delete all records of a zone. Used before an incoming AXFR. + Default: + delete from records where domain_id=%d + + + + + Fancy records If PDNS is used with so called 'Fancy Records', the 'MBOXFW' record exists which specifies an email address forwarding instruction,