Home › Forums › OS X Server and Client Discussion › DNS › DDNS on Leopard 10.5.7 server
After much trial and error I have DDNS half-way working. DNS appears to be updating but reverse DNS is not.
Using Lookup in the “Network Utility” tool I can resolve name with its IP but not IP to its name.
Anyone able to help out?
This is the error I get in the system.log when I have clients release and renew their DHCP lease; “dhcpd[147]: unable to add reverse map from 28.1.16.172.in-addr-arpa to client.home.lan: timed out”
Here is the configuration in dhcpd.conf file:
key DHCP-update-KEY {
algorithm hmac-md5;
secret N8Hk2RUFO84bEVl3uGTD2A==;
};
zone home.lan. {
# localhost running DNS server
primary 127.0.0.1;
key DHCP-update-KEY;
}
zone 1.16.172.in-addr.arpa. {
# localhost running DNS server
primary 127.0.0.1;
key DHCP-update-KEY;
}
Here’s the configuration in named.conf file:
key DHCP-update-KEY {
algorithm hmac-md5;
secret “N8Hk2RUFO84bEVl3uGTD2A==”;
};
zone “home.lan.” IN {
type master;
file “db.ayanami.lan.”;
allow-transfer {none; };
allow-update {key DHCP-update-KEY; };
};
zone “1.16.172.in-addr.arpa.” IN {
type master;
file “db.168.18.172.in-addr.arpa.”;
allow-transfer {none; };
allow-update {key DHCP-update-KEY; };
};
I started with the DDNS posting from here (https://www.afp548.com/article.php?story=20060529143335323&query=update%2Bdns) as a template.
I could not install dhcpd per the instructions but managed port it after installing Macports.
The key file method would not work since the syntax in dhcpd.conf and named.conf appear to be different, quotes are required for the secret entry in the named.conf file but no quotes in the dhcpd.conf file. Ended up typing out the complete key field into each conf files per above.
Additional Note:
I noticed the jnl file is created for the home.lan zone but not the 1.16.172.in-addr.arpa zone.
Is this the problem? If so, what will need to be done so it gets created and updated?