<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>DHCP Hostname Entry in DNS - Revision history</title>
		<link>https://www.slackwiki.com/index.php?title=DHCP_Hostname_Entry_in_DNS&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.40.0</generator>
		<lastBuildDate>Wed, 08 Apr 2026 01:03:06 GMT</lastBuildDate>
		<item>
			<title>Erik: Copy from old</title>
			<link>https://www.slackwiki.com/index.php?title=DHCP_Hostname_Entry_in_DNS&amp;diff=100&amp;oldid=prev</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=DHCP_Hostname_Entry_in_DNS&amp;diff=100&amp;oldid=prev</guid>
			<description>&lt;p&gt;Copy from old&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Tips]]&lt;br /&gt;
&lt;br /&gt;
I have a Windows server that runs both the DNS server and DHCP server for my network.  When I added a Slackware box, I needed the Windows server to update DNS when the slack box obtained a DHCP lease.  Windows was already setup to do this, but the default slack install didn't send the correct information for the Windows DHCP server to setup the DNS A record.  Here is what I did to get slack to work:&lt;br /&gt;
&lt;br /&gt;
First, slack uses ''dhcpcd'' for a dhcp client.  Looking through the options and testing revealed that all I needed to do was send a:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;-h [hostname]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with the dhcpcd command.  In order to get slack to do this, I had to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/etc/rc.d/rc.inet1.conf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and set:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;DHCP_HOSTNAME[0]=[hostname]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/etc/rc.d/rc.inet1 restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and everything worked!&lt;/div&gt;</description>
			<pubDate>Wed, 03 Jun 2009 02:04:13 GMT</pubDate>
			<dc:creator>Erik</dc:creator>
			<comments>https://www.slackwiki.com/Talk:DHCP_Hostname_Entry_in_DNS</comments>
		</item>
</channel></rss>