<?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>Southern Bread &#187; dhcp</title>
	<atom:link href="http://www.southernbread.org/tag/dhcp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.southernbread.org</link>
	<description>Southern History, American Freedom, Christian Liberty</description>
	<lastBuildDate>Sat, 04 Feb 2012 21:12:04 +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>Linking DNS to DHCP</title>
		<link>http://www.southernbread.org/linking-dns-to-dhcp/</link>
		<comments>http://www.southernbread.org/linking-dns-to-dhcp/#comments</comments>
		<pubDate>Thu, 29 Jun 2006 10:59:00 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.southernbread.org/linux/1151513959.html</guid>
		<description><![CDATA[If you have an office full of windows desktops but despise using the builtin DNS/DHCP services that come with network operating systems like Netware and Windows, you can still use BIND and DHCPD to handle the dynamic hostnames. This really only makes sense if you have a decent naming convention for you desktops but that&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>If you have an office full of windows desktops but despise using the builtin DNS/DHCP services that come with network operating systems like Netware and Windows, you can still use BIND and DHCPD to handle the dynamic hostnames.  This really only makes sense if you have a decent naming convention for you desktops but that&#8217;s another matter.  What you want to do is give <b>dhcpd</b> dynamic update permissions to your internal zone.  I&#8217;m going to use a simple example of a <b>192.168.1.0/24</b> subnet all in a single DNS domain called <b>foo.com</b> and both BIND and DHCPD running on the same server (i.e. localhost).  Here is what you want your zones to look like in your <i>named.conf</i> file:</p>
<div class="code">
<pre><pre>
...
zone &quot;foo.com&quot;{
&nbsp;&nbsp;&nbsp;&nbsp;type master;
&nbsp;&nbsp;&nbsp;&nbsp;file &quot;db.foo&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;notify yes;
&nbsp;&nbsp;&nbsp;&nbsp;allow-update{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;localhost;
&nbsp;&nbsp;&nbsp;&nbsp;};
};
zone &quot;1.168.192.in-addr.arpa&quot;{
&nbsp;&nbsp;&nbsp;&nbsp;type master;
&nbsp;&nbsp;&nbsp;&nbsp;file &quot;db.192.168.1&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;allow-update{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;localhost;
&nbsp;&nbsp;&nbsp;&nbsp;};
};
...
</pre></pre>
</div>
<p>This gives processes running on localhost the ability to make ddns updates on those zones.  Just change &#8220;localhost;&#8221; to whatever host <b>dhcpd</b> is bound to if it isn&#8217;t running on the same server.  You can also specify multiple hosts or a whole subnet using the &#8220;192.168.1.0/24&#8243; format.   After you have configured BIND it&#8217;s time to tell <b>dhcpd</b> where to send updates.  You do this by adding the following to your <i>dhcpd.conf</i> file:</p>
<div class="code">
<pre><pre>
ddns-update-style&nbsp;&nbsp; interim;
...
subnet 192.168.1.0 netmask 255.255.255.0 {
&nbsp;&nbsp;...
&nbsp;&nbsp;ddns-updates on;
&nbsp;&nbsp;ddns-domainname &quot;foo.com.&quot;;
&nbsp;&nbsp;ddns-rev-domainname &quot;in-addr.arpa.&quot;;
&nbsp;&nbsp;...
}
...
zone foo.com. {
&nbsp;&nbsp;&nbsp;&nbsp;primary localhost;
}
zone 1.168.192.in-addr.arpa. {
&nbsp;&nbsp;&nbsp;&nbsp;primary localhost;
}
...
</pre></pre>
</div>
<p>This tells <b>dhcpd</b> where to send ddns update requests and for what domains.  Be sure to monitor your syslog as you fire everything up to make sure you aren&#8217;t getting any ddns errors from either of the two daemons.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.southernbread.org/linking-dns-to-dhcp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

