logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

nsd-checkconf.8 (2448B)


  1. .TH "nsd\-checkconf" "8" "Apr 6, 2021" "NLnet Labs" "nsd 4.3.6"
  2. .\" Copyright (c) 2001\-2008, NLnet Labs. All rights reserved.
  3. .\" See LICENSE for the license.
  4. .SH "NAME"
  5. .B nsd\-checkconf
  6. \- NSD configuration file checker.
  7. .SH "SYNOPSIS"
  8. .B nsd\-checkconf
  9. .RB [ \-v ]
  10. .RB [ \-f ]
  11. .RB [ \-h ]
  12. .RB [ \-o
  13. .IR option ]
  14. .RB [ \-z
  15. .IR zonename ]
  16. .RB [ \-p
  17. .IR pattern ]
  18. .RB [ \-s
  19. .IR keyname ]
  20. .I configfile
  21. .SH "DESCRIPTION"
  22. .B nsd\-checkconf
  23. reads a configuration file. It prints parse errors to standard
  24. error, and performs additional checks on the contents. The
  25. configfile format is described in nsd.conf(5).
  26. .P
  27. The utility of this program is to check a config file for errors before
  28. using it in nsd(8). This program can also be used for shell scripts to
  29. access the nsd config file, using the \-o and \-z options.
  30. .P
  31. .SH "OPTIONS"
  32. .TP
  33. .B \-v
  34. After reading print the options to standard output in configfile
  35. format. Without this option, only success or parse errors are
  36. reported.
  37. .TP
  38. .B \-f
  39. Print full pathname when used with files, like with \-o pidfile.
  40. This includes the chroot in the way it is applied to the pidfile.
  41. .TP
  42. .B \-h
  43. Print usage help information and exit.
  44. .TP
  45. .B \-o\fI option
  46. Return only this option from the config file. This option can
  47. be used in conjunction with the
  48. .B \-z
  49. and the
  50. .B \-p
  51. option, or without them to query the server: section.
  52. The special value
  53. .I zones
  54. prints out a list of configured zones.
  55. The special value
  56. .I patterns
  57. prints out a list of configured patterns.
  58. .P
  59. .RS
  60. This option can be used to parse the config file from the shell. If the
  61. .B \-z
  62. option is given, but the
  63. .B \-o
  64. option is not given, nothing is printed.
  65. .RE
  66. .TP
  67. .B \-s\fI keyname
  68. Prints the key secret (base64 blob) configured for this key in the
  69. config file. Used to help shell scripts parse the config file.
  70. .TP
  71. .B \-p\fI pattern
  72. Return the option specified with
  73. .B \-o
  74. for the given pattern name.
  75. .TP
  76. .B \-z\fI zonename
  77. Return the option specified with
  78. .B \-o
  79. for zone 'zonename'.
  80. .P
  81. .RS
  82. If this option is not given, the server section of the config file
  83. is used.
  84. .RE
  85. .P
  86. .RS
  87. The \-o, \-s and \-z option print configfile options to standard output.
  88. .RE
  89. .SH "FILES"
  90. .TP
  91. /etc/nsd/nsd.conf
  92. default
  93. .B NSD
  94. configuration file
  95. .SH "SEE ALSO"
  96. \fInsd\fR(8), \fInsd.conf\fR(5), \fInsd\-control\fR(8)
  97. .SH "AUTHORS"
  98. .B NSD
  99. was written by NLnet Labs and RIPE NCC joint team. Please see
  100. CREDITS file in the distribution for further details.