<?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>A Million Monkeys &#187; dns</title>
	<atom:link href="http://www.monkeedev.co.uk/blog/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.monkeedev.co.uk/blog</link>
	<description>Surviving life as a sysadmin.</description>
	<lastBuildDate>Mon, 16 May 2011 09:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Setting up a DNS server quickly</title>
		<link>http://www.monkeedev.co.uk/blog/2007/06/22/setting-up-a-dns-server-quickly/</link>
		<comments>http://www.monkeedev.co.uk/blog/2007/06/22/setting-up-a-dns-server-quickly/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 08:09:31 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/2007/06/22/setting-up-a-dns-server-quickly/</guid>
		<description><![CDATA[Using the following steps, it&#8217;s possible to set up a chrooted debian DNS master server in under 5 minutes. It&#8217;s assumed that you have an understanding of BIND and zone files. Parts of this guide (the chroot mainly) are taken from a longer guide at howtoforge. Lines in italic are to be entered into the [...]]]></description>
			<content:encoded><![CDATA[<p>Using the following steps, it&#8217;s possible to set up a chrooted debian DNS master server in under 5 minutes. It&#8217;s assumed that you have an understanding of BIND and zone files.</p>
<p>Parts of this guide (the chroot mainly) are taken from a longer guide at <a href="http://howtoforge.com/debian_bind9_master_slave_system">howtoforge.</a></p>
<p>Lines in italic are to be entered into the shell.</p>
<p><font style="font-style: italic">apt-get update<br />
</font><font style="font-style: italic">apt-get install bind9<br />
</font><font style="font-style: italic">/etc/init.d/bind9 stop<br />
</font><font style="font-style: italic">vim /etc/default/bind9</font></p>
<p>Change:<br />
OPTIONS=&#8221;-u bind&#8221;<br />
To:<br />
OPTIONS=&#8221;-u bind -t /var/lib/named&#8221;</p>
<p><font style="font-style: italic">vim /etc/bind/named.conf.options</font></p>
<p>Change the ‘forwarders’ line to the DNS of your ISP<br />
forwarders { x.x.x.x; };</p>
<p><font style="font-style: italic">mkdir -p /var/lib/named/etc<br />
</font><font style="font-style: italic">mkdir /var/lib/named/dev<br />
</font><font style="font-style: italic">mkdir -p /var/lib/named/var/cache/bind<br />
</font><font style="font-style: italic">mkdir -p /var/lib/named/var/run/bind/run<br />
</font><font style="font-style: italic">mv /etc/bind /var/lib/named/etc</font><br />
<font style="font-style: italic">ln -s /var/lib/named/etc/bind /etc/bind</font><br />
<font style="font-style: italic">mknod /var/lib/named/dev/null c 1 3</font><br />
<font style="font-style: italic">mknod /var/lib/named/dev/random c 1 8</font><br />
<font style="font-style: italic">chmod 666 /var/lib/named/dev/*</font><br />
<font style="font-style: italic">chown -R bind:bind /var/lib/named/var/*</font><br />
<font style="font-style: italic">chown -R bind:bind /var/lib/named/etc/bind</font><br />
<font style="font-style: italic">vim /etc/init.d/syslogd</font></p>
<p>Change:<br />
SYSLOGD=&#8221;"<br />
To:<br />
SYSLOGD=&#8221;-a /var/lib/named/dev/log&#8221;</p>
<p><font style="font-style: italic">echo &#8220;nameserver 127.0.0.1 &gt; /etc/resolv.conf</font></p>
<p><font style="font-style: italic">/etc/init.d/sysklogd restart</font><br />
<font style="font-style: italic">/etc/init.d/bind9 start</font></p>
<p><font style="font-style: italic">ping www.google.com</font></p>
<p><font>If that works, then you&#8217;ve got a running BIND master server!</font><font style="font-style: italic"><br />
</font></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2007%2F06%2F22%2Fsetting-up-a-dns-server-quickly%2F&amp;title=Setting+up+a+DNS+server+quickly" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2007%2F06%2F22%2Fsetting-up-a-dns-server-quickly%2F&amp;title=Setting+up+a+DNS+server+quickly" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2007%2F06%2F22%2Fsetting-up-a-dns-server-quickly%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2007%2F06%2F22%2Fsetting-up-a-dns-server-quickly%2F&amp;title=Setting+up+a+DNS+server+quickly" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2007%2F06%2F22%2Fsetting-up-a-dns-server-quickly%2F&amp;title=Setting+up+a+DNS+server+quickly" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2007%2F06%2F22%2Fsetting-up-a-dns-server-quickly%2F&amp;title=Setting+up+a+DNS+server+quickly" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2007%2F06%2F22%2Fsetting-up-a-dns-server-quickly%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Setting+up+a+DNS+server+quickly+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2007%2F06%2F22%2Fsetting-up-a-dns-server-quickly%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2007/06/22/setting-up-a-dns-server-quickly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

