bind  9.16.7
About: BIND 9.16 implements the Domain Name System (DNS) protocols for the Internet (see the Release Notes). Source code distribution.
  Fossies Dox: bind-9.16.7.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rndc-confgen.c File Reference
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <isc/assertions.h>
#include <isc/base64.h>
#include <isc/buffer.h>
#include <isc/commandline.h>
#include <isc/file.h>
#include <isc/mem.h>
#include <isc/net.h>
#include <isc/print.h>
#include <isc/result.h>
#include <isc/string.h>
#include <isc/time.h>
#include <isc/util.h>
#include <pk11/site.h>
#include <dns/keyvalues.h>
#include <dns/name.h>
#include <dst/dst.h>
#include <confgen/os.h>
#include "keygen.h"
#include "util.h"
Include dependency graph for rndc-confgen.c:

Go to the source code of this file.


#define DEFAULT_KEYNAME   "rndc-key"
#define DEFAULT_SERVER   ""
#define DEFAULT_PORT   953


int main (int argc, char **argv)


static char program [256]
const char * progname
bool verbose = false
const char * keyfile
const char * keydef

Macro Definition Documentation


#define DEFAULT_KEYNAME   "rndc-key"

rndc-confgen generates configuration files for rndc. It can be used as a convenient alternative to writing the rndc.conf file and the corresponding controls and key statements in named.conf by hand. Alternatively, it can be run with the -a option to set up a rndc.key file and avoid the need for a rndc.conf file and a controls statement altogether.

Definition at line 52 of file rndc-confgen.c.


#define DEFAULT_PORT   953

Definition at line 54 of file rndc-confgen.c.


#define DEFAULT_SERVER   ""

Definition at line 53 of file rndc-confgen.c.

Function Documentation

◆ main()

◆ usage()

static void usage ( int  status)

Definition at line 67 of file rndc-confgen.c.

References exit(), keydef, progname, and stderr.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ keydef

const char * keydef

Definition at line 61 of file rndc-confgen.c.

Referenced by main(), register_keys(), and usage().

◆ keyfile

◆ progname

const char* progname

Definition at line 57 of file rndc-confgen.c.

Referenced by main(), and usage().

◆ program

char program[256]

Definition at line 56 of file rndc-confgen.c.

Referenced by main().

◆ verbose

bool verbose = false

verbosity: set by -v and -q option in each program, defined in dnssectool.c

Definition at line 59 of file rndc-confgen.c.

Referenced by main().