Re: BIND-DLZ cache corruption issue.
Scott Haneda <talklists <at> newgeo.com>
2010-09-30 22:49:44 GMT
Positive. You can probably replicate this yourself. We are using BIND 6.5.1-3.P3 and 9.6.1-16-P3 here. Add a zone for example.com (or other) and add an MX host to it then add a TXT record for SPF similar to the following:
You can mix and match with DLZ in that some zones can come out of a database like MySql or PGSql, and others can use the original text file method that most all non DB backed NS's use.
I would be curious for you to replicate the zone problem to a text file based zone. Create the same format error with the TXT records string length being too long.
I am guessing what will happen is named-checkzone/named-checkconf will one or the other report errors. rndc will probably fail a reload, and perhaps named will not start/restart either.
I wonder what the results will be.
It's a tough call on the right thing to do. Badly formatted data in named seems to go through a set of checks that if severe enough, named won't start. That seems logical.
But by adding DLZ, those checks can no longer happen, since the zone is loaded dynamically. I think ideally I would want the entire zone to be skipped, and the zone skipping logged.
If I remember correct, you were getting crashes or a dead/stalled server. If that doesn't happen with non DLZ settings, I think the DLZ side should be changed to behave the sane way.
In the meantime, how about a simple set of checks on the server side to validate? You can then check strlen() and also do other nice things like make sure there is a trailing dot when needed, or not. Domain validation and checking that domain is registered, has it's NS's correctly pointing to you and backups etc.
It seems to me, regardless of what named does with the data, it's a good idea to validate that data first.
--
Scott * If you contact me off list replace talklists <at> with scott <at> *
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers