From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 23:14:19 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AA461065679 for ; Mon, 27 Oct 2008 23:14:19 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from n67.bullet.mail.sp1.yahoo.com (n67.bullet.mail.sp1.yahoo.com [98.136.44.47]) by mx1.freebsd.org (Postfix) with SMTP id 294188FC13 for ; Mon, 27 Oct 2008 23:14:19 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from [216.252.122.217] by n67.bullet.mail.sp1.yahoo.com with NNFMP; 27 Oct 2008 23:14:19 -0000 Received: from [69.147.65.158] by t2.bullet.sp1.yahoo.com with NNFMP; 27 Oct 2008 23:14:18 -0000 Received: from [127.0.0.1] by omp406.mail.sp1.yahoo.com with NNFMP; 27 Oct 2008 23:14:18 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 951089.36174.bm@omp406.mail.sp1.yahoo.com Received: (qmail 95694 invoked by uid 60001); 27 Oct 2008 23:14:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=KSdd2QzrNZ3HyCqVP1roxPE5lFZqNalWHgfUlUCSOaj7nRiQnp4+B9peOpUBdnBD2rhuLJvn/5VtgmlQMeVYh1aDIHfpnTmmE/xB+ZqF1NJ/M4c4RZGgPHxjreuZdWVL0VMo3nhTusrtgijqvQHq07cWkizSaxpIg7p7ReD6qLQ=; X-YMail-OSG: PzY2m6gVM1kz18BohqYAokfHeFxrm.F92QkV3F0hXnnoGRPgzZBmxP6tu6nd8wegndhu8buqceE0mReXYyHo3UOto4IAGoO3CFaQd3IPlwKSbj2UzuvsRVfXMnAFsWwNzuX0DaUbHrCugfo9BXQUy7nLAUxQe3lOgj9MiKQDPsCqQGCNksoUEAptXsQ- Received: from [122.109.214.56] by web45207.mail.sp1.yahoo.com via HTTP; Mon, 27 Oct 2008 16:14:18 PDT X-Mailer: YahooMailRC/1155.11 YahooMailWebService/0.7.247.3 Date: Mon, 27 Oct 2008 16:14:18 -0700 (PDT) From: Roberto de Sousa To: Henri Hennebert MIME-Version: 1.0 Message-ID: <723811.95360.qm@web45207.mail.sp1.yahoo.com> X-Mailman-Approved-At: Mon, 27 Oct 2008 23:16:43 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: NSupdate from CLI X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 23:14:19 -0000 Hello Henri,=0AThank you for your kindness to help me on this.. I have gene= rated the key and and edit my named.conf as per your instruction. I have al= so tried your script which work great. What i would like to find out more i= s that how to modify this script so that it provides flexibility without ha= ving to specify the host in the script? =0Awhat i mean is that.. i could se= lect add or delete option from CLI and able to add any host to forward & Re= versing Zone of my DNS from my freeBSD CLI?=0A=0AThanks again.=0A=0A=0ARega= rds,=0A=0ARoberto=0A=0A =0Abuka wainhira la hatene, buka atu hatene liu tan= =0A=0Aabracos =0A=0A=0A=0A=0A________________________________=0AFrom: Henr= i Hennebert =0ATo: Roberto de Sousa = =0ACc: freebsd-net@freebsd.org=0ASent: Tuesday, 28 October, 2008 12:35:08 A= M=0ASubject: Re: NSupdate from CLI=0A=0ARoberto de Sousa wrote:=0A> Hello a= ll,=0A> Can someone direct me where to go to find out example of how to cre= ate a script using nsupdate from CLI to add host to forward and reversing z= one of DNS?=0A> I am new to Unix and just installed my freeBSD box which ru= nning apache and BIND last month.=0A> =0A> Any advise or information will b= e highly appreciated.=0A=0AIn your named.conf you have eg:=0A=0A zo= ne "example.com" {=0A type master;=0A file = "dynamic/db.example.com";=0A allow-update { key host1.examp= le.com.; };=0A };=0A key "host1.example.com." {=0A = algorithm hmac-md5;=0A secret "XXXX...XXXX=3D=3D";= =0A };=0A=0Aand on host1 you use this script:=0A=0A#!/bin/sh=0ANSSE= RVER=3D"xxx.xxx.xxx.xxx"=0AMYNAME=3Dhost1.example.com=0AMYADDR=3D$1=0A/usr/= bin/nsupdate -y host1.example.com.:XXXX...XXXX=3D=3D \=0A 1>/dev/null 2= >&1 < =0A> Thanks all.=0A> =0A> Roberto=0A> = =0A> =0A> buka wainhira la hatene, buka atu hatene liu tan =0A> =0A> abrac= os =0A> =0A> =0A> =0A> Make the switch to the world's best email. Get= Yahoo!7 Mail! http://au.yahoo.com/y7mail=0A> _____________________________= __________________=0A> freebsd-net@freebsd.org mailing list=0A> http://list= s.freebsd.org/mailman/listinfo/freebsd-net=0A> To unsubscribe, send any mai= l to "freebsd-net-unsubscribe@freebsd.org"=0A=0A___________________________= ____________________=0Afreebsd-net@freebsd.org mailing list=0Ahttp://lists.= freebsd.org/mailman/listinfo/freebsd-net=0ATo unsubscribe, send any mail to= "freebsd-net-unsubscribe@freebsd.org"=0A=0A=0A=0A Make the switch to = the world's best email. Get Yahoo!7 Mail! http://au.yahoo.com/y7mail