[Pdns-dev] Zone2SQL error

Roeland Nieuwenhuis trancer at trancer.nl
Sun Feb 23 22:43:23 CET 2003


Hi,

There is a small error or at least inconsistent thing with the manual in
zone2sql.
Zone2sql takes the SOA record from a a bind file, reads it, and leaves
in the last dots of the primary and hostmaster field. According to the
manual they shouldnt be there, and since no records in PDNS are using
these dots this might be somehow confusing. Example:

$ORIGIN trancer.nl.
$TTL 86400
@                                       IN      SOA
ns1.example.nl. hostermaster.example.nl.        (
 
2003020301      ; serial
 
28800           ; refresh
 
7200            ; retry
 
604800          ; expire
 
86400           ; minimum TTL
 
)

Is converted to this using zone2sql --gmysql:

insert into records (domain_id, name,type,content,ttl,prio) select id
,'trancer.nl', 'SOA', 'ns1.example.nl. hostermaster.example.nl.
2003020301 28800 7200 604800 86400', 86400, 0 from domains where
name='trancer.nl';

Mind the dots behind ns1.example.nl and hostmaster.example.nl, these
shouldnt be here according to http://rtfm.powerdns.com/types.html

Regards,

Roeland Nieuwenhuis
--
We are the music makers, we are the movers and the shakers
http://www.poweradmin.org - The PowerDNS Frontend
http://www.zeekoe.nl - vague yada yada

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20030223/26864912/attachment.htm


More information about the Pdns-dev mailing list