DHCP Hostname Entry in DNS

From SlackWiki
Revision as of 02:04, 3 June 2009 by Erik (talk | contribs) (Copy from old)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:

First, slack uses dhcpcd for a dhcp client. Looking through the options and testing revealed that all I needed to do was send a:

-h [hostname]

with the dhcpcd command. In order to get slack to do this, I had to edit:


and set:



/etc/rc.d/rc.inet1 restart

and everything worked!