Dynamic DNS - with perl
NOTE: This information is historic (as at May 2006)
DDNS (Dynamic Distributed Name Service) allows hosts to set their own IP address in the DNS namespace. When a VAS-enabled unix host joins a domain, it automatically appears in Active Directory as Kerberos principals and as LDAP computer objects, but not in DNS.
This topic covers tools for managing a host's entry in Active Directory's DNS.
nsupdate-gss
The SAMBA project has published a Perl script by Andrew Tridgell called nsupdate-gss. It modifies an entry in an Active Directory DNS server using a protocol extension to DNS.
# nsupdate-gss.pl host domain ip-addr ttl
The nsupdate-gss tool requires you to have installed Net::DNS version 0.44 or later, and Philip Guenther's perl GSSAPI, version 0.21 or later.
In addition, for correct use with VAS, you will need to apply the nsupdate-gss.vas.patch, available in the download table below. This patch causes the nsupdate-gss script to authenticate to the DNS server as the local computer account, instead of a normal user. That also means it has to be run as root on the host whose entry is being updated.
The patched components (nsupdate-gss and perl-GSSAPI) have been packaged below in as source RPMS. The can be converted into normal RPMs on your flavour of linux using the command
$ rpmbuild --rebuild file.src.rpm
Files
| Platform | Filename | Type | Size | Date | MD5 checksum? |
|---|---|---|---|---|---|
| Other ddns releases | |||||
| linux | nsupdate-gss-20050330-1vas.src.rpm | source | 5kB | 2006-01-22 | 5b231c7df0f4d34bf36d58879eba539f |
| perl-GSSAPI-0.13-1vas.src.rpm | source | 22kB | 2006-01-22 | a0e7bccb6e1044ecf1e5308327dad78a | |
| any | GSSAPI-0.13.tar.gz | source | 17kB | 2006-01-22 | d732e246de243c0df9240129a82ac482 |
| GSSAPI-vas.patch | source | 4kB | 2006-01-22 | effab49f7839d44f9259fa1620ee1778 | |
| nsupdate-gss | 7kB | 2006-01-22 | 18739e476e1ba8094e01098f9d7981c4 | ||
| nsupdate-gss.vas.patch | source | 650 B | 2006-01-22 | aa580e8a1498d8666e9c2fe26064c555 | |
— David Leonard