[nsd-users] Syntax check of zonefiles in NSD 4

W.C.A. Wijngaards wouter at nlnetlabs.nl
Thu May 22 12:04:02 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Florian,

Yes it is a bug, this is wrong due to recent changes to read oddly
syntaxed TXT records.  Fixed and committed, here is the fix if you
need it for yourself:

Index: zlexer.lex
===================================================================
- --- zlexer.lex	(revision 4283)
+++ zlexer.lex	(working copy)
@@ -108,7 +108,7 @@
 LETTER  [a-zA-Z]
 NEWLINE [\n\r]
 ZONESTR [^ \t\n\r();.\"\$]|\\.|\\\n
- -CHARSTR [^ \t\n\r().]|\\.|\\\n
+CHARSTR [^ \t\n\r();.]|\\.|\\\n
 QUOTE   \"
 DOLLAR  \$
 COMMENT ;


Best regards,
   Wouter

On 05/22/2014 01:11 PM, Florian Riehm wrote:
> Hi Wouter,
> 
> I have seen you have committed nsd-checkzone already. Thanks a lot
> for this! I have started testing and I like it really.
> 
> Just one question:
> 
> With nsd 4.0.1 I'm using SOA records like this:
> 
> @               IN      SOA     dns.example.de.
> hostmaster.dns.example.de. ( 1379078166; serial 28800; refresh 
> 7200; retry 604800; expire 7200; minimum )
> 
> With the current nsd from svn nsd-checkzone is complaining about
> my syntax. It expects at least one whitespace between the SOA
> parameters (serial, refresh, ...) and the semicolon. 1379078166;
> serial -> Error 1379078166 ; serial -> OK
> 
> Is there a reason for the changed behavior or is it a bug?
> 
> Regards, Florian
> 
> 
> 
> On 05/05/14 09:44, W.C.A. Wijngaards wrote:
>> Hi Florian,
>> 
>> On 05/05/2014 09:34 AM, Florian Riehm wrote:
>>> Hi,
>> 
>>> I'm migrating from NSD 3 to NSD 4 and I'm really happy with the
>>> new NSD. Especially that nsdc patch is gone and compiling
>>> zonefiles isn't necessary anymore, is awesome.
>> 
>>> But I was using zonec also for syntax checking my zonefiles.
>>> Is there any alternative to do this with NSD 4?
>> 
>> Yes indeed there is no such feature right now.  We should add a 
>> checkzone, like nsd-checkconf.  Right now you can 'make
>> nsd-mem', which makes a tool that parses the zone files and
>> prints the total memory usage, as a side effect this also checks
>> the syntax of the zone files.  It prints errors in zone file
>> syntax too, so it is a good workaround.
>> 
>> Best regards, Wouter
>> 
>> _______________________________________________ nsd-users mailing
>> list nsd-users at NLnetLabs.nl 
>> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
>> 
> _______________________________________________ nsd-users mailing
> list nsd-users at NLnetLabs.nl 
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTfeeyAAoJEJ9vHC1+BF+NcjQQAKQsdYOpi0v1ecvXncGwxSP4
GyEaFzYgtgBWhKy9a4xzR5Feid9z6+r1BYFhfL1SWQv357hjbwkJGHiDVKkyo7Jr
rWAhcqA6pf2pfkZK4/oLhV4ID1rq6GABoTqJEHZCApYOIF38Ot9c37n1WQMwSL+M
omK5TBq8sF54ZbL03Zuds6jSOibKvvmdXMkwQYHCMAHNa7G+B+JhztfyBBe7tvXX
GPm/NlYCJCfwZmGOQrfVC5p5Nqg74BMYrrnH02Dp5MdeGwjdMVdHSMj2rXHQdbP6
h+vI9wVPHlTjJPjBS3AVIIL7Lbn+zGOlWXt/mtjCojyQY6n8WBYb+BFgFNLFL9Qs
vVmfUrL3YK1LnAND4+hFvBBqUdg8WMTRekyaXwQrxPucF7Rvo6AJ3xiQ1iH2quw0
EwkEi5FkqIavRfn5YKmeB63c4IpHLeI5vO1lyDfJxSwSBslhIN5WXIOk5Whgs2z/
+kxNDWj2Rxw0YwRc/aPoVK80A2+weA4dR4pzZSg/UaMceBcuJg841JotuIbmj00g
dpJW4jykTcTP6mq3Q5QiRQYIfLepNq2EZOk6rtiyXONGo1eY2ku2p7DbbKEMmeh1
4EnJx626a7s5o5r3cuTKBz2dp4WvhBqWNN4QjUc9yEqYT/NzSy0X+j3oU/BuBKKw
vKk0QZPI2BdVJ45aCd++
=Uan2
-----END PGP SIGNATURE-----



More information about the nsd-users mailing list