<?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>var/log &#187; bind</title>
	<atom:link href="http://www.varslashlog.com/tag/bind/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.varslashlog.com</link>
	<description>Yet another weblog</description>
	<lastBuildDate>Sat, 12 Sep 2009 13:34:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to setup DNS in BIND</title>
		<link>http://www.varslashlog.com/2008/10/30/how-to-setup-dns-in-bind/</link>
		<comments>http://www.varslashlog.com/2008/10/30/how-to-setup-dns-in-bind/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 14:58:47 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[subdomain]]></category>

		<guid isPermaLink="false">http://www.varslashlog.com/?p=45</guid>
		<description><![CDATA[This might be a beginners topic for most of the people out there, but the dns setup can be a bit confusing. This is just a short guide for how to setup an easy setup. Nothing complicated, and no fancy-pancy setup. This example will show how to setup an domain example.tld with three sub domains [...]]]></description>
			<content:encoded><![CDATA[<p>This might be a beginners topic for most of the people out there, but the dns setup can be a bit confusing. This is just a short guide for how to setup an easy setup. Nothing complicated, and no fancy-pancy setup. This example will show how to setup an domain example.tld with three sub domains and mail.<span id="more-45"></span></p>
<p>I know subdomains can be setup as wildcards, CNAME and A-records, but right now I use A-record for the subdomains.  To just get it going we will consentrate of just getting it working with the following configuration.</p>
<blockquote><p>Domain: example.tld<br />
Subdomains: mail, admin, mysql<br />
IP: 1.2.3.4</p></blockquote>
<p>Now we will start by adding the domain to the named.conf &#8211; Though it might not be present at this path you might need to search for it. (Using for example webmin would help you show all configuration files).</p>
<blockquote><p># vi /etc/named.conf</p></blockquote>
<p>Add a new zone to named.conf</p>
<blockquote><p>zone &#8220;example.tld&#8221; {<br />
type master;<br />
file &#8220;/var/named/example.tld.hosts&#8221;;<br />
};</p></blockquote>
<p>Save the configuration</p>
<blockquote><p>Push escape, then : x</p></blockquote>
<p>The next step is creating the DNS records.  Add a new file to bind.</p>
<blockquote><p># vi /var/named/example.tld.hosts</p></blockquote>
<p>In this file you will create your DNS-records.</p>
<blockquote><p>$ttl 15m ; TTL Might be smart to have at 15 minutes until your conf are ok<br />
example.tld.	IN	SOA	ns.example.tld. user.example.tld. (<br />
123456789 ;An unique number<br />
86000 ;Refresh rate in seconds<br />
7200 ;Update Retry in seconds<br />
3600000 ;Expiry in seconds<br />
600 ; minimum in seconds<br />
)</p>
<p>example.tld.	IN	NS	ns.example.tld.<br />
example.tld.   IN      A    1.2.3.4<br />
www.example.tld.    IN    CNAME example.tld<br />
mail IN A 1.2.3.4<br />
admin IN A 1.2.3.4<br />
mysql IN A 1.2.3.4<br />
mail.example.tld.	IN	MX	1 example.tld.</p></blockquote>
<p>Now save the file and restart BIND</p>
<blockquote><p># service bind restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.varslashlog.com/2008/10/30/how-to-setup-dns-in-bind/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
