Hi David, hi Koenraad, On Wed, Aug 18, 2010 at 01:58:02PM -0500, David C. Rankin wrote:
Peter, if you still have the wrapper script, I would like to get a copy. I have to update zones about once every six months or so and have to re-learn the nsupdate syntax each time. Having the wrapper script would be nice. If you could post a link I would be grateful. Thanks.
On Thu, Aug 19, 2010 at 08:27:41AM +0200, Koenraad Lelong wrote:
So, yes please I'm interested in that script. I'll also study nsupdate itself.
Here's the script attached. I wrote it in 2003-2006. Since then I didn't use it much, only once a year or so, and maybe the last time was in 2008. I hope it still works - but I think it will. You need to create a little conf file containing the filename of a key (e.g. the same as the DHCP server uses): # cat /etc/dnsupdate.conf /etc/Klocalkey.+157+55291.private Called without arguments, the script give some examples how it's used: # dnsupdate Usage examples: dnsupdate add host.domain. 86400 A 10.10.100.230 dnsupdate add 230.100.10.10.in-addr.arpa. 86400 IN PTR host.domain. dnsupdate delete host.domain. dnsupdate delete 230.100.10.10.in-addr.arpa PTR dnsupdate add nickname.domain. 86400 CNAME host.domain. dnsupdate delete nickname.domain. dnsupdate delete domain.tld. 3600 MX 20 mailsrv.domain.tld add -b as first argument to add/delete both forward/reverse mapping. the word 'update' is automatically inserted in the beginning. You usually want to use it with the -b option ("both"), unless you want to manipulate only a forward or reverse mapping, but not both. If you improve the script, I'd be happy to know about it. Thanks, Peter