Quote:
Originally Posted by andrewdodsworth
I thought that would happen. Had a look at my own confs and read the man pages. I think possibly, unless your syntax is totally different that
should be . In any case in my setup I have 'allow client-updates;' Apart from trying that I'm out of suggestions - my setup is very simple - single DHCP/DNS server.
|
I've found that both syntax's are similar, and they both cause the same effect. Indeed this didn't make the dynamic dns to work neither, but at least i got a better dhcpd.conf =)
Now i've found that the function of dynamic dns is given by dhcpd.conf scripting.
I reached this website: where they say that this code would do the trick. I have already added it to the dhcpd.conf but with no luck at all. Maybe im missing something for the forward zone as the reverse is working great with this patch:
Code:
option oe-key code 159 = string;
option oe-gateway code 160 = ip-address;
on commit {
if (not static and
((config-option server.ddns-updates = null) or
(config-option server.ddns-updates != 0))) {
if exists oe-key {
set ddns-rev-name =
concat (binary-to-ascii (10, 8, ".",
reverse (1, leased-address)), ".",
pick (config-option server.ddns-rev-domainname,
"in-addr.arpa."));
set full-oe-key = option oe-key;
switch (ns-update (delete (IN, 25, ddns-rev-name, null),
add (IN, 25, ddns-rev-name, full-oe-key,
lease-time / 2)))
{
default:
unset ddns-rev-name;
break;
case NOERROR:
on release or expiry {
switch (ns-update (delete (IN, 25, ddns-rev-name, null))) {
case NOERROR:
unset ddns-rev-name;
break;
}
}
}
}
}
}
And now I get:
dhcpd: if ws7186.example.com IN TXT "31689186b29fce25f991728d8ec3e3b2af" rrset exists and ws7186.mrec.ar IN A 10.1.125.254 rrset exists delete ws7186.example.com IN A 10.1.125.254: success.
dhcpd: if ws7186.example.com IN A rrset doesn't exist delete ws7186.example.com IN TXT "31689186b29fce25f991728d8ec3e3b2af": success.
dhcpd: removed reverse map on 254.125.1.10.in-addr.arpa.
I insist that i've already probed that i can update any entry on the zone's, adding or deleting via nsupdate.
Thanks again,
Francisco