On 22/03/10 13:08, Peter Chubb wrote:
Has anyone added scripts to dhcpd.conf to control DDNS AAAA records based on MAC address?
See ddns-hostname in dhcpd.conf(5). You can set it to an expression, see dhcp-eval(5). The vector "hardware" contains the MAC address. Note that you can log an expression, which is useful for debugging the expression. You just keep renewing the DHCP lease until the log looks good, then assign write the ddns-hostname clause. See this for the leading zero trick https://lists.isc.org/pipermail/dhcp-users/2009-January/007726.html and the remainder of that mailing list for fine info. In general though, I'd recommend against DHCPv6 outside of a residential ISP scenario (and even there the hosts will autoconf, it's the router which takes it's address from DHCPv6). Autoconf + stateles DHCPv6 seem to have much less difficulties. -- Glen Turner <http://www.gdt.id.au/~gdt/> -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html