<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shell Tips ! &#187; News</title>
	<atom:link href="http://www.shell-tips.com/category/news/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shell-tips.com</link>
	<description>Some useful tips about CLI tools, Shell scripts and batch files... GNU Bash, Windows XP, SQL, Help Sheets / Cheat Sheets, etc.</description>
	<lastBuildDate>Mon, 14 Jun 2010 08:56:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Bind 9.5.0 &#8211; Patch dlz MySQL 5 for auto reconnect</title>
		<link>http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/</link>
		<comments>http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 21:50:17 +0000</pubDate>
		<dc:creator>Nicolas Brousse</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[bind9]]></category>
		<category><![CDATA[dlz]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql5]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/</guid>
		<description><![CDATA[Here is a quick post of a &#8220;quick and dirty&#8221; patch for the ISC DNS Server : Bind 9.5.0a6 and its dlz mysql driver. For the quick story, I was using Bind 9.4.1 with dlz MySQL. My MySQL server is a 5.0.41 (with solidDB). While using it, I realize that some times the dns server [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick post of a &#8220;quick and dirty&#8221; patch for the <a title="ISC DNS BIND" href="http://www.isc.org/products/BIND">ISC DNS</a> Server : Bind 9.5.0a6 and its dlz mysql driver. For the quick story, I was using <a title="Bind - DNS Server" href="http://www.isc.org">Bind</a> 9.4.1 with dlz MySQL. My <a title="MySQL" href="http://www.mysql.com/">MySQL</a> server is a 5.0.41 (with <a title="SolidDB" href="http://www.solidtech.com">solidDB</a>). While using it, I realize that some times the dns server was returning empty value for the dns queries. I tried many tips but it was still (sometime) giving me empty answer&#8230; Of course, I suspected the dlz driver. So, I tried to upgrade to Bind 9.5.0a6 but the problem still happened and the only way to fix was to restart bind !</p>
<p><span id="more-36"></span></p>
<p>So I take a look at the dlz driver and make this <a title="Patch dlz MySQL for auto reconnect" href="/dl/patch.dlz_mysql.diff">simple patch</a> for adding the following features:</p>
<ul>
<li> Set option MYSQL_OPT_RECONNECT to 1</li>
<li> Add some log error information while doing a ping</li>
</ul>
<p>In fact, after using the few logs added thru mysql ping, I discover that when the driver lost its connection to the mysql server (due to a small wait_timeout, mysql restart, etc.) it tried to ping but didn&#8217;t succeed to reconnect to the server. Hopefully, I just needed to bypass the default option of MYSQL_OPT_RECONNECT while creating the connection.</p>
<blockquote><p><strong>MYSQL_OPT_RECONNECT</strong></p>
<p>Enable or disable automatic reconnection to the server if             the connection is found to have been lost. Reconnect has             been off by default since MySQL 5.0.3; this option is new in             5.0.13 and provides a way to set reconnection behavior             explicitly.</p></blockquote>
<p>Now, I didn&#8217;t have to run a bloody crontab for checking that my dns server is still answering to its dns queries.</p>
<p>Enjoy. ;-)</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F&amp;title=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F&amp;title=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F&amp;title=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F&amp;headline=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect&amp;u=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F&amp;title=Bind+9.5.0+-+Patch+dlz+MySQL+5+for+auto+reconnect&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F09%2F04%2Fbind-950-patch-dlz-mysql-5-for-auto-reconnect%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Trac Plugins on Shell tips !</title>
		<link>http://www.shell-tips.com/2007/01/02/trac-plugins-on-shell-tips/</link>
		<comments>http://www.shell-tips.com/2007/01/02/trac-plugins-on-shell-tips/#comments</comments>
		<pubDate>Tue, 02 Jan 2007 03:22:06 +0000</pubDate>
		<dc:creator>Nicolas Brousse</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.shell-tips.com/2007/01/02/trac-plugins-on-shell-tips/</guid>
		<description><![CDATA[Good start for the new year, I&#8217;m learning Python and so add a new bunch of pages on shell-tips.com about some Trac plugins that I&#8217;m doing. Trac is a minimalistic web-based software project management and bug/issue tracking system. It provides an interface to the Subversion revision control systems, an integrated wiki, flexible issue tracking and [...]]]></description>
			<content:encoded><![CDATA[<p>Good start for the new year, I&#8217;m learning Python and so add a new bunch of pages on shell-tips.com about some Trac plugins that I&#8217;m doing. Trac is a minimalistic web-based software project management and bug/issue tracking system. It provides an interface to the Subversion revision control systems, an integrated wiki, flexible issue tracking and convenient report facilities.</p>
<p>Two plugins are currently in the pipe :</p>
<ul>
<li>A Platform Deployment Plugin for simplify web sources deployment on remote host</li>
<li>A Syslog-NG Plugin for having a nice interface for your web server syslog and so tracking the bugs</li>
</ul>
<p>You can know more about those projects <a title="Trac plugins" href="/trac-plugins">here</a>.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F&amp;title=Trac+Plugins+on+Shell+tips+%21" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F&amp;title=Trac+Plugins+on+Shell+tips+%21" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F&amp;title=Trac+Plugins+on+Shell+tips+%21" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F&amp;headline=Trac+Plugins+on+Shell+tips+%21" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Trac+Plugins+on+Shell+tips+%21&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Trac+Plugins+on+Shell+tips+%21&amp;u=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Trac+Plugins+on+Shell+tips+%21&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Trac+Plugins+on+Shell+tips+%21&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Trac+Plugins+on+Shell+tips+%21&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F&amp;title=Trac+Plugins+on+Shell+tips+%21&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fwww.shell-tips.com%2F2007%2F01%2F02%2Ftrac-plugins-on-shell-tips%2F" ><img class="lightsocial_img" src="http://www.shell-tips.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.shell-tips.com/2007/01/02/trac-plugins-on-shell-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
