<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 13, 2011, at 9:06 AM, fddi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I do not know why you really don't liket this mysql solution.<br>OK I am talking of a DNS for HA purposes for grid computing services for exampe, so DNS<br>resolution must be always working at any cost.<br>The David solution can be OK, but I want to be sure not to have issues with serial numbers on the two servers<br>and the mysql solution looks safer to me. You do not have to rsync anything, just have mysql properly configured.<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><div><br></div><div>This list is read by many people with extreme experience with DNS and DNS operations.  Using the information that you have provided, many solutions have been provided to meet the requirements that you have stated.  I would suggest that you at least consider this other solutions and not be as adamant about using your proposed MySQL solution.</div><div><br></div><div>You state that you have a "HA" requirement.  Please understand that this is not an uncommon requirement for a DNS operation.  In fact, almost all DNS operations have this same requirement.  Just imagine if the root servers did not have a require for "high availability".  The same goes for the "com", "net", "org" servers ("it" also).  This is not an unusual requirement and a standard BIND DNS server provides this very well.</div><div><br></div><div>Now, I would also suggest that a MySQL DNS server may not be the best solution for a critical DNS operation.  Please take a look at the benchmark work done comparing BIND using various backend systems, including MySQL.  This can be found at <a href="http://bind-dlz.sourceforge.net/perf_tests.html">http://bind-dlz.sourceforge.net/perf_tests.html</a>, which is part of the work that the people that developed DLZ for BIND.  The standard BIND server could provide 16,000 queries per second.  The same BIND server using a MySQL backend could handle less than 700 qps.  </div><div><br></div><div>BIND DLZ using MySQL is NOT what I would consider to be a high performance solution for a DNS operation.  Now, granted, these results were not using a "current" version of BIND, nor was this being run on any "high power" hardware.  Performance of BIND DLZ using a MySQL backend may have easily been improved, but so has the performance of the base system too.  A 20 to 1 performance advantage for a straight BIND solution will be hard to overcome.</div><div><br></div><div>So, performance isn't something that a MySQL backend provides to a DNS operation and high availability is something that all DNS server do provide, so your real requirement must be something else, such as being able to update multiple servers at the same time.  But Doug Barton has identified that using "nsupdate" to update both (all) servers also provides a solution to meet this requirement.</div><div><br></div><div>So, your "the mysql solution looks safer to me", may be your viewpoint which is not universally agreed upon.  You also have stated "just have mysql properly configured".  This statement is not unique to MySQL but to BIND also.  BIND also needs to be properly configured, no different than with MySQL - nothing unique here.</div><div><br></div><div>Now, my single belief for any DNS operation is to follow the KISS principle, "keep it simple, stupid".  A less complex system will be more reliable than a more complex system, because of having less potential points of failure.  This reliability is the single most important requirement for a DNS operation.  A DNS operation that requires running both BIND and MySQL will be inherently less reliable than one running just BIND.  </div><div><br></div><div>The complexity of a MySQL BIND server makes for a less reliable system than one just using BIND.  The performance of a MySQL based BIND server is much less than a standard BIND server.  Managing DNS information using dynamic DNS provides a simple solution to updating the zone information.  So, what is the actual advantage of using a MySQL backend to BIND?  I'm not convinced that there is any advantage and I am sure that there are many downsides to using this.</div><div><div><br></div><div>Using MySQL for a backend to BIND is a fairly commonly proposed solution but it's actual implementation is not followed up on.  I looked at using MySQL, but the performance limitations were an absolute deal killer.  I set up a simple BIND/MySQL system and benchmarked it and duplicated the performance trends from the BIND-DLZ developers.  Maybe this has been improved, but these results have not be published so we don't know about it.</div><div><br></div></div><div>If you do implement your MySQL solution, please, please, please, keep us informed about how it works for you.  We would like to know more and are always willing to look at new technologies but aren't too accepting of hand waving.  </div><div><br></div><div>Bill Larson</div><br><blockquote type="cite"><div>Riccardo<br><br>On 2/12/11 11:33 PM, Doug Barton wrote:<br><blockquote type="cite">On 02/11/2011 01:51 PM, fddi wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">I understand you, but the advantage of having mysql backend is that<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">if one of the two servers dies, the other keeps running with up to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">date informations, and can also be updated wit new informations. When<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the  other server comes up again it will automatically sync itself<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">using mysql replica mechanism. if I use file backend I have to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">manually sync it, and how to keep tracks of modifications ?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">for this I choose mysql backend<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Two questions, how often do you anticipate one of the masters failing, and how much data are you talking about? Generally the number of times a server fails is going to be pretty small, if it's not, you've got bigger problems.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If you're not talking about a huge amount of data here (and from what you've described in previous posts, you're not) then you are fairly dramatically over-architecting your solution here. Personally I think David had a great idea in regards to using nsupdate to update both masters at the same time. If you really think that one of them is going to fail often enough to justify an automated solution than scripting something that utilizes rsync shouldn't be too hard.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">hth,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Doug<br></blockquote><blockquote type="cite"><br></blockquote><br>_______________________________________________<br>bind-users mailing list<br><a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>https://lists.isc.org/mailman/listinfo/bind-users<br></div></blockquote></div><br></body></html>