Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 2008 16:14:18 -0700 (PDT)
From:      Roberto de Sousa <r_de_sousa@yahoo.com>
To:        Henri Hennebert <hlh@restart.be>
Cc:        freebsd-net@freebsd.org
Subject:   Re: NSupdate from CLI
Message-ID:  <723811.95360.qm@web45207.mail.sp1.yahoo.com>

next in thread | raw e-mail | index | archive | help
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 <hlh@restart.be>=0ATo: Roberto de Sousa <r_de_sousa@yahoo.com>=
=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 <<EOF=0Aserver ${NSSERVER}=0Aupdate delete $MYNAME. A=0Aupdate add ${MY=
NAME}. 60 A ${MYADDR}=0Asend=0AEOF=0A=0A=0AThe key can be generated by=0A=
=0Adnssec-keygen -a HMAC-MD5 -b 128 -n ENTITY password=0A=0ALe line Key: in=
 Kpassword.+157+xxxxxx.private=0Acontains a key witch can be used in place =
off XXXX...XXXX=3D=3D=0A=0AHenri=0A> =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&#39;s best email. Get Yahoo!7 Mail! http://au.yahoo.com/y7mail



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?723811.95360.qm>