[TriLUG] *GASP* a linux problem :-) ddns, dhcpd

Tanner Lovelace lovelace at wayfarer.org
Thu Aug 1 10:21:52 EDT 2002


On Thu, 2002-08-01 at 10:05, Thunder Bear wrote:
> I'm running into a little problem at work and I'm wondering if anyone
> here has seen it before.  I've got an ISC dhcpd and named running on the
> same server.  It's all pretty much running well, with dhcpd updating
> named (aka ddns) for all of the Windows clients.  The problem is that
> none of the Linux clients are submitting their hostnames to dhcpd (or so
> it would appear in /var/log/messages).
> 
[... dhcp transaction removed ...]

> This is true of Mandrake & Red Hat clients.  None of them end up getting
> entries in the DNS tables because of this.  Anyone seen this before?
> 

Chris,

Check the file /etc/sysconfig/network-scripts/ifup and the man page
for dhcpcd (which, iirc, is the default dhcp client on redhat/mandrake).
I believe you need to set the DHCP_HOSTNAME in the
/etc/sysconfig/network file.  Note, however, that the script is 
setup to automatically strip the domainname from the hostname.
If you want the entire hostname+domainname sent, you'll need to
either not set the DOMAINNAME variable or remove the following lines
from /etc/sysconfig/network-scripts/ifup:

if [ "$DHCP_HOSTNAME" ] && [ "$DOMAINNAME" ]
then
     DHCP_HOSTNAME=`echo $DHCP_HOSTNAME | sed -e "s/\.$DOMAINNAME//g"`
fi

Hope that helps. 

Tanner

-- 
Tanner Lovelace | lovelace at wayfarer.org | http://wtl.wayfarer.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = A66C 8660 924F 5F8C 71DA  BDD0 CE09 4F8E DE76 39D4
GPG Key can be found at http://wtl.wayfarer.org/lovelace.gpg.asc
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
          Si hoc legere scis, nimium eruditionis habes.




More information about the TriLUG mailing list