From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 13:35:18 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 C3A0A1065676 for ; Mon, 27 Oct 2008 13:35:18 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (unknown [IPv6:2001:41d0:1:2ad2:0:1::]) by mx1.freebsd.org (Postfix) with ESMTP id 566FF8FC1B for ; Mon, 27 Oct 2008 13:35:18 +0000 (UTC) (envelope-from hlh@restart.be) Received: from restart.be (avoriaz.tunnel.bel [IPv6:2001:41d0:1:2ad2:1:ffff::]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "avoriaz.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id CAB86E041F; Mon, 27 Oct 2008 14:35:16 +0100 (CET) Received: from morzine.restart.bel (morzine.restart.bel [IPv6:2001:41d0:1:2ad2:1:2::]) (authenticated bits=0) by restart.be (8.14.3/8.14.3) with ESMTP id m9RDZ8xZ097013; Mon, 27 Oct 2008 14:35:08 +0100 (CET) (envelope-from hlh@restart.be) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=restart.be; s=avoriaz; t=1225114516; bh=4PMHm6qyaOe1DC0KuRIEr62GxqfMAUf8oWeo0nM uvEk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=UUbxSBIXk56a ASJ3H/8L4Aee+W2bQs/O1OIwzKBrnVnGZV2qk2JD4x8lWmVd3Isf8rtEWOarim6oTX6 rpISz6w== DomainKey-Signature: a=rsa-sha1; s=avoriaz; d=restart.be; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:content-type: content-transfer-encoding:x-scanned-by; b=x0ds+G543FzrQRcxHdMuNtOGMTphLvHgg86N1wyyK2OZzbETLL8MM/slNddgO4yZX ggMYqrAflwCQTmjW5KIDg== Message-ID: <4905C38C.1090704@restart.be> Date: Mon, 27 Oct 2008 14:35:08 +0100 From: Henri Hennebert Organization: RestartSoft User-Agent: Thunderbird 2.0.0.17 (X11/20081004) MIME-Version: 1.0 To: Roberto de Sousa References: <184591.23555.qm@web45201.mail.sp1.yahoo.com> In-Reply-To: <184591.23555.qm@web45201.mail.sp1.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on IPv6:2001:41d0:1:2ad2:1:1:: 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 13:35:18 -0000 Roberto de Sousa wrote: > Hello all, > Can someone direct me where to go to find out example of how to create a script using nsupdate from CLI to add host to forward and reversing zone of DNS? > I am new to Unix and just installed my freeBSD box which running apache and BIND last month. > > Any advise or information will be highly appreciated. In your named.conf you have eg: zone "example.com" { type master; file "dynamic/db.example.com"; allow-update { key host1.example.com.; }; }; key "host1.example.com." { algorithm hmac-md5; secret "XXXX...XXXX=="; }; and on host1 you use this script: #!/bin/sh NSSERVER="xxx.xxx.xxx.xxx" MYNAME=host1.example.com MYADDR=$1 /usr/bin/nsupdate -y host1.example.com.:XXXX...XXXX== \ 1>/dev/null 2>&1 < > Thanks all. > > Roberto > > > buka wainhira la hatene, buka atu hatene liu tan > > abracos > > > > Make the switch to the world's best email. Get Yahoo!7 Mail! http://au.yahoo.com/y7mail > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"