Current-Users archive

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

rndc-confgen and ddns-confgen



Hi,

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 
tools
 
 .include "Makefile.inc"
 

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 <bsd.own.mk>
 
 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}/../Makefile.inc"
 
-DIST=${IDIST}/bin/rndc
+DIST=${IDIST}/bin/confgen
 CPPFLAGS+= -I${DIST}/include \
-        -DRNDC_CONFFILE=\"${SYSCONFDIR}/rndc.conf\" \
        -DRNDC_KEYFILE=\"${SYSCONFDIR}/rndc.key\" \
 
-
-.PATH: ${DIST}/unix ${DIST}
+.PATH: ${DIST} ${DIST}/unix
 
 .include <bsd.prog.mk>

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

src/distrib/sets/lists/base/mi
src/distrib/sets/lists/comp/mi
src/distrib/sets/lists/man/mi

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

NAME
       ddns-confgen - ddns key generation tool

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

DESCRIPTION
       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.


Bernd

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

.include <bsd.own.mk>

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

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

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

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

.include <bsd.prog.mk>


Home | Main Index | Thread Index | Old Index