<?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>Gudasoft &#187; bind</title>
	<atom:link href="http://www.gudasoft.com/tag/bind/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gudasoft.com</link>
	<description>Impossible is nothing</description>
	<lastBuildDate>Thu, 06 Oct 2011 07:17:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Autoicrement the serial in bind zone files</title>
		<link>http://www.gudasoft.com/english/linux/administration-linux/09/02/1334/autoicrement-the-serial-in-bind-zone-files/2010</link>
		<comments>http://www.gudasoft.com/english/linux/administration-linux/09/02/1334/autoicrement-the-serial-in-bind-zone-files/2010#comments</comments>
		<pubDate>Thu, 02 Sep 2010 15:06:06 +0000</pubDate>
		<dc:creator>guda</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[named]]></category>

		<guid isPermaLink="false">http://www.gudasoft.com/?p=1334</guid>
		<description><![CDATA[Argh. 30+ zone files and I have to increment all numbers by hand&#8230;no way. Usage:  ./inc.rb in the current directory with all db files. #!/usr/bin/ruby Dir.glob("*.db") do &#124;file_name&#124; new_zone = [] File.open(file_name) do &#124;file&#124; while (line = file.gets) line.chomp! if line =~ /Serial/ line =~ /(\s*?)(\d+)(\s*?)(;.*)/ serial = $2.to_i serial += 1 puts "#{file_name} serial [...]]]></description>
			<content:encoded><![CDATA[<p>Argh. 30+ zone files and I have to increment all numbers by hand&#8230;no way.</p>
<p>Usage:  ./inc.rb in the current directory with all db files.</p>
<pre>#!/usr/bin/ruby

Dir.glob("*.db") do |file_name|
 new_zone = []<span id="more-1334"></span>
 File.open(file_name) do |file|
 while (line = file.gets)
 line.chomp!
 if line =~ /Serial/
 line =~ /(\s*?)(\d+)(\s*?)(;.*)/
 serial = $2.to_i
 serial += 1
 puts "#{file_name} serial line:  #{$1} #{$2} #{$3} #{$4} -&gt; #{$1}#{serial}#{$3}#{$4}"
 line = "#{$1}#{serial}#{$3}#{$4}"
 end
 new_zone &lt;&lt; line
 end
 end

 File.open(file_name, "w") do |new_file|
 new_file.write(new_zone.join("\n"));
 end
end</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.gudasoft.com/english/linux/administration-linux/09/02/1334/autoicrement-the-serial-in-bind-zone-files/2010/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One server, two bind/named process, one domain (with two nameservers)</title>
		<link>http://www.gudasoft.com/english/linux/administration-linux/02/24/546/one-server-two-bindnamed-process-one-domain-with-two-nameservers/2009</link>
		<comments>http://www.gudasoft.com/english/linux/administration-linux/02/24/546/one-server-two-bindnamed-process-one-domain-with-two-nameservers/2009#comments</comments>
		<pubDate>Tue, 24 Feb 2009 19:07:48 +0000</pubDate>
		<dc:creator>guda</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://www.gudasoft.com/?p=546</guid>
		<description><![CDATA[Yes you need two bind instances When you register a domain name you provide two nameservers. Those nameservers the registrarar will know their ip addresses. in my example the domain is cenite.com and the nameservers are ns1.cenite.com and ns2.cenite.com Both nameservers are running on signle debian machine. I have started two bind processes on the [...]]]></description>
			<content:encoded><![CDATA[<h1>Yes you need two bind instances</h1>
<p>When you register a domain name you provide two nameservers.</p>
<p>Those nameservers the registrarar will know their ip addresses.</p>
<p>in my example the domain is cenite.com and the nameservers are ns1.cenite.com and ns2.cenite.com</p>
<p>Both nameservers are running on signle debian machine. I have started two bind processes on the machine. one is binded to the ns1.cenite.com external interface and ns2.cenite.com is to the other (backup) internet interface.</p>
<p>Here is a tool to <a href="http://www.checkdns.net/quickcheck.aspx?domain=cenite.com&amp;detailed=1">check your domain </a>name</p>
<p>Here is example zone file</p>
<p><a href="http://www.gudasoft.com/wp-content/uploads/2009/02/cenitecom.db">cenite.com.db</a></p>
<p><a href="http://www.gudasoft.com/wp-content/uploads/2009/02/cenitecomns2.db">cenite.com.ns2.db</a></p>
<p>here are the configuration files.</p>
<p><a rel="attachment wp-att-553" href="http://www.gudasoft.com/linux/administration-linux/02/24/546/one-server-two-bindnamed-process-one-domain-with-two-nameservers/2009/attachment/named2"></a><a href="http://www.gudasoft.com/wp-content/uploads/2009/02/named2.conf">named2.conf</a></p>
<p><a href="http://www.gudasoft.com/wp-content/uploads/2009/02/named.conf"></a><a href="http://www.gudasoft.com/wp-content/uploads/2009/02/named.conf">named.conf</a></p>
<p>The good think is when the first internet connection is down, the second will still serve your clients.</p>
<h2>Bonus links</h2>
<p>Go and switch to tinydns &#8211; people say it is much easier to configure  http://cr.yp.to/djbdns/run-server-bind.html</p>
<p>dns <a href="http://pgl.yoyo.org/adservers/bind-zone-file-creator.php">zone generator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gudasoft.com/english/linux/administration-linux/02/24/546/one-server-two-bindnamed-process-one-domain-with-two-nameservers/2009/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

