To bad, I am alone with the problem. Here's how we solved the Problem, and it
looks good in the Logs:
update-optimization false; # if false client will allways be renewed in DNS
(to be sure clients are updated)
update-conflict-detection true; # So no PC can overwrite a Servername
on commit {
if static {
# I trust my static leases, I wrote them.
log (info, "Static: do overwrite" );
update-conflict-detection false;
} else {
log (info, "Dynamic" );
set my-client-hostname=pick (config-option server.ddns-hostname,
option host-name, "noName");
log (info, my-client-hostname );
set HostName2 = ucase(substring (my-client-hostname,0,2));
set HostName3 = ucase(substring (my-client-hostname,0,3));
set HostName4 = ucase(substring (my-client-hostname,0,4));
#Only if the hostname is a PC, a printer or a remote inside port we
will overwirte the A Record
if (( HostName2 = "PC" ) or ( HostName3 = "RIB" ) or ( HostName4 =
"PRT[0-9]" )) {
log (info, concat ("DDNS map for ", client-hostname ));
update-conflict-detection false; # It's save to overwrite the A
record of a PC
} else {
log (info, concat ("no DDNS map hostname: ", ddns-fwd-name, " from:
",binary-to-ascii(10,8,".",packet(24,4))));
ddns-hostname = null; #just to be sure no A-Record at all. You can
remark it if you have other valid DHCP Clients
}
}
}
In my Logs I see:
#this is just the WiFi
Sep 14 10:00:56 anlpn35 dhcpd: DDNS map for PC7345.wlan.oenb.co.at
Sep 14 10:00:56 anlpn35 dhcpd: Added new forward map from
PC7345.wlan.oenb.co.at to 172.20.129.165
Sep 14 10:00:56 anlpn35 dhcpd: Added reverse map from
165.129.20.172.in-addr.arpa. to PC7345.wlan.oenb.co.at
#this is the VPN
Sep 14 10:01:02 anlpn35 dhcpd: Added new forward map from
PC7345.ad.oenb.co.at to 172.20.31.119
Sep 14 10:01:02 anlpn35 dhcpd: Added reverse map from
119.31.20.172.in-addr.arpa. to PC7345.ad.oenb.co.at
#now I am Back on cable with my static lease
Sep 14 10:02:28 anlpn35 dhcpd: Added new forward map from
PC7345.ad.oenb.co.at to 10.105.90.45
Sep 14 10:02:28 anlpn35 dhcpd: Added reverse map from
45.90.105.10.in-addr.arpa. to PC7345.ad.oenb.co.at
And the DNS:
root@dns:~# dig +short PC7345.ad.oenb.co.at
172.20.31.119
root@dns:~# dig +short PC7345.ad.oenb.co.at
10.105.90.45
--
Sent from:
http://isc-dhcp-users.2343191.n4.nabble.com/_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users