NSD 开源项目教程
1. 项目的目录结构及介绍
NSD(Name Server Daemon)是一个高性能的权威DNS服务器。以下是NSD项目的目录结构及其介绍:
nsd/
├── contrib/
├── debian/
├── dist/
├── nsd-control-setup.sh
├── nsd.service
├── nsd.conf.sample
├── nsd-patch.sh
├── README.md
├── RELEASE-NOTES
├── TODO
├── aclocal.m4
├── compile
├── config.guess
├── config.h.in
├── config.sub
├── configure
├── configure.ac
├── depcomp
├── install-sh
├── lib.mk
├── Makefile.in
├── missing
├── nsd.8
├── nsd-checkconf.8
├── nsd-checkconf.c
├── nsd-checkconf.h
├── nsd-checkzone.8
├── nsd-checkzone.c
├── nsd-checkzone.h
├── nsd-control.8
├── nsd-control.c
├── nsd-control.h
├── nsd-control-setup.8
├── nsd-control-setup.c
├── nsd-control-setup.h
├── nsd-notify.8
├── nsd-notify.c
├── nsd-notify.h
├── nsd-patch.8
├── nsd-patch.c
├── nsd-patch.h
├── nsd-xfer.8
├── nsd-xfer.c
├── nsd-xfer.h
├── nsd.conf.5
├── nsd.conf.in
├── nsd.h
├── nsd.c
├── nsd-zonec.8
├── nsd-zonec.c
├── nsd-zonec.h
├── nsdc.c
├── nsdc.h
├── nsd-test.c
├── nsd-test.h
├── pathtools.c
├── pathtools.h
├── pidfile.c
├── pidfile.h
├── rbtree.c
├── rbtree.h
├── tsig-openssl.c
├── tsig-openssl.h
├── util.c
├── util.h
├── xfrd.c
├── xfrd.h
├── zonec.c
├── zonec.h
└── zonec-disk.c
contrib/
: 包含一些辅助脚本和工具。debian/
: 包含用于Debian系统的打包文件。dist/
: 包含一些发布相关的文件。nsd-control-setup.sh
: 用于设置NSD控制工具的脚本。nsd.service
: systemd服务文件。nsd.conf.sample
: NSD配置文件的示例。nsd-patch.sh
: 用于打补丁的脚本。README.md
: 项目自述文件。RELEASE-NOTES
: 发布说明。TODO
: 待办事项。aclocal.m4
,compile
,config.guess
,config.h.in
,config.sub
,configure
,configure.ac
,depcomp
,install-sh
,lib.mk
,Makefile.in
,missing
: 用于构建系统的文件。nsd.8
,nsd-checkconf.8
,nsd-checkzone.8
,nsd-control.8
,nsd-control-setup.8
,nsd-notify.8
,nsd-patch.8
,nsd-xfer.8
,nsd-zonec.8
: 手册页文件。nsd.conf.5
,nsd.conf.in
: 配置文件相关的手册页和模板。nsd.h
,nsd.c
: NSD主程序的头文件和源代码。nsd-checkconf.c
,nsd-checkconf.h
,nsd-checkzone.c
,nsd-checkzone.h
,nsd-control.c
,nsd-control.h
,nsd-control-setup.c
,nsd-control-setup.h
,nsd-notify.c
,nsd-notify.h
,nsd-patch.c
,nsd-patch.h
,nsd-xfer.c
,nsd-xfer.h
,nsd-zonec.c
, `nsd