Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update

Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update

Post by Mads Rav » Thu, 01 Jul 2004 02:27:13



Hi,

I'm trying to add some linux (redhat 9.0, kernel 2.4.20-8) boxes to our
Windows 2003 domain.
The dhcp server is running fine, and the linux clients are getting leases.
However they are not
getting added to the dns forward lookup zone.

The dhcp server is set up to register *all* client leases in the dns, even
for those who do not request so.

The dns server is set up to allow both secure & insecure updates.

I've tried googling for a solution and have tried:
1) Adding DHCP_HOSTNAME & HOSTNAME to the /etc/sysconfig/network
configuration file.
2) Modifying the /etc/sysconfig/network-scripts/ifup script replacing
<snip>
 if [ -n "${DYNCONFIG}" ]; then
        PUMPARGS=$PUMPARGS
        DHCPCDARGS="$DHCPCDARGS -n"
        if [ -n "${DHCP_HOSTNAME}" ]; then
           PUMPARGS="-h ${DHCP_HOSTNAME}"
           DHCPCDARGS="-h ${DHCP_HOSTNAME}"
</snip>
with
<snip>
 if [ -n "${DYNCONFIG}" ]; then
        PUMPARGS=$PUMPARGS
        DHCPCDARGS="$DHCPCDARGS -n"
        if [ -n "${DHCP_HOSTNAME}" ]; then
           PUMPARGS="--win-client-ident -h ${DHCP_HOSTNAME}"
           DHCPCDARGS="-h ${DHCP_HOSTNAME}"
</snip>
3) Using redhats GUI network configuration tool to set the values  - which I
believe more or less
    amounts to 1).

Still no luck. If anyone has any suggestions I would be very thankful to
hear from them.

Regards

Mads Ravn

 
 
 

1. dns update from dhcp server ok for windows clients, not ok for linux (dhclient) clients

Hi,

The subjects says it all (almost):

we have a linux dhcp server (dhcp-3.0pl1-26) happily distributing ip
adresses, and updating our dns server (on a separate linux server, running
bind bind-9.2.1-1.7x.2).

on our windows desktops, we have no problems: they request an ip adress,
obtain it, and via the dhcp server the dns gets updated.

however, i needed to configure a network interface of a linux machine via
dhcp, and although the ip adress is acquired and the network interface is
brought up, somehow the dns does not get updated.

we only allow dns updates from the dhcp server, and i am surprised why there
would be a difference between a linux machine using dhclient to request an
ip adress, and a windows machine.

the /var/log/messages shows no errors from either dns or bind, but a clue
could be that the DHCPREQUEST doesn't seem to send the machine's hostname,
whereas the windows client do seem to send it.

look at these log entries:

this is a windows machine

Aug  6 14:22:22 frontend dhcpd: DHCPREQUEST for 172.21.3.228 from
00:90:27:23:21:88 (atlantis) via eth0
Aug  6 14:22:22 frontend dhcpd: DHCPACK on 172.21.3.228 to 00:90:27:23:21:88
(atlantis) via eth0

and this is from the linux machine

Aug  6 14:35:46 frontend dhcpd: DHCPREQUEST for 172.21.3.250 (172.21.3.2)
from 00:0b:db:d5:5c:7e via eth0
Aug  6 14:35:46 frontend dhcpd: DHCPACK on 172.21.3.250 to 00:0b:db:d5:5c:7e
via eth0

as you can see, the hostname of the linux machine is not displayed after the
mac adress, whereas the windows machine does show it.

Any ideas on how to solve this annoying problem ?

thanks,

Tom.

2. Telnet as root??

3. Dynamic DNS not working with Solaris DHCP/DNS server and win clients

4. Dumb Terminals

5. MySQL under LinuxPPC?

6. DNS Problems on RedHat 8.0: Linux client, Windows DHCP server

7. Question about programs reading scripts

8. Win NT DHCP server & Linux dhcp client.

9. Dhcp problem between Linux DHCP Server & Linux client

10. Configure Red Hat 8 client to requeset DHCP server updates DNS entry

11. Dynamic DHCP server & several BOOTP clients interactions on the same LAN

12. Solaris 8 DHCP server & DNS updates