<?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>spamcollect &#187; dns</title>
	<atom:link href="http://www.spamcollect.com/archives/category/dns/feed" rel="self" type="application/rss+xml" />
	<link>http://www.spamcollect.com</link>
	<description>about, all the spam in my life</description>
	<lastBuildDate>Thu, 24 Jun 2010 13:09:43 +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>Howto install djbdns with autoaxfr</title>
		<link>http://www.spamcollect.com/archives/28</link>
		<comments>http://www.spamcollect.com/archives/28#comments</comments>
		<pubDate>Sat, 05 Jan 2008 17:17:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dns]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/28</guid>
		<description><![CDATA[If you like to setup autoaxfr with djbdns, maybe this howto will help you. First of all, I assume that you have already installed ucspi-tcp and daemontools. If not, look at D.J. Bernsteins Webseite http://cr.yp.to and install it. After that, you will have to download autoaxfr and the djbdns Package. What I&#8217;m doing is a [...]]]></description>
			<content:encoded><![CDATA[<p>If you like to setup autoaxfr with djbdns, maybe this howto will help you.</p>
<p>First of all, I assume that you have already installed ucspi-tcp and daemontools. If not, look at D.J. Bernsteins Webseite<br />
<a href="http://cr.yp.to">http://cr.yp.to</a> and install it.</p>
<p>After that, you will have to download <a href="http://www.lickey.com/autoaxfr/">autoaxfr</a> and the <a href="http://cr.yp.to">djbdns</a> Package.<br />
What I&#8217;m doing is a basic installation. If you need IPv6 support, watch out, there will be a patch somewhere for djbdns.</p>
<p>Now, add the necessary users:<br />
<code><br />
groupadd dns<br />
useradd -g dns -s /bin/false dnscache<br />
useradd -g dns -s /bin/false tinydns<br />
useradd -g dns -s /bin/false dnslog<br />
useradd -g dns -s /bin/false axfrdns<br />
useradd -g dns -s /bin/false autoaxfr<br />
</code><br />
<br />
<strong>dnscache</strong></p>
<p>First of all, we install dnscache to 127.0.0.1</p>
<p><code>dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1</code><br />
If you like to distribute dns service to other machines in your network, add a real ip address.<br />
<strong>WARNING</strong>: <em>You can only use dnscache or tinydns on ONE ip address.</em></p>
<p>If you need dnscache to resolv domain names for other machines in your network, add the network or every machine by doing this. <br />
<code>touch /etc/dnscache/root/ip/192.168.0</code></p>
<p>Now it&#8217;s time to activate your dnscache.<br />
<code>ln -s /etc/dnscache /service</code></p>
<p>
<strong>tinydns</strong></p>
<p>You will need tinydns if you like to play dns server for domains. <br />
First of all, configure it: <br />
<code>tinydns-conf tinydns dnslog /etc/tinydns 212.89.98.32</code><br />
Use the external ip address, the server should be reachable at. </p>
<p>Now it&#8217;s time to setup autoaxfr.<br />
<code>autoaxfr-conf autoaxfr dnslog /etc/autoaxfr</code></p>
<p>You will now have to edit the file /etc/tinydns/root/Makefile<br />
Replace everything with this:<br />
<code>data.cdb: data<br />
/usr/local/bin/tinydns-data</p>
<p>data: mydata axfrdata<br />
cat $^ > $@</p>
<p>axfrdata: /service/autoaxfr/root/zones/*<br />
sort -u $^ > $@</code></p>
<p>Don&#8217;t forget to add the file mydata &#038; axfrdata:</p>
<p><code>touch /etc/tinydns/root/axfrdata</code><br />
<code>touch /etc/tinydns/root/mydata</code></p>
<p>After every change of data, a secondary dns or whatever, you&#8217;ll have to type make in /etc/tinydns/root/<br />
Just automate this with a cronjob. </p>
<p><code>*/10 * * * * cd /etc/tinydns/root &#038;&#038; make > /dev/null 2>&#038;1</code></p>
<p>Let&#8217;s start tinydns and autoaxfr.</p>
<p><code>ln -s /etc/tinydns /service<br />
ln -s /etc/autoaxfr /service<br />
</code></p>
<p>Goto /etc/autoaxfr/root/slaves.<br />
Add every domain you would like to distribute as secondary dns by adding the domain name as filename and the ip address of the primary dns controller as content in the file. </p>
<p>Example:<br />
<code>vi test.com<br />
123.123.123.133<br />
</code><br />
DONE! That&#8217;s the basic.</p>
<p>If you like to play primary dns server you&#8217;ll have to install axfrdns.<br />
<code>axfrdns-conf axfrdns dnslog /etc/axfrdns /etc/tinydns 212.89.98.32</code><br />
Use the same ip address as for tinydns. </p>
<p>Set the servers that are allowed to be secondary dns servers. <br />
<code>cd /etc/axfrdns<br />
vi /etc/axfrdns/tcp<br />
</code><br />
<br />
insert to following.</p>
<p><code>122.22.22.22:allow<br />
:deny<br />
</code><br />
<br />
You can restrict that to networks, domains and so on. For that, see the axfrdns manuel from djb.</p>
<p>After you have changed the file, type make. </p>
<p>Start axfrdns.</p>
<p><code>ln -s /etc/axfrdns /service</code></p>
<p>Comments, questions, whatever are welcome. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/28/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
