<?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>Aleksandar Savic &#187; ubuntu</title>
	<atom:link href="http://aleksandarsavic.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://aleksandarsavic.com</link>
	<description>simplicity is beautiful</description>
	<lastBuildDate>Mon, 08 Dec 2008 23:37:22 +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>How to install and use djbdns name server on Ubuntu 6.06 LTS</title>
		<link>http://aleksandarsavic.com/how-to-install-and-use-djbdns-name-server-on-ubuntu-606-lts/</link>
		<comments>http://aleksandarsavic.com/how-to-install-and-use-djbdns-name-server-on-ubuntu-606-lts/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 21:43:19 +0000</pubDate>
		<dc:creator>Aleksandar</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[djbdns]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://aleksandarsavic.com/how-to-install-and-use-djbdns-name-server-on-ubuntu-606-lts/</guid>
		<description><![CDATA[I do not issue any guarantee that this will work for you!!!
btw. it's working for me :p ...]]></description>
			<content:encoded><![CDATA[<p>I do not issue any guarantee that this will work for you!!!<br />
btw. it&#8217;s working for me :p</p>
<pre>apt-get install build-essential</pre>
<p>Download patches:</p>
<pre>mkdir -p /usr/local/djb/patches
cd /usr/local/djb/patches
wget http://www.thedjbway.org/patches/djb_errno_patches.tgz
tar xfvz djb_errno_patches.tgz</pre>
<p>Install daemontools:</p>
<pre>mkdir -p /package
chmod 1755 /package
cd /package
wget  http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
gunzip daemontools-0.76.tar
tar -xpf daemontools-0.76.tar
rm daemontools-0.76.tar
cd admin/daemontools-0.76
touch /etc/inittab
patch -p1 &lt; /usr/local/djb/patches/daemontools-0.76.errno.patch
package/install</pre>
<p>Install ucspi-tcp:<br />
Download the ucspi-tcp package to a temporary directory (example: /usr/src)</p>
<pre>cd /usr/src
wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
tar xfvz ucspi-tcp-0.88.tar.gz
cd ucspi-tcp-0.88
patch -p1 &lt; /usr/local/djb/patches/ucspi-tcp-0.88.errno.patch
make
make setup check</pre>
<p>Install djbdns:<br />
Download the djbdns package to a temporary directory (example: /usr/src)</p>
<pre>cd /usr/src
wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
gunzip djbdns-1.05.tar.gz
tar -xf djbdns-1.05.tar
cd djbdns-1.05
echo gcc -O2 -include /usr/include/errno.h &gt; conf-cc
make
make setup check</pre>
<p>Configuring name server:<br />
Make sure you replace 1.2.3.4 with the external IP address of your system&#8230;</p>
<pre>useradd tinydns
useradd dnslog
tinydns-conf tinydns dnslog /etc/tinydns 1.2.3.4
ln -s /etc/tinydns /service 

useradd dnscache
dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1
ln -s /etc/dnscache /service</pre>
<p>To use dnscache, replace the existing name servers in /etc/resolv.conf with 127.0.0.1, the IP address that dnscache is listening on&#8230;</p>
<pre>cp /etc/resolv.conf /etc/resolv.conf.backup
nano /etc/resolv.conf</pre>
<p>Replace content of resolv.conf with:</p>
<pre>nameserver 127.0.0.1</pre>
<p>For tinydns web based front end you can use vegadns.. For how to set up vegadns go to http://www.djbdnsrocks.org/single/vegadns.htm</p>
<p>&#8212;<br />
<a rel="nofollow" href="http://store.dwalliance.com/news/view_article.html?article_id=7576a92a47743b7cf5956bd2e4e45539">DW Alliance</a> / <a rel="nofollow" href="http://www.dalbjerg.nu/?p=72">Dalbjerg</a> / <a rel="nofollow" href="http://techkey.blogspot.com/2005/12/install-dns-server-in-corporate.html">TechKey</a></p>
]]></content:encoded>
			<wfw:commentRss>http://aleksandarsavic.com/how-to-install-and-use-djbdns-name-server-on-ubuntu-606-lts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

