Changeset 2557

Show
Ignore:
Timestamp:
04/06/12 12:29:04 (15 months ago)
Author:
peter
Message:

doc updates, mostly for backend writers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/docs/pdns.xml

    r2551 r2557  
    1022210222    <para> 
    1022310223      Another very important setting <command>cache-ttl</command>. PDNS caches entire packets it sends out so as to save the 
    10224       time to query backends to assemble all data. The default setting of 10 seconds may be low for high traffic sites, a value of 
     10224      time to query backends to assemble all data. The default setting of 20 seconds may be low for high traffic sites, a value of 
    1022510225      60 seconds rarely leads to problems. 
    1022610226    </para> 
     
    1343813438          <varlistentry><term>slave-cycle-interval=60</term> 
    1343913439            <listitem><para> 
    13440               Schedule slave up-to-date checks of domains whose status is unknown every .. seconds. See <xref linkend="fancy-records"/>. 
     13440              Schedule slave up-to-date checks of domains whose status is unknown every .. seconds. 
    1344113441              </para></listitem></varlistentry> 
    1344213442          <varlistentry><term>smtpredirector=...</term> 
     
    1733417334        public: 
    1733517335 
    17336         virtual bool lookup(const QType &amp;qtype, const string &amp;qdomain, DNSPacket *pkt_p=0, int zoneId=-1)=0;  
    17337         virtual bool list(int domain_id)=0;  
     17336        virtual void lookup(const QType &amp;qtype, const string &amp;qdomain, DNSPacket *pkt_p=0, int zoneId=-1)=0; 
     17337        virtual bool list(const string &amp;target, int domain_id)=0; 
    1733817338        virtual bool get(DNSResourceRecord &amp;r)=0; 
    17339         virtual bool getSOA(const string &amp;name, SOAData &amp;soadata); 
     17339        virtual bool getSOA(const string &amp;name, SOAData &amp;soadata, DNSPacket *p=0); 
    1734017340        }; 
    1734117341        </programlisting> 
     
    1740717407{ 
    1740817408public: 
    17409   bool list(int id) { 
     17409  bool list(const string &amp;target, int id) 
     17410  { 
    1741017411    return false; // we don't support AXFR 
    1741117412  } 
     
    1750717508              </row> 
    1750817509              <row> 
    17509                 <entry>u_int16_t priority</entry><entry>priority of an MX record.</entry> 
     17510                <entry>uint16_t priority</entry><entry>priority of an MX record.</entry> 
    1751017511              </row> 
    1751117512              <row> 
    17512                 <entry>u_int32_t ttl</entry><entry>Time To Live of this record</entry> 
     17513                <entry>uint32_t ttl</entry><entry>Time To Live of this record</entry> 
    1751317514              </row> 
    1751417515              <row> 
     
    1751717518              <row> 
    1751817519                <entry>time_t last_modified</entry><entry>If unzero, last time_t this record was changed</entry> 
     17520              </row> 
     17521              <row> 
     17522                <entry>bool auth</entry><entry>Used for DNSSEC operations. See <xref linkend="powerdnssec-auth" /> and more specifically <xref linkend="dnssec-migration" />. It is also useful to check out the <function>rectifyZone()</function> in pdnssec.cc</entry> 
    1751917523              </row> 
    1752017524            </tbody> 
     
    1759217596                </para> 
    1759317597                <para> 
    17594                   It is legal to return here, and have the first call to <function>get()</function> return false. This is interpreted as 'no data' 
     17598                  It is legal to return here, and have the first call to <function>get()</function> return false. This is interpreted as 'no data'. 
    1759517599                </para> 
    1759617600              </listitem> 
     
    1782417828            <tbody> 
    1782517829              <row> 
    17826                 <entry>int id</entry><entry>ID of this zone within this backend</entry> 
     17830                <entry>uint32_t id</entry><entry>ID of this zone within this backend</entry> 
    1782717831              </row> 
    1782817832              <row> 
     
    1783017834              </row> 
    1783117835              <row> 
    17832                 <entry>u_int32_t serial</entry><entry>Serial number of this zone</entry> 
     17836                <entry>uint32_t serial</entry><entry>Serial number of this zone</entry> 
    1783317837              </row> 
    1783417838              <row> 
    17835                 <entry>u_int32_t notified_serial</entry><entry>Last serial number of this zone that slaves have seen</entry> 
     17839                <entry>uint32_t notified_serial</entry><entry>Last serial number of this zone that slaves have seen</entry> 
    1783617840              </row> 
    1783717841              <row> 
     
    1799417998           /* ... */ 
    1799517999           virtual void getUpdatedMasters(vector&lt;DomainInfo&gt;* domains); 
    17996            virtual void setNotified(int id, u_int32_t serial); 
     18000           virtual void setNotified(uint32_t id, uint32_t serial); 
    1799718001           /* ... */ 
    1799818002         } 
     
    1801518019          </varlistentry> 
    1801618020          <varlistentry> 
    18017             <term>bool setNotified(int domain_id, u_int32_t serial)</term> 
     18021            <term>bool setNotified(uint32_t domain_id, uint32_t serial)</term> 
    1801818022            <listitem> 
    1801918023              <para>