1nsd-checkconf(8) nsd 4.3.9 nsd-checkconf(8)
2
3
4
6 nsd-checkconf - NSD configuration file checker.
7
9 nsd-checkconf [-v] [-f] [-h] [-o option] [-z zonename] [-p pattern] [-s
10 keyname] [-t tlsauthname] configfile
11
13 nsd-checkconf reads a configuration file. It prints parse errors to
14 standard error, and performs additional checks on the contents. The
15 configfile format is described in nsd.conf(5).
16
17 The utility of this program is to check a config file for errors before
18 using it in nsd(8). This program can also be used for shell scripts to
19 access the nsd config file, using the -o and -z options.
20
22 -v After reading print the options to standard output in configfile
23 format. Without this option, only success or parse errors are
24 reported.
25
26 -f Print full pathname when used with files, like with -o pidfile.
27 This includes the chroot in the way it is applied to the pid‐
28 file.
29
30 -h Print usage help information and exit.
31
32 -o option
33 Return only this option from the config file. This option can be
34 used in conjunction with the -z and the -p option, or without
35 them to query the server: section. The special value zones
36 prints out a list of configured zones. The special value pat‐
37 terns prints out a list of configured patterns.
38
39 This option can be used to parse the config file from the shell.
40 If the -z option is given, but the -o option is not given, noth‐
41 ing is printed.
42
43 -s keyname
44 Prints the key secret (base64 blob) configured for this key in
45 the config file. Used to help shell scripts parse the config
46 file.
47
48 -t tls-auth
49 Prints the authentication domain name configured for this tls-
50 auth clause in the config file. Used to help shell scripts parse
51 the config file.
52
53 -p pattern
54 Return the option specified with -o for the given pattern name.
55
56 -z zonename
57 Return the option specified with -o for zone 'zonename'.
58
59 If this option is not given, the server section of the config
60 file is used.
61
62 The -o, -s and -z option print configfile options to standard
63 output.
64
66 /etc/nsd/nsd.conf
67 default NSD configuration file
68
70 nsd(8), nsd.conf(5), nsd-control(8)
71
73 NSD was written by NLnet Labs and RIPE NCC joint team. Please see CRED‐
74 ITS file in the distribution for further details.
75
76
77
78NLnet Labs Dec 9, 2021 nsd-checkconf(8)