Dynamic DNS with DHCP and BIND 9
Dec 24, 2007 <p>Unfortunately, getting DHCP3 and BIND9 to work together is not quite
as easy as it could/should be. I found it really difficult to find any
decent examples, and the docs weren't much use. DHCP's man page fails to
actually explicitly tell you about certain options, instead you have to
guess them from the text. I've put this here in the hope that it might be
handy to some of you.</p>
<h2>Config Files</h2>
<p>The main two config files are <code>dhcpd.conf</code> and
<code>named.conf</code>. Here they are:</p>
; ; Name to address mappings follow. Address to name mappings can be found in ; home.hosts.rev ; ; Put any addresses you want fixed here. Dynamically set addresses will appear ; below. ; nadir.example.com IN A 192.168.0.254
; ; Fixed addresses, followed by DDNS inserted mappings. ; 254.0.168.192.in-addr.arpa. PTR nadir.example.com.
<li>Make sure your DHCP client sends it's hostname. Windows boxes do this
anyway, but lots of unix clients need to be told. So, for pump users, you need to
do <code>pump -h hostname</code>. If you use dhclient, then make sure you have a
line reading:
<pre>send host-name "hostname"</pre> in your <code>dhclient.conf</code>.</li>
</div>