Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rndc-confgen and ddns-confgen


maybe I miss something but how do you generate the rndc files
for named(8)?

There is a rndc-confgen(8) included in the bind source tree and
we seems ot not build it anymore.

I just added the rndc-confgen directory again without realizing
that it was there before:

Index: Makefile
RCS file: /cvsroot/src/external/bsd/bind/bin/Makefile,v
retrieving revision 1.3
diff -b -u -r1.3 Makefile
--- Makefile    11 Sep 2011 18:55:24 -0000      1.3
+++ Makefile    7 May 2012 21:37:18 -0000
@@ -1,6 +1,6 @@
 #      $NetBSD: Makefile,v 1.3 2011/09/11 18:55:24 christos Exp $
-SUBDIR= html dig host named nslookup nsupdate rndc dnssec check tools
+SUBDIR= html dig host named nslookup nsupdate rndc rndc-confgen dnssec check 
 .include ""

And wrote the Makefile, by using the rndc one as an example, so the diff
to rev 1.1 was not too big after I noticed that my new directory had
a CVS directory inside when I did a cvs update (full 'new' Makefile
is attached to this mail):

--- src/external/bsd/bind/bin/rndc-confgen/Makefile     2009-04-12 
05:46:06.000000000 +0200
+++ Makefile    2012-04-30 21:07:39.000000000 +0200
@@ -3,18 +3,16 @@
 .include <>
 PROG=  rndc-confgen
-SRCS=  rndc-confgen.c util.c os.c
+SRCS=  rndc-confgen.c keygen.c util.c os.c
 MAN=   rndc-confgen.8
 BINDIR=        /usr/sbin
 .include "${.CURDIR}/../"
 CPPFLAGS+= -I${DIST}/include \
-        -DRNDC_CONFFILE=\"${SYSCONFDIR}/rndc.conf\" \
        -DRNDC_KEYFILE=\"${SYSCONFDIR}/rndc.key\" \
-.PATH: ${DIST}/unix ${DIST}
+.PATH: ${DIST} ${DIST}/unix
 .include <>

Of course it also needs to be added to the distrib sets again:


There is another tool in the confgen source dist directory which is not
build right now and seems to be not build in the past either: ddns-confgen

       ddns-confgen - ddns key generation tool

       ddns-confgen [-a algorithm] [-h] [-k keyname] [-r randomfile] [-s name
                    | -z zone] [-q] [name]

       ddns-confgen generates a key for use by nsupdate and named. It
       simplifies configuration of dynamic zones by generating a key and
       providing the nsupdate and named.conf syntax that will be needed to use
       it, including an example update-policy statement.


#       $NetBSD: Makefile,v 1.1 2009/04/12 03:46:06 christos Exp $

.include <>

PROG=   rndc-confgen
SRCS=   rndc-confgen.c keygen.c util.c os.c
MAN=    rndc-confgen.8
BINDIR= /usr/sbin

.include "${.CURDIR}/../"

CPPFLAGS+= -I${DIST}/include \
        -DRNDC_KEYFILE=\"${SYSCONFDIR}/rndc.key\" \

.PATH: ${DIST} ${DIST}/unix

.include <>

Home | Main Index | Thread Index | Old Index