<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=DHCP_Hostname_Entry_in_DNS</id>
	<title>DHCP Hostname Entry in DNS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=DHCP_Hostname_Entry_in_DNS"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=DHCP_Hostname_Entry_in_DNS&amp;action=history"/>
	<updated>2026-04-08T01:03:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=DHCP_Hostname_Entry_in_DNS&amp;diff=100&amp;oldid=prev</id>
		<title>Erik: Copy from old</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=DHCP_Hostname_Entry_in_DNS&amp;diff=100&amp;oldid=prev"/>
		<updated>2009-06-03T02:04:13Z</updated>

		<summary type="html">&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;</summary>
		<author><name>Erik</name></author>
	</entry>
</feed>