Walter Mautner wrote:
> Stefan Bellon wrote:
[snip]
> > However there is one client in my network that isn't sending a
> > client-hostname in its DHCP request. Therefore the dynamic DNS
> > updating doesn't put it in my name server.
> >
> > What's the best way of dealing with this problem?
[snip]
> http://ops.ietf.org/dns/dynupd/secure-ddns-howto.html
> Look for " Setting the hostname for clients not sending the fqdn or
> host-name"
Thanks. I just noticed that the code fragment given in this howto is
even present in the Debian default configuration of dhcpd.conf but
commented out.
But it isn't what I'm looking for (or I don't understand how to apply
it to my problem). I'm not looking for a general solution for _many_
clients that are not sending the name but for _one_specific_ whose MAC
address I know and whom I want to assign a specific name.
My attempt (that didn't work) was this:
subnet 192.168.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option ntp-servers roma.localnet;
range 192.168.0.100 192.168.0.105;
host veni {
ethernet address xx:xx:xx:xx:xx:xx;
host-name "veni.localnet";
}
}
After reading your suggestion, I guess I could use this approach:
ddns-hostname = pick (option fqdn.hostname, option host-name,
"veni.localnet");
option host-name server.ddns-hostname;
subnet 192.168.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option ntp-servers roma.localnet;
range 192.168.0.100 192.168.0.105;
}
But this way not only the one with the specific MAC address but all
clients not sending the host name would get that host name.
--
Stefan Bellon