On Thu, 07 Aug 2003 10:20:08 +0200, Tom Van Overbeke wrote:
> 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.
You need to use the "-h" flag with hostname on the dhcpcd_eth0 line in
/etc/conf.d/net. Like this:
dhcpcd_eth0="-N -R -h mylinuxboxname.fully.qualified.com"
This has to be set on each linux machine requesting dhcp service. It
passes its name request along to dhcpd, which in tern passes it along to
bind.
-Jeff
|