Date: Tue, 28 Oct 2008 15:17:35 +0100 From: Henri Hennebert <hlh@restart.be> To: Roberto de Sousa <r_de_sousa@yahoo.com> Cc: freebsd-net@freebsd.org Subject: Re: NSupdate from CLI Message-ID: <49071EFF.1010806@restart.be> In-Reply-To: <723811.95360.qm@web45207.mail.sp1.yahoo.com> References: <723811.95360.qm@web45207.mail.sp1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------060304020409050900030702 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Roberto de Sousa wrote: > Hello Henri, > Thank you for your kindness to help me on this.. I have generated the > key and and edit my named.conf as per your instruction. I have also > tried your script which work great. What i would like to find out more > is that how to modify this script so that it provides flexibility > without having to specify the host in the script? > what i mean is that.. i could select add or delete option from CLI and > able to add any host to forward & Reversing Zone of my DNS from my > freeBSD CLI? <--- clip ---> What do you thing about the attached script ? Some more check of args may be usefull ... Henri --------------060304020409050900030702 Content-Type: text/plain; name="dnsupdate" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="dnsupdate" IyEvYmluL3NoCnVzYWdlICgpIHsKICAgIGVjaG8gJ1VzYWdlOiBkbnN1cGRhdGUgLWF8LWR8 LXUgPEhvc3ROYW1lPj08SVBfQWRkcmVzcz4nCiAgICBlY2hvICcJLWEJYWRkIEROUyBlbnRy eSBmb3IgPEhvc3ROYW1lPicKICAgIGVjaG8gJwktZAlkZWxldGUgRE5TIGVudHJ5IGZvciA8 SG9zdE5hbWU+JwogICAgZWNobyAnCS11CXVwZGF0ZSBETlMgZW50cnk8SG9zdE5hbWU+Jwp9 Ck5TU0VSVkVSPSd4eHgueHh4Lnh4eC54eHgnClRTSUc9J2hvc3QxLmV4YW1wbGUuY29tLjpY WFhYLi4uWFhYWD09JwojLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQpjYXNlICQjIGluCiAg ICAyKQk7OwogICAgKikgIHVzYWdlID4mMjsKCWV4aXQgMTs7CmVzY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UpIGVjaG8g c2VydmVyICR7TlNTRVJWRVJ9OwoJZGVsZXRlOwoJYWRkOwoJZWNobyBzZW5kOzsKZXNhYyB8 IC91c3IvYmluL25zdXBkYXRlIC15ICR7VFNJR30gMT4vZGV2L251bGwK --------------060304020409050900030702--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49071EFF.1010806>