Powerdns and zero serials on new zones

Discussion in 'Installation/Configuration' started by Jorma, Jan 31, 2012.

  1. Jorma

    Jorma New Member

    I user powerdns (and -plugin) and when I add new zone using template, the zone will get zero as serial until i make some change or add new record for the zone.

    Looks like it also ignores my refresh/retry etc. times in template and writes only "ns1.server.foo email.server.foo 0" to the powerdns.records table as SOA, without any refresh/retry etc. times after that zero so powerdns will tell default values for those in SOA-query.

    My template:

    Code:
    [ZONE]
    origin={DOMAIN}.
    ns=ns1.server.foo.
    mbox=email.server.foo.
    refresh=7200
    retry=540
    expire=604800
    minimum=86400
    ttl=3600
    
    [DNS_RECORDS]
    A|{DOMAIN}.|127.1.2.3|0|3600
    CNAME|www.{DOMAIN}.|some.server.foo.|0|3600
    NS|{DOMAIN}.|ns1.server.foo.|0|3600
    NS|{DOMAIN}.|ns2.server.foo.|0|3600
    NS|{DOMAIN}.|ns3.server.foo.|0|3600
    MX|{DOMAIN}.|mail.server.foo.|42|3600
    
    It works like this too but it's really annoying to manually update the serial by adding some bogus A-record or tell that to some non-tech client to do.

    Any ideas how to fix this?
     
: dns, powerdns

Share This Page