Import NetBSD named(8)
Also known as ISC bind. This import adds utilities such as host(1), dig(1), and nslookup(1), as well as many other tools and libraries. Change-Id: I035ca46e64f1965d57019e773f4ff0ef035e4aa3
This commit is contained in:
parent
9f20bfa6c4
commit
00b67f09dd
|
|
@ -114,6 +114,13 @@
|
||||||
./etc/mtree/NetBSD.dist minix-base
|
./etc/mtree/NetBSD.dist minix-base
|
||||||
./etc/mtree/set.minix-base minix-base
|
./etc/mtree/set.minix-base minix-base
|
||||||
./etc/mtree/special minix-base
|
./etc/mtree/special minix-base
|
||||||
|
./etc/named.conf minix-base
|
||||||
|
./etc/namedb minix-base
|
||||||
|
./etc/namedb/127 minix-base
|
||||||
|
./etc/namedb/bind.keys minix-base
|
||||||
|
./etc/namedb/localhost minix-base
|
||||||
|
./etc/namedb/loopback.v6 minix-base
|
||||||
|
./etc/namedb/root.cache minix-base
|
||||||
./etc/nsswitch.conf minix-base
|
./etc/nsswitch.conf minix-base
|
||||||
./etc/openssl minix-base crypto
|
./etc/openssl minix-base crypto
|
||||||
./etc/openssl/certs minix-base crypto
|
./etc/openssl/certs minix-base crypto
|
||||||
|
|
@ -145,6 +152,7 @@
|
||||||
./etc/rc.d/minixrc minix-base
|
./etc/rc.d/minixrc minix-base
|
||||||
./etc/rc.d/mountcritlocal minix-base
|
./etc/rc.d/mountcritlocal minix-base
|
||||||
./etc/rc.d/mountcritremote minix-base
|
./etc/rc.d/mountcritremote minix-base
|
||||||
|
./etc/rc.d/named minix-base
|
||||||
./etc/rc.d/network minix-base
|
./etc/rc.d/network minix-base
|
||||||
./etc/rc.d/npf minix-base
|
./etc/rc.d/npf minix-base
|
||||||
./etc/rc.d/pwcheck minix-base
|
./etc/rc.d/pwcheck minix-base
|
||||||
|
|
@ -297,6 +305,7 @@
|
||||||
./usr/bin/add_route minix-base obsolete
|
./usr/bin/add_route minix-base obsolete
|
||||||
./usr/bin/apropos minix-base
|
./usr/bin/apropos minix-base
|
||||||
./usr/bin/arp minix-base obsolete
|
./usr/bin/arp minix-base obsolete
|
||||||
|
./usr/bin/arpaname minix-base
|
||||||
./usr/bin/asa minix-base
|
./usr/bin/asa minix-base
|
||||||
./usr/bin/at minix-base
|
./usr/bin/at minix-base
|
||||||
./usr/bin/atf-report minix-base atf
|
./usr/bin/atf-report minix-base atf
|
||||||
|
|
@ -350,12 +359,14 @@
|
||||||
./usr/bin/dd minix-base obsolete
|
./usr/bin/dd minix-base obsolete
|
||||||
./usr/bin/decomp16 minix-base obsolete
|
./usr/bin/decomp16 minix-base obsolete
|
||||||
./usr/bin/del_route minix-base obsolete
|
./usr/bin/del_route minix-base obsolete
|
||||||
|
./usr/bin/delv minix-base
|
||||||
./usr/bin/deroff minix-base
|
./usr/bin/deroff minix-base
|
||||||
./usr/bin/devmand minix-base
|
./usr/bin/devmand minix-base
|
||||||
./usr/bin/devsize minix-base
|
./usr/bin/devsize minix-base
|
||||||
./usr/bin/dhcpd minix-base obsolete
|
./usr/bin/dhcpd minix-base obsolete
|
||||||
./usr/bin/dhrystone minix-base
|
./usr/bin/dhrystone minix-base
|
||||||
./usr/bin/diff minix-base
|
./usr/bin/diff minix-base
|
||||||
|
./usr/bin/dig minix-base
|
||||||
./usr/bin/dirname minix-base
|
./usr/bin/dirname minix-base
|
||||||
./usr/bin/diskctl minix-base obsolete
|
./usr/bin/diskctl minix-base obsolete
|
||||||
./usr/bin/dosdir minix-base
|
./usr/bin/dosdir minix-base
|
||||||
|
|
@ -400,7 +411,7 @@
|
||||||
./usr/bin/gzip minix-base
|
./usr/bin/gzip minix-base
|
||||||
./usr/bin/head minix-base
|
./usr/bin/head minix-base
|
||||||
./usr/bin/hexdump minix-base
|
./usr/bin/hexdump minix-base
|
||||||
./usr/bin/host minix-base obsolete
|
./usr/bin/host minix-base
|
||||||
./usr/bin/hostaddr minix-base obsolete
|
./usr/bin/hostaddr minix-base obsolete
|
||||||
./usr/bin/id minix-base
|
./usr/bin/id minix-base
|
||||||
./usr/bin/ifconfig minix-base obsolete
|
./usr/bin/ifconfig minix-base obsolete
|
||||||
|
|
@ -484,6 +495,8 @@
|
||||||
./usr/bin/nohup minix-base
|
./usr/bin/nohup minix-base
|
||||||
./usr/bin/nonamed minix-base obsolete
|
./usr/bin/nonamed minix-base obsolete
|
||||||
./usr/bin/nroff minix-base
|
./usr/bin/nroff minix-base
|
||||||
|
./usr/bin/nslookup minix-base
|
||||||
|
./usr/bin/nsupdate minix-base
|
||||||
./usr/bin/od minix-base
|
./usr/bin/od minix-base
|
||||||
./usr/bin/openssl minix-base crypto
|
./usr/bin/openssl minix-base crypto
|
||||||
./usr/bin/page minix-base
|
./usr/bin/page minix-base
|
||||||
|
|
@ -783,6 +796,9 @@
|
||||||
./usr/lib/libatf-c_pic.a minix-base atf
|
./usr/lib/libatf-c_pic.a minix-base atf
|
||||||
./usr/lib/libbfd.so.13.0 minix-base binutils
|
./usr/lib/libbfd.so.13.0 minix-base binutils
|
||||||
./usr/lib/libbfd.so.13 minix-base binutils
|
./usr/lib/libbfd.so.13 minix-base binutils
|
||||||
|
./usr/lib/libbind9.so minix-base
|
||||||
|
./usr/lib/libbind9.so.8 minix-base
|
||||||
|
./usr/lib/libbind9.so.8.2 minix-base
|
||||||
./usr/lib/libblacklist.a minix-base
|
./usr/lib/libblacklist.a minix-base
|
||||||
./usr/lib/libblacklist.so minix-base
|
./usr/lib/libblacklist.so minix-base
|
||||||
./usr/lib/libblacklist.so.0 minix-base
|
./usr/lib/libblacklist.so.0 minix-base
|
||||||
|
|
@ -820,6 +836,9 @@
|
||||||
./usr/lib/libdes.so.8 minix-base crypto
|
./usr/lib/libdes.so.8 minix-base crypto
|
||||||
./usr/lib/libdes.so minix-base crypto
|
./usr/lib/libdes.so minix-base crypto
|
||||||
./usr/lib/libdes_pic.a minix-base crypto
|
./usr/lib/libdes_pic.a minix-base crypto
|
||||||
|
./usr/lib/libdns.so minix-base
|
||||||
|
./usr/lib/libdns.so.8 minix-base
|
||||||
|
./usr/lib/libdns.so.8.2 minix-base
|
||||||
./usr/lib/libedit.so minix-base
|
./usr/lib/libedit.so minix-base
|
||||||
./usr/lib/libedit.so.3 minix-base
|
./usr/lib/libedit.so.3 minix-base
|
||||||
./usr/lib/libedit.so.3.1 minix-base
|
./usr/lib/libedit.so.3.1 minix-base
|
||||||
|
|
@ -856,6 +875,18 @@
|
||||||
./usr/lib/libintl.so minix-base
|
./usr/lib/libintl.so minix-base
|
||||||
./usr/lib/libintl.so.1 minix-base
|
./usr/lib/libintl.so.1 minix-base
|
||||||
./usr/lib/libintl.so.1.1 minix-base
|
./usr/lib/libintl.so.1.1 minix-base
|
||||||
|
./usr/lib/libirs.so minix-base
|
||||||
|
./usr/lib/libirs.so.8 minix-base
|
||||||
|
./usr/lib/libirs.so.8.2 minix-base
|
||||||
|
./usr/lib/libisc.so minix-base
|
||||||
|
./usr/lib/libisc.so.8 minix-base
|
||||||
|
./usr/lib/libisc.so.8.2 minix-base
|
||||||
|
./usr/lib/libisccc.so minix-base
|
||||||
|
./usr/lib/libisccc.so.8 minix-base
|
||||||
|
./usr/lib/libisccc.so.8.2 minix-base
|
||||||
|
./usr/lib/libisccfg.so minix-base
|
||||||
|
./usr/lib/libisccfg.so.8 minix-base
|
||||||
|
./usr/lib/libisccfg.so.8.2 minix-base
|
||||||
./usr/lib/libkvm.so minix-base
|
./usr/lib/libkvm.so minix-base
|
||||||
./usr/lib/libkvm.so.6 minix-base
|
./usr/lib/libkvm.so.6 minix-base
|
||||||
./usr/lib/libkvm.so.6.0 minix-base
|
./usr/lib/libkvm.so.6.0 minix-base
|
||||||
|
|
@ -869,6 +900,9 @@
|
||||||
./usr/lib/liblutok.so.2 minix-base kyua
|
./usr/lib/liblutok.so.2 minix-base kyua
|
||||||
./usr/lib/liblutok.so minix-base kyua
|
./usr/lib/liblutok.so minix-base kyua
|
||||||
./usr/lib/liblutok_pic.a minix-base kyua
|
./usr/lib/liblutok_pic.a minix-base kyua
|
||||||
|
./usr/lib/liblwres.so minix-base
|
||||||
|
./usr/lib/liblwres.so.8 minix-base
|
||||||
|
./usr/lib/liblwres.so.8.2 minix-base
|
||||||
./usr/lib/liblzma.so minix-base
|
./usr/lib/liblzma.so minix-base
|
||||||
./usr/lib/liblzma.so.1.1 minix-base obsolete
|
./usr/lib/liblzma.so.1.1 minix-base obsolete
|
||||||
./usr/lib/liblzma.so.1 minix-base obsolete
|
./usr/lib/liblzma.so.1 minix-base obsolete
|
||||||
|
|
@ -1041,8 +1075,17 @@
|
||||||
./usr/sbin/btrace minix-base
|
./usr/sbin/btrace minix-base
|
||||||
./usr/sbin/chown minix-base
|
./usr/sbin/chown minix-base
|
||||||
./usr/sbin/chroot minix-base
|
./usr/sbin/chroot minix-base
|
||||||
|
./usr/sbin/ddns-confgen minix-base
|
||||||
./usr/sbin/dev_mkdb minix-base
|
./usr/sbin/dev_mkdb minix-base
|
||||||
./usr/sbin/diskctl minix-base
|
./usr/sbin/diskctl minix-base
|
||||||
|
./usr/sbin/dnssec-dsfromkey minix-base
|
||||||
|
./usr/sbin/dnssec-importkey minix-base
|
||||||
|
./usr/sbin/dnssec-keyfromlabel minix-base
|
||||||
|
./usr/sbin/dnssec-keygen minix-base
|
||||||
|
./usr/sbin/dnssec-revoke minix-base
|
||||||
|
./usr/sbin/dnssec-settime minix-base
|
||||||
|
./usr/sbin/dnssec-signzone minix-base
|
||||||
|
./usr/sbin/dnssec-verify minix-base
|
||||||
./usr/sbin/download-vulnerability-list minix-base crypto
|
./usr/sbin/download-vulnerability-list minix-base crypto
|
||||||
./usr/sbin/fbdctl minix-base
|
./usr/sbin/fbdctl minix-base
|
||||||
./usr/sbin/group minix-base
|
./usr/sbin/group minix-base
|
||||||
|
|
@ -1055,11 +1098,18 @@
|
||||||
./usr/sbin/installboot_nbsd minix-base
|
./usr/sbin/installboot_nbsd minix-base
|
||||||
./usr/sbin/kernel minix-base
|
./usr/sbin/kernel minix-base
|
||||||
./usr/sbin/link minix-base
|
./usr/sbin/link minix-base
|
||||||
|
./usr/sbin/lwresd minix-base
|
||||||
./usr/sbin/makefs minix-base
|
./usr/sbin/makefs minix-base
|
||||||
./usr/sbin/mkfs.mfsv3 minix-base
|
./usr/sbin/mkfs.mfsv3 minix-base
|
||||||
./usr/sbin/mkproto minix-base
|
./usr/sbin/mkproto minix-base
|
||||||
./usr/sbin/mtree minix-base
|
./usr/sbin/mtree minix-base
|
||||||
|
./usr/sbin/named-checkconf minix-base
|
||||||
|
./usr/sbin/named-checkzone minix-base
|
||||||
|
./usr/sbin/named-compilezone minix-base
|
||||||
|
./usr/sbin/named-journalprint minix-base
|
||||||
|
./usr/sbin/named minix-base
|
||||||
./usr/sbin/newfs_mfs minix-base
|
./usr/sbin/newfs_mfs minix-base
|
||||||
|
./usr/sbin/nsec3hash minix-base
|
||||||
./usr/sbin/pkg_add minix-base crypto
|
./usr/sbin/pkg_add minix-base crypto
|
||||||
./usr/sbin/pkg_admin minix-base crypto
|
./usr/sbin/pkg_admin minix-base crypto
|
||||||
./usr/sbin/pkg_create minix-base crypto
|
./usr/sbin/pkg_create minix-base crypto
|
||||||
|
|
@ -1068,6 +1118,8 @@
|
||||||
./usr/sbin/postinstall minix-base
|
./usr/sbin/postinstall minix-base
|
||||||
./usr/sbin/pwd_mkdb minix-base
|
./usr/sbin/pwd_mkdb minix-base
|
||||||
./usr/sbin/rdate minix-base
|
./usr/sbin/rdate minix-base
|
||||||
|
./usr/sbin/rndc-confgen minix-base
|
||||||
|
./usr/sbin/rndc minix-base
|
||||||
./usr/sbin/service minix-base
|
./usr/sbin/service minix-base
|
||||||
./usr/sbin/services_mkdb minix-base
|
./usr/sbin/services_mkdb minix-base
|
||||||
./usr/sbin/syslogd minix-base
|
./usr/sbin/syslogd minix-base
|
||||||
|
|
@ -1132,6 +1184,19 @@
|
||||||
./usr/share/doc/psd/19.curses/win_st.c minix-base obsolete
|
./usr/share/doc/psd/19.curses/win_st.c minix-base obsolete
|
||||||
./usr/share/doc/reference/ref1/bzip2 minix-base
|
./usr/share/doc/reference/ref1/bzip2 minix-base
|
||||||
./usr/share/doc/reference/ref1/bzip2/manual.html minix-base
|
./usr/share/doc/reference/ref1/bzip2/manual.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8 minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9 minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch01.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch02.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch03.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch04.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch05.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch06.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch07.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch08.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.ch09.html minix-base
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm/Bv9ARM.html minix-base
|
||||||
./usr/share/doc/usd minix-base
|
./usr/share/doc/usd minix-base
|
||||||
./usr/share/doc/usd/03.shell minix-base obsolete
|
./usr/share/doc/usd/03.shell minix-base obsolete
|
||||||
./usr/share/doc/usd/03.shell/Makefile minix-base obsolete
|
./usr/share/doc/usd/03.shell/Makefile minix-base obsolete
|
||||||
|
|
@ -3841,6 +3906,20 @@
|
||||||
./usr/var/db/pkg minix-base
|
./usr/var/db/pkg minix-base
|
||||||
./usr/var/run minix-base
|
./usr/var/run minix-base
|
||||||
./var minix-base
|
./var minix-base
|
||||||
|
./var/chroot minix-base
|
||||||
|
./var/chroot/named minix-base
|
||||||
|
./var/chroot/named/dev minix-base
|
||||||
|
./var/chroot/named/etc minix-base
|
||||||
|
./var/chroot/named/etc/namedb minix-base
|
||||||
|
./var/chroot/named/etc/namedb/cache minix-base
|
||||||
|
./var/chroot/named/etc/namedb/keys minix-base
|
||||||
|
./var/chroot/named/usr minix-base
|
||||||
|
./var/chroot/named/usr/libexec minix-base
|
||||||
|
./var/chroot/named/var minix-base
|
||||||
|
./var/chroot/named/var/run minix-base
|
||||||
|
./var/chroot/named/var/run/lwresd minix-base
|
||||||
|
./var/chroot/named/var/run/named minix-base
|
||||||
|
./var/chroot/named/var/tmp minix-base
|
||||||
./var/db minix-base
|
./var/db minix-base
|
||||||
./var/db/obsolete minix-base
|
./var/db/obsolete minix-base
|
||||||
./var/db/obsolete/minix-base minix-base
|
./var/db/obsolete/minix-base minix-base
|
||||||
|
|
@ -3851,6 +3930,8 @@
|
||||||
./var/log minix-base
|
./var/log minix-base
|
||||||
./var/mail minix-base
|
./var/mail minix-base
|
||||||
./var/run minix-base
|
./var/run minix-base
|
||||||
|
./var/run/lwresd minix-base
|
||||||
|
./var/run/named minix-base
|
||||||
./var/spool minix-base
|
./var/spool minix-base
|
||||||
./var/spool/ftp minix-base
|
./var/spool/ftp minix-base
|
||||||
./var/spool/ftp/bin minix-base
|
./var/spool/ftp/bin minix-base
|
||||||
|
|
|
||||||
|
|
@ -1876,6 +1876,7 @@
|
||||||
./usr/lib/bc/libaudiodriver.a minix-comp bitcode
|
./usr/lib/bc/libaudiodriver.a minix-comp bitcode
|
||||||
./usr/lib/bc/libbdev.a minix-comp bitcode
|
./usr/lib/bc/libbdev.a minix-comp bitcode
|
||||||
./usr/lib/bc/libbfd.a minix-comp bitcode,binutils
|
./usr/lib/bc/libbfd.a minix-comp bitcode,binutils
|
||||||
|
./usr/lib/bc/libbind9.a minix-comp bitcode
|
||||||
./usr/lib/bc/libblacklist.a minix-comp bitcode
|
./usr/lib/bc/libblacklist.a minix-comp bitcode
|
||||||
./usr/lib/bc/libblockdriver.a minix-comp bitcode
|
./usr/lib/bc/libblockdriver.a minix-comp bitcode
|
||||||
./usr/lib/bc/libbz2.a minix-comp bitcode
|
./usr/lib/bc/libbz2.a minix-comp bitcode
|
||||||
|
|
@ -1891,6 +1892,7 @@
|
||||||
./usr/lib/bc/libddekit_usb_server.a minix-comp bitcode
|
./usr/lib/bc/libddekit_usb_server.a minix-comp bitcode
|
||||||
./usr/lib/bc/libdes.a minix-comp bitcode
|
./usr/lib/bc/libdes.a minix-comp bitcode
|
||||||
./usr/lib/bc/libdevman.a minix-comp bitcode
|
./usr/lib/bc/libdevman.a minix-comp bitcode
|
||||||
|
./usr/lib/bc/libdns.a minix-comp bitcode
|
||||||
./usr/lib/bc/libedit.a minix-comp bitcode
|
./usr/lib/bc/libedit.a minix-comp bitcode
|
||||||
./usr/lib/bc/libelf.a minix-comp bitcode
|
./usr/lib/bc/libelf.a minix-comp bitcode
|
||||||
./usr/lib/bc/libevent.a minix-comp bitcode
|
./usr/lib/bc/libevent.a minix-comp bitcode
|
||||||
|
|
@ -1906,10 +1908,15 @@
|
||||||
./usr/lib/bc/libiberty.a minix-comp bitcode,binutils
|
./usr/lib/bc/libiberty.a minix-comp bitcode,binutils
|
||||||
./usr/lib/bc/libinputdriver.a minix-comp bitcode
|
./usr/lib/bc/libinputdriver.a minix-comp bitcode
|
||||||
./usr/lib/bc/libintl.a minix-comp bitcode
|
./usr/lib/bc/libintl.a minix-comp bitcode
|
||||||
|
./usr/lib/bc/libirs.a minix-comp bitcode
|
||||||
|
./usr/lib/bc/libisc.a minix-comp bitcode
|
||||||
|
./usr/lib/bc/libisccc.a minix-comp bitcode
|
||||||
|
./usr/lib/bc/libisccfg.a minix-comp bitcode
|
||||||
./usr/lib/bc/libkvm.a minix-comp bitcode
|
./usr/lib/bc/libkvm.a minix-comp bitcode
|
||||||
./usr/lib/bc/libl.a minix-comp bitcode
|
./usr/lib/bc/libl.a minix-comp bitcode
|
||||||
./usr/lib/bc/liblua.a minix-comp bitcode
|
./usr/lib/bc/liblua.a minix-comp bitcode
|
||||||
./usr/lib/bc/liblwip.a minix-comp bitcode
|
./usr/lib/bc/liblwip.a minix-comp bitcode
|
||||||
|
./usr/lib/bc/liblwres.a minix-comp bitcode
|
||||||
./usr/lib/bc/liblzma.a minix-comp bitcode
|
./usr/lib/bc/liblzma.a minix-comp bitcode
|
||||||
./usr/lib/bc/libm.a minix-comp bitcode
|
./usr/lib/bc/libm.a minix-comp bitcode
|
||||||
./usr/lib/bc/libm387.a minix-comp bitcode
|
./usr/lib/bc/libm387.a minix-comp bitcode
|
||||||
|
|
@ -2002,6 +2009,8 @@
|
||||||
./usr/lib/libaudiodriver_pic.a minix-comp
|
./usr/lib/libaudiodriver_pic.a minix-comp
|
||||||
./usr/lib/libbdev.a minix-comp
|
./usr/lib/libbdev.a minix-comp
|
||||||
./usr/lib/libbdev_pic.a minix-comp
|
./usr/lib/libbdev_pic.a minix-comp
|
||||||
|
./usr/lib/libbind9.a minix-comp
|
||||||
|
./usr/lib/libbind9_pic.a minix-comp
|
||||||
./usr/lib/libblockdriver.a minix-comp
|
./usr/lib/libblockdriver.a minix-comp
|
||||||
./usr/lib/libblockdriver_pic.a minix-comp
|
./usr/lib/libblockdriver_pic.a minix-comp
|
||||||
./usr/lib/libbz2.a minix-comp
|
./usr/lib/libbz2.a minix-comp
|
||||||
|
|
@ -2026,6 +2035,8 @@
|
||||||
./usr/lib/libddekit_usb_server_pic.a minix-comp
|
./usr/lib/libddekit_usb_server_pic.a minix-comp
|
||||||
./usr/lib/libdevman.a minix-comp
|
./usr/lib/libdevman.a minix-comp
|
||||||
./usr/lib/libdevman_pic.a minix-comp
|
./usr/lib/libdevman_pic.a minix-comp
|
||||||
|
./usr/lib/libdns.a minix-comp
|
||||||
|
./usr/lib/libdns_pic.a minix-comp
|
||||||
./usr/lib/libedit.a minix-comp
|
./usr/lib/libedit.a minix-comp
|
||||||
./usr/lib/libedit_pic.a minix-comp
|
./usr/lib/libedit_pic.a minix-comp
|
||||||
./usr/lib/libelf.a minix-comp
|
./usr/lib/libelf.a minix-comp
|
||||||
|
|
@ -2054,6 +2065,14 @@
|
||||||
./usr/lib/libinputdriver_pic.a minix-comp
|
./usr/lib/libinputdriver_pic.a minix-comp
|
||||||
./usr/lib/libintl.a minix-comp
|
./usr/lib/libintl.a minix-comp
|
||||||
./usr/lib/libintl_pic.a minix-comp
|
./usr/lib/libintl_pic.a minix-comp
|
||||||
|
./usr/lib/libirs.a minix-comp
|
||||||
|
./usr/lib/libirs_pic.a minix-comp
|
||||||
|
./usr/lib/libisc.a minix-comp
|
||||||
|
./usr/lib/libisc_pic.a minix-comp
|
||||||
|
./usr/lib/libisccc.a minix-comp
|
||||||
|
./usr/lib/libisccc_pic.a minix-comp
|
||||||
|
./usr/lib/libisccfg.a minix-comp
|
||||||
|
./usr/lib/libisccfg_pic.a minix-comp
|
||||||
./usr/lib/libkvm.a minix-comp
|
./usr/lib/libkvm.a minix-comp
|
||||||
./usr/lib/libkvm_pic.a minix-comp
|
./usr/lib/libkvm_pic.a minix-comp
|
||||||
./usr/lib/libl.a minix-comp
|
./usr/lib/libl.a minix-comp
|
||||||
|
|
@ -2061,6 +2080,8 @@
|
||||||
./usr/lib/liblua_pic.a minix-comp
|
./usr/lib/liblua_pic.a minix-comp
|
||||||
./usr/lib/liblwip.a minix-comp
|
./usr/lib/liblwip.a minix-comp
|
||||||
./usr/lib/liblwip_pic.a minix-comp
|
./usr/lib/liblwip_pic.a minix-comp
|
||||||
|
./usr/lib/liblwres.a minix-comp
|
||||||
|
./usr/lib/liblwres_pic.a minix-comp
|
||||||
./usr/lib/liblzma.a minix-comp
|
./usr/lib/liblzma.a minix-comp
|
||||||
./usr/lib/liblzma_pic.a minix-comp
|
./usr/lib/liblzma_pic.a minix-comp
|
||||||
./usr/lib/libm.a minix-comp
|
./usr/lib/libm.a minix-comp
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
./usr/lib/libaudiodriver_g.a minix-debug debuglib
|
./usr/lib/libaudiodriver_g.a minix-debug debuglib
|
||||||
./usr/lib/libbdev_g.a minix-debug debuglib
|
./usr/lib/libbdev_g.a minix-debug debuglib
|
||||||
./usr/lib/libbfd_g.a minix-debug debuglib
|
./usr/lib/libbfd_g.a minix-debug debuglib
|
||||||
|
./usr/lib/libbind9_g.a minix-debug debuglib
|
||||||
./usr/lib/libblacklist_g.a minix-debug debuglib
|
./usr/lib/libblacklist_g.a minix-debug debuglib
|
||||||
./usr/lib/libblockdriver_g.a minix-debug debuglib
|
./usr/lib/libblockdriver_g.a minix-debug debuglib
|
||||||
./usr/lib/libbz2_g.a minix-debug debuglib
|
./usr/lib/libbz2_g.a minix-debug debuglib
|
||||||
|
|
@ -55,6 +56,7 @@
|
||||||
./usr/lib/libddekit_usb_server_g.a minix-debug debuglib
|
./usr/lib/libddekit_usb_server_g.a minix-debug debuglib
|
||||||
./usr/lib/libdes_g.a minix-debug debuglib
|
./usr/lib/libdes_g.a minix-debug debuglib
|
||||||
./usr/lib/libdevman_g.a minix-debug debuglib
|
./usr/lib/libdevman_g.a minix-debug debuglib
|
||||||
|
./usr/lib/libdns_g.a minix-debug debuglib
|
||||||
./usr/lib/libedit_g.a minix-debug debuglib
|
./usr/lib/libedit_g.a minix-debug debuglib
|
||||||
./usr/lib/libelf_g.a minix-debug debuglib
|
./usr/lib/libelf_g.a minix-debug debuglib
|
||||||
./usr/lib/libevent_g.a minix-debug debuglib
|
./usr/lib/libevent_g.a minix-debug debuglib
|
||||||
|
|
@ -72,11 +74,16 @@
|
||||||
./usr/lib/libiberty_g.a minix-debug debuglib
|
./usr/lib/libiberty_g.a minix-debug debuglib
|
||||||
./usr/lib/libinputdriver_g.a minix-debug debuglib
|
./usr/lib/libinputdriver_g.a minix-debug debuglib
|
||||||
./usr/lib/libintl_g.a minix-debug debuglib
|
./usr/lib/libintl_g.a minix-debug debuglib
|
||||||
|
./usr/lib/libirs_g.a minix-debug debuglib
|
||||||
|
./usr/lib/libisc_g.a minix-debug debuglib
|
||||||
|
./usr/lib/libisccc_g.a minix-debug debuglib
|
||||||
|
./usr/lib/libisccfg_g.a minix-debug debuglib
|
||||||
./usr/lib/libkvm_g.a minix-debug debuglib
|
./usr/lib/libkvm_g.a minix-debug debuglib
|
||||||
./usr/lib/libl_g.a minix-debug debuglib
|
./usr/lib/libl_g.a minix-debug debuglib
|
||||||
./usr/lib/liblua_g.a minix-debug debuglib
|
./usr/lib/liblua_g.a minix-debug debuglib
|
||||||
./usr/lib/liblutok_g.a minix-debug debuglib
|
./usr/lib/liblutok_g.a minix-debug debuglib
|
||||||
./usr/lib/liblwip_g.a minix-debug debuglib
|
./usr/lib/liblwip_g.a minix-debug debuglib
|
||||||
|
./usr/lib/liblwres_g.a minix-debug debuglib
|
||||||
./usr/lib/liblzma_g.a minix-debug debuglib
|
./usr/lib/liblzma_g.a minix-debug debuglib
|
||||||
./usr/lib/libm_g.a minix-debug debuglib
|
./usr/lib/libm_g.a minix-debug debuglib
|
||||||
./usr/lib/libmagic_g.a minix-debug debuglib
|
./usr/lib/libmagic_g.a minix-debug debuglib
|
||||||
|
|
@ -218,6 +225,7 @@
|
||||||
./usr/libdata/debug/usr/bin/apropos.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/apropos.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/ar.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/ar.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/arp.debug minix-debug debug,obsolete
|
./usr/libdata/debug/usr/bin/arp.debug minix-debug debug,obsolete
|
||||||
|
./usr/libdata/debug/usr/bin/arpaname.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/as.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/as.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/asa.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/asa.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/at.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/at.debug minix-debug debug
|
||||||
|
|
@ -256,12 +264,14 @@
|
||||||
./usr/libdata/debug/usr/bin/csplit.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/csplit.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/ctags.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/ctags.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/cut.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/cut.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/bin/delv.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/deroff.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/deroff.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/devmand.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/devmand.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/devsize.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/devsize.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/dhcpd.debug minix-debug debug,obsolete
|
./usr/libdata/debug/usr/bin/dhcpd.debug minix-debug debug,obsolete
|
||||||
./usr/libdata/debug/usr/bin/dhrystone.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/dhrystone.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/diff.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/diff.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/bin/dig.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/dirname.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/dirname.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/dosread.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/dosread.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/du.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/du.debug minix-debug debug
|
||||||
|
|
@ -296,7 +306,7 @@
|
||||||
./usr/libdata/debug/usr/bin/gzip.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/gzip.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/head.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/head.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/hexdump.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/hexdump.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/host.debug minix-debug debug,obsolete
|
./usr/libdata/debug/usr/bin/host.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/hostaddr.debug minix-debug debug,obsolete
|
./usr/libdata/debug/usr/bin/hostaddr.debug minix-debug debug,obsolete
|
||||||
./usr/libdata/debug/usr/bin/id.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/id.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/ifconfig.debug minix-debug debug,obsolete
|
./usr/libdata/debug/usr/bin/ifconfig.debug minix-debug debug,obsolete
|
||||||
|
|
@ -369,6 +379,8 @@
|
||||||
./usr/libdata/debug/usr/bin/nm.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/nm.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/nohup.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/nohup.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/nonamed.debug minix-debug debug,obsolete
|
./usr/libdata/debug/usr/bin/nonamed.debug minix-debug debug,obsolete
|
||||||
|
./usr/libdata/debug/usr/bin/nslookup.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/bin/nsupdate.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/objcopy.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/objcopy.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/objdump.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/objdump.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/bin/openssl.debug minix-debug debug
|
./usr/libdata/debug/usr/bin/openssl.debug minix-debug debug
|
||||||
|
|
@ -532,6 +544,7 @@
|
||||||
./usr/libdata/debug/usr/lib/libatf-c++.so.1.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libatf-c++.so.1.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libatf-c.so.0.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libatf-c.so.0.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libbfd.so.13.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libbfd.so.13.0.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/lib/libbind9.so.8.2.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libblacklist.so.0.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libblacklist.so.0.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libbz2.so.1.1.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libbz2.so.1.1.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libc++.so.1.0.debug minix-debug libcxx,debug
|
./usr/libdata/debug/usr/lib/libc++.so.1.0.debug minix-debug libcxx,debug
|
||||||
|
|
@ -540,6 +553,7 @@
|
||||||
./usr/libdata/debug/usr/lib/libcrypto.so.8.4.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libcrypto.so.8.4.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libcurses.so.7.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libcurses.so.7.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libdes.so.8.2.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libdes.so.8.2.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/lib/libdns.so.8.2.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libedit.so.3.1.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libedit.so.3.1.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libelf.so.1.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libelf.so.1.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libevent.so.4.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libevent.so.4.0.debug minix-debug debug
|
||||||
|
|
@ -550,9 +564,14 @@
|
||||||
./usr/libdata/debug/usr/lib/libform.so.6.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libform.so.6.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libgcc_s.so.1.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libgcc_s.so.1.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libintl.so.1.1.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libintl.so.1.1.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/lib/libirs.so.8.2.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/lib/libisc.so.8.2.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/lib/libisccc.so.8.2.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/lib/libisccfg.so.8.2.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libkvm.so.6.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libkvm.so.6.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/liblua.so.5.3.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/liblua.so.5.3.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/liblutok.so.2.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/liblutok.so.2.0.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/lib/liblwres.so.8.2.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/liblzma.so.2.0.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/liblzma.so.2.0.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libm.so.0.11.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libm.so.0.11.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/lib/libmagic.so.5.1.debug minix-debug debug
|
./usr/libdata/debug/usr/lib/libmagic.so.5.1.debug minix-debug debug
|
||||||
|
|
@ -598,18 +617,33 @@
|
||||||
./usr/libdata/debug/usr/sbin/arp.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/arp.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/btrace.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/btrace.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/chroot.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/chroot.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/ddns-confgen.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/dev_mkdb.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/dev_mkdb.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/diskctl.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/diskctl.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/dnssec-dsfromkey.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/dnssec-importkey.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/dnssec-keyfromlabel.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/dnssec-keygen.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/dnssec-revoke.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/dnssec-settime.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/dnssec-signzone.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/dnssec-verify.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/fbdctl.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/fbdctl.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/i2cscan.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/i2cscan.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/inetd.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/inetd.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/installboot_nbsd.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/installboot_nbsd.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/kernel.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/kernel.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/link.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/link.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/lwresd.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/makefs.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/makefs.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/mkfs.mfsv3.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/mkfs.mfsv3.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/mkproto.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/mkproto.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/mtree.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/mtree.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/named-checkconf.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/named-checkzone.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/named-journalprint.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/named.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/nsec3hash.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/pkg_add.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/pkg_add.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/pkg_admin.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/pkg_admin.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/pkg_create.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/pkg_create.debug minix-debug debug
|
||||||
|
|
@ -617,6 +651,8 @@
|
||||||
./usr/libdata/debug/usr/sbin/pkg_info.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/pkg_info.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/pwd_mkdb.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/pwd_mkdb.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/rdate.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/rdate.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/rndc-confgen.debug minix-debug debug
|
||||||
|
./usr/libdata/debug/usr/sbin/rndc.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/services_mkdb.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/services_mkdb.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/syslogd.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/syslogd.debug minix-debug debug
|
||||||
./usr/libdata/debug/usr/sbin/traceroute.debug minix-debug debug
|
./usr/libdata/debug/usr/sbin/traceroute.debug minix-debug debug
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
./usr/man/man1/alias.1 minix-man
|
./usr/man/man1/alias.1 minix-man
|
||||||
./usr/man/man1/apropos.1 minix-man
|
./usr/man/man1/apropos.1 minix-man
|
||||||
./usr/man/man1/ar.1 minix-man binutils
|
./usr/man/man1/ar.1 minix-man binutils
|
||||||
|
./usr/man/man1/arpaname.1 minix-man
|
||||||
./usr/man/man1/as.1 minix-man binutils
|
./usr/man/man1/as.1 minix-man binutils
|
||||||
./usr/man/man1/asa.1 minix-man
|
./usr/man/man1/asa.1 minix-man
|
||||||
./usr/man/man1/ash.1 minix-man obsolete
|
./usr/man/man1/ash.1 minix-man obsolete
|
||||||
|
|
@ -78,10 +79,12 @@
|
||||||
./usr/man/man1/date.1 minix-man
|
./usr/man/man1/date.1 minix-man
|
||||||
./usr/man/man1/dd.1 minix-man
|
./usr/man/man1/dd.1 minix-man
|
||||||
./usr/man/man1/decomp16.1 minix-man obsolete
|
./usr/man/man1/decomp16.1 minix-man obsolete
|
||||||
|
./usr/man/man1/delv.1 minix-man
|
||||||
./usr/man/man1/deroff.1 minix-man
|
./usr/man/man1/deroff.1 minix-man
|
||||||
./usr/man/man1/df.1 minix-man
|
./usr/man/man1/df.1 minix-man
|
||||||
./usr/man/man1/dhrystone.1 minix-man
|
./usr/man/man1/dhrystone.1 minix-man
|
||||||
./usr/man/man1/diff.1 minix-man
|
./usr/man/man1/diff.1 minix-man
|
||||||
|
./usr/man/man1/dig.1 minix-man
|
||||||
./usr/man/man1/dirname.1 minix-man
|
./usr/man/man1/dirname.1 minix-man
|
||||||
./usr/man/man1/dirs.1 minix-man
|
./usr/man/man1/dirs.1 minix-man
|
||||||
./usr/man/man1/domainname.1 minix-man
|
./usr/man/man1/domainname.1 minix-man
|
||||||
|
|
@ -139,7 +142,7 @@
|
||||||
./usr/man/man1/head.1 minix-man
|
./usr/man/man1/head.1 minix-man
|
||||||
./usr/man/man1/hexdump.1 minix-man
|
./usr/man/man1/hexdump.1 minix-man
|
||||||
./usr/man/man1/history.1 minix-man
|
./usr/man/man1/history.1 minix-man
|
||||||
./usr/man/man1/host.1 minix-man obsolete
|
./usr/man/man1/host.1 minix-man
|
||||||
./usr/man/man1/hostaddr.1 minix-man obsolete
|
./usr/man/man1/hostaddr.1 minix-man obsolete
|
||||||
./usr/man/man1/hostname.1 minix-man
|
./usr/man/man1/hostname.1 minix-man
|
||||||
./usr/man/man1/id.1 minix-man
|
./usr/man/man1/id.1 minix-man
|
||||||
|
|
@ -245,6 +248,7 @@
|
||||||
./usr/man/man1/nl.1 minix-man
|
./usr/man/man1/nl.1 minix-man
|
||||||
./usr/man/man1/nm.1 minix-man binutils
|
./usr/man/man1/nm.1 minix-man binutils
|
||||||
./usr/man/man1/nohup.1 minix-man
|
./usr/man/man1/nohup.1 minix-man
|
||||||
|
./usr/man/man1/nsupdate.1 minix-man
|
||||||
./usr/man/man1/objcopy.1 minix-man binutils
|
./usr/man/man1/objcopy.1 minix-man binutils
|
||||||
./usr/man/man1/objdump.1 minix-man binutils
|
./usr/man/man1/objdump.1 minix-man binutils
|
||||||
./usr/man/man1/od.1 minix-man
|
./usr/man/man1/od.1 minix-man
|
||||||
|
|
@ -3310,6 +3314,7 @@
|
||||||
./usr/man/man5/magic.5 minix-man
|
./usr/man/man5/magic.5 minix-man
|
||||||
./usr/man/man5/man.conf.5 minix-man
|
./usr/man/man5/man.conf.5 minix-man
|
||||||
./usr/man/man5/mtree.5 minix-man
|
./usr/man/man5/mtree.5 minix-man
|
||||||
|
./usr/man/man5/named.conf.5 minix-man
|
||||||
./usr/man/man5/nsswitch.conf.5 minix-man
|
./usr/man/man5/nsswitch.conf.5 minix-man
|
||||||
./usr/man/man5/openssl.cnf.5 minix-man crypto
|
./usr/man/man5/openssl.cnf.5 minix-man crypto
|
||||||
./usr/man/man5/passwd.5 minix-man
|
./usr/man/man5/passwd.5 minix-man
|
||||||
|
|
@ -3320,6 +3325,7 @@
|
||||||
./usr/man/man5/resolvconf.conf.5 minix-man
|
./usr/man/man5/resolvconf.conf.5 minix-man
|
||||||
./usr/man/man5/resolver.5 minix-man
|
./usr/man/man5/resolver.5 minix-man
|
||||||
./usr/man/man5/rhosts.5 minix-man obsolete
|
./usr/man/man5/rhosts.5 minix-man obsolete
|
||||||
|
./usr/man/man5/rndc.conf.5 minix-man
|
||||||
./usr/man/man5/serv.access.5 minix-man obsolete
|
./usr/man/man5/serv.access.5 minix-man obsolete
|
||||||
./usr/man/man5/statvfs.5 minix-man
|
./usr/man/man5/statvfs.5 minix-man
|
||||||
./usr/man/man5/syslog.conf.5 minix-man
|
./usr/man/man5/syslog.conf.5 minix-man
|
||||||
|
|
@ -3395,12 +3401,21 @@
|
||||||
./usr/man/man8/cleantmp.8 minix-man
|
./usr/man/man8/cleantmp.8 minix-man
|
||||||
./usr/man/man8/config.8 minix-man
|
./usr/man/man8/config.8 minix-man
|
||||||
./usr/man/man8/cron.8 minix-man
|
./usr/man/man8/cron.8 minix-man
|
||||||
|
./usr/man/man8/ddns-confgen.8 minix-man
|
||||||
./usr/man/man8/dev_mkdb.8 minix-man
|
./usr/man/man8/dev_mkdb.8 minix-man
|
||||||
./usr/man/man8/devsize.8 minix-man
|
./usr/man/man8/devsize.8 minix-man
|
||||||
./usr/man/man8/dhcpcd-run-hooks.8 minix-man
|
./usr/man/man8/dhcpcd-run-hooks.8 minix-man
|
||||||
./usr/man/man8/dhcpcd.8 minix-man
|
./usr/man/man8/dhcpcd.8 minix-man
|
||||||
./usr/man/man8/dhcpd.8 minix-man obsolete
|
./usr/man/man8/dhcpd.8 minix-man obsolete
|
||||||
./usr/man/man8/diskctl.8 minix-man
|
./usr/man/man8/diskctl.8 minix-man
|
||||||
|
./usr/man/man8/dnssec-dsfromkey.8 minix-man
|
||||||
|
./usr/man/man8/dnssec-importkey.8 minix-man
|
||||||
|
./usr/man/man8/dnssec-keyfromlabel.8 minix-man
|
||||||
|
./usr/man/man8/dnssec-keygen.8 minix-man
|
||||||
|
./usr/man/man8/dnssec-revoke.8 minix-man
|
||||||
|
./usr/man/man8/dnssec-settime.8 minix-man
|
||||||
|
./usr/man/man8/dnssec-signzone.8 minix-man
|
||||||
|
./usr/man/man8/dnssec-verify.8 minix-man
|
||||||
./usr/man/man8/fbdctl.8 minix-man
|
./usr/man/man8/fbdctl.8 minix-man
|
||||||
./usr/man/man8/fdisk.8 minix-man
|
./usr/man/man8/fdisk.8 minix-man
|
||||||
./usr/man/man8/fingerd.8 minix-man
|
./usr/man/man8/fingerd.8 minix-man
|
||||||
|
|
@ -3427,11 +3442,17 @@
|
||||||
./usr/man/man8/irdpd.8 minix-man obsolete
|
./usr/man/man8/irdpd.8 minix-man obsolete
|
||||||
./usr/man/man8/link.8 minix-man
|
./usr/man/man8/link.8 minix-man
|
||||||
./usr/man/man8/loadramdisk.8 minix-man
|
./usr/man/man8/loadramdisk.8 minix-man
|
||||||
|
./usr/man/man8/lwresd.8 minix-man
|
||||||
./usr/man/man8/makefs.8 minix-man
|
./usr/man/man8/makefs.8 minix-man
|
||||||
./usr/man/man8/makewhatis.8 minix-man
|
./usr/man/man8/makewhatis.8 minix-man
|
||||||
./usr/man/man8/minix-service.8 minix-man
|
./usr/man/man8/minix-service.8 minix-man
|
||||||
./usr/man/man8/mknod.8 minix-man
|
./usr/man/man8/mknod.8 minix-man
|
||||||
./usr/man/man8/mtree.8 minix-man
|
./usr/man/man8/mtree.8 minix-man
|
||||||
|
./usr/man/man8/named-checkconf.8 minix-man
|
||||||
|
./usr/man/man8/named-checkzone.8 minix-man
|
||||||
|
./usr/man/man8/named-compilezone.8 minix-man
|
||||||
|
./usr/man/man8/named-journalprint.8 minix-man
|
||||||
|
./usr/man/man8/named.8 minix-man
|
||||||
./usr/man/man8/netconf.8 minix-man
|
./usr/man/man8/netconf.8 minix-man
|
||||||
./usr/man/man8/newfs_ext2fs.8 minix-man
|
./usr/man/man8/newfs_ext2fs.8 minix-man
|
||||||
./usr/man/man8/newfs_msdos.8 minix-man
|
./usr/man/man8/newfs_msdos.8 minix-man
|
||||||
|
|
@ -3440,6 +3461,8 @@
|
||||||
./usr/man/man8/newroot.8 minix-man obsolete
|
./usr/man/man8/newroot.8 minix-man obsolete
|
||||||
./usr/man/man8/nologin.8 minix-man
|
./usr/man/man8/nologin.8 minix-man
|
||||||
./usr/man/man8/nonamed.8 minix-man obsolete
|
./usr/man/man8/nonamed.8 minix-man obsolete
|
||||||
|
./usr/man/man8/nsec3hash.8 minix-man
|
||||||
|
./usr/man/man8/nslookup.8 minix-man
|
||||||
./usr/man/man8/ossdevlinks.8 minix-man obsolete
|
./usr/man/man8/ossdevlinks.8 minix-man obsolete
|
||||||
./usr/man/man8/part.8 minix-man
|
./usr/man/man8/part.8 minix-man
|
||||||
./usr/man/man8/partition.8 minix-man
|
./usr/man/man8/partition.8 minix-man
|
||||||
|
|
@ -3465,6 +3488,8 @@
|
||||||
./usr/man/man8/renice.8 minix-man
|
./usr/man/man8/renice.8 minix-man
|
||||||
./usr/man/man8/repartition.8 minix-man
|
./usr/man/man8/repartition.8 minix-man
|
||||||
./usr/man/man8/resolvconf.8 minix-man
|
./usr/man/man8/resolvconf.8 minix-man
|
||||||
|
./usr/man/man8/rndc-confgen.8 minix-man
|
||||||
|
./usr/man/man8/rndc.8 minix-man
|
||||||
./usr/man/man8/rotate.8 minix-man
|
./usr/man/man8/rotate.8 minix-man
|
||||||
./usr/man/man8/route.8 minix-man
|
./usr/man/man8/route.8 minix-man
|
||||||
./usr/man/man8/rshd.8 minix-man
|
./usr/man/man8/rshd.8 minix-man
|
||||||
|
|
|
||||||
|
|
@ -324,6 +324,7 @@ install-etc-files: .PHONY .MAKE check_DESTDIR MAKEDEV
|
||||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ inetd.conf \
|
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ inetd.conf \
|
||||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ mk.conf \
|
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ mk.conf \
|
||||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ motd \
|
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ motd \
|
||||||
|
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ named.conf \
|
||||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ nsswitch.conf \
|
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ nsswitch.conf \
|
||||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ rc.conf \
|
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ rc.conf \
|
||||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ shrc \
|
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ shrc \
|
||||||
|
|
@ -482,7 +483,7 @@ install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV
|
||||||
${INSTALL_FILE} -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${NETBSDSRCDIR}/etc/rc.capes/* ${DESTDIR}/etc/rc.capes
|
${INSTALL_FILE} -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${NETBSDSRCDIR}/etc/rc.capes/* ${DESTDIR}/etc/rc.capes
|
||||||
${INSTALL_FILE} -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${NETBSDSRCDIR}/minix/drivers/usb/usbd/usbd.conf ${DESTDIR}/etc/system.conf.d/usbd
|
${INSTALL_FILE} -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${NETBSDSRCDIR}/minix/drivers/usb/usbd/usbd.conf ${DESTDIR}/etc/system.conf.d/usbd
|
||||||
.endif # Minix/earm specific
|
.endif # Minix/earm specific
|
||||||
.for subdir in . defaults mtree rc.d root skel
|
.for subdir in . defaults mtree namedb rc.d root skel
|
||||||
${MAKEDIRTARGET} ${subdir} configinstall
|
${MAKEDIRTARGET} ${subdir} configinstall
|
||||||
.endfor
|
.endfor
|
||||||
${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/bsd/dhcpcd/sbin/dhcpcd configinstall
|
${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/bsd/dhcpcd/sbin/dhcpcd configinstall
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@
|
||||||
./etc/fonts/conf.d
|
./etc/fonts/conf.d
|
||||||
./etc/kyua
|
./etc/kyua
|
||||||
./etc/mtree
|
./etc/mtree
|
||||||
|
./etc/namedb
|
||||||
./etc/openssl
|
./etc/openssl
|
||||||
./etc/openssl/certs
|
./etc/openssl/certs
|
||||||
./etc/openssl/misc
|
./etc/openssl/misc
|
||||||
|
|
@ -187,6 +188,9 @@
|
||||||
./usr/share/doc/reference/ref1/kyua/kyua-atf-compat
|
./usr/share/doc/reference/ref1/kyua/kyua-atf-compat
|
||||||
./usr/share/doc/reference/ref1/kyua/kyua-cli
|
./usr/share/doc/reference/ref1/kyua/kyua-cli
|
||||||
./usr/share/doc/reference/ref1/kyua/kyua-testers
|
./usr/share/doc/reference/ref1/kyua/kyua-testers
|
||||||
|
./usr/share/doc/reference/ref8
|
||||||
|
./usr/share/doc/reference/ref8/bind9
|
||||||
|
./usr/share/doc/reference/ref8/bind9/arm
|
||||||
./usr/share/doc/usd
|
./usr/share/doc/usd
|
||||||
./usr/share/examples
|
./usr/share/examples
|
||||||
./usr/share/examples/atf
|
./usr/share/examples/atf
|
||||||
|
|
@ -693,6 +697,20 @@
|
||||||
./usr/var/db/pkg
|
./usr/var/db/pkg
|
||||||
./usr/var/run
|
./usr/var/run
|
||||||
./var
|
./var
|
||||||
|
./var/chroot
|
||||||
|
./var/chroot/named
|
||||||
|
./var/chroot/named/dev
|
||||||
|
./var/chroot/named/etc
|
||||||
|
./var/chroot/named/etc/namedb
|
||||||
|
./var/chroot/named/etc/namedb/cache mode=0775 uname=named gname=named
|
||||||
|
./var/chroot/named/etc/namedb/keys type=dir mode=0775 uname=named gname=named
|
||||||
|
./var/chroot/named/usr
|
||||||
|
./var/chroot/named/usr/libexec
|
||||||
|
./var/chroot/named/var
|
||||||
|
./var/chroot/named/var/run mode=0775 gname=named
|
||||||
|
./var/chroot/named/var/run/lwresd mode=0775 gname=named
|
||||||
|
./var/chroot/named/var/run/named mode=0775 gname=named
|
||||||
|
./var/chroot/named/var/tmp mode=01775 gname=named
|
||||||
./var/db
|
./var/db
|
||||||
./var/db/obsolete
|
./var/db/obsolete
|
||||||
./var/db/xdm
|
./var/db/xdm
|
||||||
|
|
@ -701,6 +719,8 @@
|
||||||
./var/heimdal
|
./var/heimdal
|
||||||
./var/mail mode=1777
|
./var/mail mode=1777
|
||||||
./var/run
|
./var/run
|
||||||
|
./var/run/lwresd mode=0775 gname=named
|
||||||
|
./var/run/named mode=0775 gname=named
|
||||||
./var/spool
|
./var/spool
|
||||||
./var/spool/ftp
|
./var/spool/ftp
|
||||||
./var/spool/ftp/bin
|
./var/spool/ftp/bin
|
||||||
|
|
|
||||||
78
etc/named.conf
Normal file
78
etc/named.conf
Normal file
|
|
@ -0,0 +1,78 @@
|
||||||
|
# $NetBSD: named.conf,v 1.7 2013/04/25 20:28:05 christos Exp $
|
||||||
|
|
||||||
|
# boot file for secondary name server
|
||||||
|
# Note that there should be one primary entry for each SOA record.
|
||||||
|
# If you cannot get DNSSEC to work, and you see the following message:
|
||||||
|
# DNSKEY: verify failed due to bad signature (keyid=19036): \
|
||||||
|
# RRSIG validity period has not begun
|
||||||
|
# Fix your clock. You can comment out the dnssec entries temporarily to
|
||||||
|
# get to an ntp server.
|
||||||
|
|
||||||
|
options {
|
||||||
|
directory "/etc/namedb";
|
||||||
|
dnssec-enable yes;
|
||||||
|
dnssec-validation auto;
|
||||||
|
dnssec-lookaside auto;
|
||||||
|
managed-keys-directory "keys";
|
||||||
|
bindkeys-file "bind.keys";
|
||||||
|
allow-recursion { localhost; localnets; };
|
||||||
|
|
||||||
|
#
|
||||||
|
# This forces all queries to come from port 53; might be
|
||||||
|
# needed for firewall traversals but should be avoided if
|
||||||
|
# at all possible because of the risk of spoofing attacks.
|
||||||
|
#
|
||||||
|
#query-source address * port 53;
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "." {
|
||||||
|
type hint;
|
||||||
|
file "root.cache";
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "localhost" {
|
||||||
|
type master;
|
||||||
|
file "localhost";
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "127.IN-ADDR.ARPA" {
|
||||||
|
type master;
|
||||||
|
file "127";
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
|
||||||
|
type master;
|
||||||
|
file "loopback.v6";
|
||||||
|
};
|
||||||
|
|
||||||
|
# example secondary server config:
|
||||||
|
#
|
||||||
|
# zone "Berkeley.EDU" {
|
||||||
|
# type slave;
|
||||||
|
# file "berkeley.edu.cache";
|
||||||
|
# masters {
|
||||||
|
# 128.32.130.11;
|
||||||
|
# 128.32.133.1;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
# zone "32.128.IN-ADDR.ARPA" {
|
||||||
|
# type slave;
|
||||||
|
# file "128.32.cache";
|
||||||
|
# masters {
|
||||||
|
# 128.32.130.11;
|
||||||
|
# 128.32.133.1;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
# example primary server config:
|
||||||
|
#
|
||||||
|
# zone "Berkeley.EDU" {
|
||||||
|
# type master;
|
||||||
|
# file "berkeley.edu";
|
||||||
|
# };
|
||||||
|
|
||||||
|
# zone "32.128.IN-ADDR.ARPA" {
|
||||||
|
# type master;
|
||||||
|
# file "128.32";
|
||||||
|
# };
|
||||||
11
etc/namedb/127
Normal file
11
etc/namedb/127
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
; $NetBSD: 127,v 1.4 2001/01/28 06:59:31 itojun Exp $
|
||||||
|
|
||||||
|
$TTL 3600
|
||||||
|
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
|
||||||
|
1999012100 ; Serial
|
||||||
|
3600 ; Refresh
|
||||||
|
300 ; Retry
|
||||||
|
3600000 ; Expire
|
||||||
|
3600 ) ; Minimum
|
||||||
|
IN NS localhost.
|
||||||
|
1.0.0 IN PTR localhost.
|
||||||
7
etc/namedb/Makefile
Normal file
7
etc/namedb/Makefile
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.3 2013/04/25 17:02:29 christos Exp $
|
||||||
|
|
||||||
|
CONFIGFILES= 127 root.cache localhost loopback.v6 bind.keys
|
||||||
|
FILESDIR= /etc/namedb
|
||||||
|
FILESMODE= 644
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
47
etc/namedb/bind.keys
Normal file
47
etc/namedb/bind.keys
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* $NetBSD: bind.keys,v 1.1 2013/04/25 17:02:29 christos Exp $ */
|
||||||
|
/* Id: bind.keys,v 1.7 2011-01-03 23:45:07 each Exp */
|
||||||
|
# The bind.keys file is used to override the built-in DNSSEC trust anchors
|
||||||
|
# which are included as part of BIND 9. As of the current release, the only
|
||||||
|
# trust anchors it contains are those for the DNS root zone ("."), and for
|
||||||
|
# the ISC DNSSEC Lookaside Validation zone ("dlv.isc.org"). Trust anchors
|
||||||
|
# for any other zones MUST be configured elsewhere; if they are configured
|
||||||
|
# here, they will not be recognized or used by named.
|
||||||
|
#
|
||||||
|
# The built-in trust anchors are provided for convenience of configuration.
|
||||||
|
# They are not activated within named.conf unless specifically switched on.
|
||||||
|
# To use the built-in root key, set "dnssec-validation auto;" in
|
||||||
|
# named.conf options. To use the built-in DLV key, set
|
||||||
|
# "dnssec-lookaside auto;". Without these options being set,
|
||||||
|
# the keys in this file are ignored.
|
||||||
|
#
|
||||||
|
# This file is NOT expected to be user-configured.
|
||||||
|
#
|
||||||
|
# These keys are current as of January 2011. If any key fails to
|
||||||
|
# initialize correctly, it may have expired. In that event you should
|
||||||
|
# replace this file with a current version. The latest version of
|
||||||
|
# bind.keys can always be obtained from ISC at https://www.isc.org/bind-keys.
|
||||||
|
|
||||||
|
managed-keys {
|
||||||
|
# ISC DLV: See https://www.isc.org/solutions/dlv for details.
|
||||||
|
# NOTE: This key is activated by setting "dnssec-lookaside auto;"
|
||||||
|
# in named.conf.
|
||||||
|
dlv.isc.org. initial-key 257 3 5 "BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2
|
||||||
|
brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+
|
||||||
|
1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5
|
||||||
|
ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URk
|
||||||
|
Y62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboM
|
||||||
|
QKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VSt
|
||||||
|
TDN0YUuWrBNh";
|
||||||
|
|
||||||
|
# ROOT KEY: See https://data.iana.org/root-anchors/root-anchors.xml
|
||||||
|
# for current trust anchor information.
|
||||||
|
# NOTE: This key is activated by setting "dnssec-validation auto;"
|
||||||
|
# in named.conf.
|
||||||
|
. initial-key 257 3 8 "AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjF
|
||||||
|
FVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoX
|
||||||
|
bfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaD
|
||||||
|
X6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpz
|
||||||
|
W5hOA2hzCTMjJPJ8LbqF6dsV6DoBQzgul0sGIcGOYl7OyQdXfZ57relS
|
||||||
|
Qageu+ipAdTTJ25AsRTAoub8ONGcLmqrAmRLKBP1dfwhYB4N7knNnulq
|
||||||
|
QxA+Uk1ihz0=";
|
||||||
|
};
|
||||||
12
etc/namedb/localhost
Normal file
12
etc/namedb/localhost
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
; $NetBSD: localhost,v 1.2 2000/05/19 13:07:37 sommerfeld Exp $
|
||||||
|
|
||||||
|
$TTL 3600
|
||||||
|
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
|
||||||
|
1999012100 ; Serial
|
||||||
|
3600 ; Refresh
|
||||||
|
300 ; Retry
|
||||||
|
3600000 ; Expire
|
||||||
|
3600 ) ; Minimum
|
||||||
|
IN NS localhost.
|
||||||
|
localhost. IN A 127.0.0.1
|
||||||
|
IN AAAA ::1
|
||||||
11
etc/namedb/loopback.v6
Normal file
11
etc/namedb/loopback.v6
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
; $NetBSD: loopback.v6,v 1.3 2002/01/22 03:27:24 itojun Exp $
|
||||||
|
|
||||||
|
$TTL 3600
|
||||||
|
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
|
||||||
|
1999012100 ; Serial
|
||||||
|
3600 ; Refresh
|
||||||
|
300 ; Retry
|
||||||
|
3600000 ; Expire
|
||||||
|
3600 ) ; Minimum
|
||||||
|
IN NS localhost.
|
||||||
|
IN PTR localhost.
|
||||||
91
etc/namedb/root.cache
Normal file
91
etc/namedb/root.cache
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
; $NetBSD: root.cache,v 1.18 2014/07/01 03:33:28 taca Exp $
|
||||||
|
; This file holds the information on root name servers needed to
|
||||||
|
; initialize cache of Internet domain name servers
|
||||||
|
; (e.g. reference this file in the "cache . <file>"
|
||||||
|
; configuration file of BIND domain name servers).
|
||||||
|
;
|
||||||
|
; This file is made available by InterNIC
|
||||||
|
; under anonymous FTP as
|
||||||
|
; file /domain/named.cache
|
||||||
|
; on server FTP.INTERNIC.NET
|
||||||
|
; -OR- RS.INTERNIC.NET
|
||||||
|
;
|
||||||
|
; last update: June 2, 2014
|
||||||
|
; related version of root zone: 2014060201
|
||||||
|
;
|
||||||
|
; formerly NS.INTERNIC.NET
|
||||||
|
;
|
||||||
|
. 3600000 IN NS A.ROOT-SERVERS.NET.
|
||||||
|
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
|
||||||
|
A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:BA3E::2:30
|
||||||
|
;
|
||||||
|
; FORMERLY NS1.ISI.EDU
|
||||||
|
;
|
||||||
|
. 3600000 NS B.ROOT-SERVERS.NET.
|
||||||
|
B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201
|
||||||
|
B.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:84::B
|
||||||
|
;
|
||||||
|
; FORMERLY C.PSI.NET
|
||||||
|
;
|
||||||
|
. 3600000 NS C.ROOT-SERVERS.NET.
|
||||||
|
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
|
||||||
|
C.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2::C
|
||||||
|
;
|
||||||
|
; FORMERLY TERP.UMD.EDU
|
||||||
|
;
|
||||||
|
. 3600000 NS D.ROOT-SERVERS.NET.
|
||||||
|
D.ROOT-SERVERS.NET. 3600000 A 199.7.91.13
|
||||||
|
D.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2D::D
|
||||||
|
;
|
||||||
|
; FORMERLY NS.NASA.GOV
|
||||||
|
;
|
||||||
|
. 3600000 NS E.ROOT-SERVERS.NET.
|
||||||
|
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
|
||||||
|
;
|
||||||
|
; FORMERLY NS.ISC.ORG
|
||||||
|
;
|
||||||
|
. 3600000 NS F.ROOT-SERVERS.NET.
|
||||||
|
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
|
||||||
|
F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2F::F
|
||||||
|
;
|
||||||
|
; FORMERLY NS.NIC.DDN.MIL
|
||||||
|
;
|
||||||
|
. 3600000 NS G.ROOT-SERVERS.NET.
|
||||||
|
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
|
||||||
|
;
|
||||||
|
; FORMERLY AOS.ARL.ARMY.MIL
|
||||||
|
;
|
||||||
|
. 3600000 NS H.ROOT-SERVERS.NET.
|
||||||
|
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
|
||||||
|
H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::803F:235
|
||||||
|
;
|
||||||
|
; FORMERLY NIC.NORDU.NET
|
||||||
|
;
|
||||||
|
. 3600000 NS I.ROOT-SERVERS.NET.
|
||||||
|
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
|
||||||
|
I.ROOT-SERVERS.NET. 3600000 AAAA 2001:7FE::53
|
||||||
|
;
|
||||||
|
; OPERATED BY VERISIGN, INC.
|
||||||
|
;
|
||||||
|
. 3600000 NS J.ROOT-SERVERS.NET.
|
||||||
|
J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
|
||||||
|
J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:C27::2:30
|
||||||
|
;
|
||||||
|
; OPERATED BY RIPE NCC
|
||||||
|
;
|
||||||
|
. 3600000 NS K.ROOT-SERVERS.NET.
|
||||||
|
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
|
||||||
|
K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7FD::1
|
||||||
|
;
|
||||||
|
; OPERATED BY ICANN
|
||||||
|
;
|
||||||
|
. 3600000 NS L.ROOT-SERVERS.NET.
|
||||||
|
L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42
|
||||||
|
L.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:3::42
|
||||||
|
;
|
||||||
|
; OPERATED BY WIDE
|
||||||
|
;
|
||||||
|
. 3600000 NS M.ROOT-SERVERS.NET.
|
||||||
|
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
|
||||||
|
M.ROOT-SERVERS.NET. 3600000 AAAA 2001:DC3::35
|
||||||
|
; End of File
|
||||||
|
|
@ -40,7 +40,7 @@ CONFIGFILES=\
|
||||||
local \
|
local \
|
||||||
\
|
\
|
||||||
mountcritlocal mountcritremote \
|
mountcritlocal mountcritremote \
|
||||||
network npf \
|
named network npf \
|
||||||
\
|
\
|
||||||
pwcheck \
|
pwcheck \
|
||||||
\
|
\
|
||||||
|
|
|
||||||
146
etc/rc.d/named
Executable file
146
etc/rc.d/named
Executable file
|
|
@ -0,0 +1,146 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $NetBSD: named,v 1.25 2014/07/13 22:06:56 tls Exp $
|
||||||
|
#
|
||||||
|
|
||||||
|
# PROVIDE: named
|
||||||
|
# REQUIRE: NETWORKING mountcritremote syslogd
|
||||||
|
# BEFORE: DAEMON
|
||||||
|
# KEYWORD: chrootdir
|
||||||
|
|
||||||
|
$_rc_subr_loaded . /etc/rc.subr
|
||||||
|
|
||||||
|
name="named"
|
||||||
|
rcvar=$name
|
||||||
|
command="/usr/sbin/${name}"
|
||||||
|
pidfile="/var/run/${name}/${name}.pid"
|
||||||
|
start_precmd="named_precmd"
|
||||||
|
extra_commands="reload"
|
||||||
|
required_dirs="$named_chrootdir" # if it is set, it must exist
|
||||||
|
|
||||||
|
named_migrate()
|
||||||
|
{
|
||||||
|
local src="$1"
|
||||||
|
local dst="$2$1"
|
||||||
|
echo "Migrating $src to $dst"
|
||||||
|
(
|
||||||
|
diff=false
|
||||||
|
cd "$src"
|
||||||
|
mkdir -p "$dst"
|
||||||
|
for f in $(find . -type f)
|
||||||
|
do
|
||||||
|
f="${f##./}"
|
||||||
|
case "$f" in
|
||||||
|
*/*)
|
||||||
|
ds="$(dirname "$f")"
|
||||||
|
dd="$dst/$ds"
|
||||||
|
mkdir -p "$dd"
|
||||||
|
chmod "$(stat -f "%p" "$ds" |
|
||||||
|
sed -e 's/.*\([0-7][0-7][0-7][0-7]\)$/\1/g')" "$dd"
|
||||||
|
chown "$(stat -f %u:%g "$ds")" "$dd"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if [ -r "$dst/$f" ]
|
||||||
|
then
|
||||||
|
if ! cmp "$f" "$dst/$f"; then
|
||||||
|
diff=true
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
cp -p "$f" "$dst/$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if $diff; then
|
||||||
|
echo "Cannot complete migration because files are different"
|
||||||
|
echo "Run 'diff -r $src $dst' resolve the differences"
|
||||||
|
else
|
||||||
|
rm -fr "$src"
|
||||||
|
ln -s "$dst" "$src"
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
named_precmd()
|
||||||
|
{
|
||||||
|
if [ ! -e "/etc/rndc.key" ]; then
|
||||||
|
echo "Generating rndc.key"
|
||||||
|
/usr/sbin/rndc-confgen -a
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$named_chrootdir" ]; then
|
||||||
|
if [ ! -d "/etc/namedb/keys" ]; then
|
||||||
|
mkdir -m 775 "/etc/namedb/keys"
|
||||||
|
chown named:named "/etc/namedb/keys"
|
||||||
|
fi
|
||||||
|
return 0;
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If running in a chroot cage, ensure that the appropriate files
|
||||||
|
# exist inside the cage, as well as helper symlinks into the cage
|
||||||
|
# from outside.
|
||||||
|
#
|
||||||
|
# As this is called after the is_running and required_dir checks
|
||||||
|
# are made in run_rc_command(), we can safely assume ${named_chrootdir}
|
||||||
|
# exists and named isn't running at this point (unless forcestart
|
||||||
|
# is used).
|
||||||
|
#
|
||||||
|
case "$($command -v)" in
|
||||||
|
BIND*) # 9 no group, named-xfer, or ndc
|
||||||
|
;;
|
||||||
|
named*) # 4 and 8
|
||||||
|
rc_flags="-g named $rc_flags"
|
||||||
|
if [ ! -x "${named_chrootdir}/usr/libexec/named-xfer" -o \
|
||||||
|
"${named_chrootdir}/usr/libexec/named-xfer" -ot \
|
||||||
|
/usr/libexec/named-xfer ]; then
|
||||||
|
rm -f "${named_chrootdir}/usr/libexec/named-xfer"
|
||||||
|
cp -p /usr/libexec/named-xfer \
|
||||||
|
"${named_chrootdir}/usr/libexec"
|
||||||
|
fi
|
||||||
|
ln -fs "${named_chrootdir}/var/run/ndc" /var/run/ndc
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
for i in null random urandom; do
|
||||||
|
if [ ! -c "${named_chrootdir}/dev/$i" ]; then
|
||||||
|
rm -f "${named_chrootdir}/dev/$i"
|
||||||
|
(cd /dev &&
|
||||||
|
/bin/pax -rw -pe "$i" "${named_chrootdir}/dev")
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -h /etc/namedb ]; then
|
||||||
|
named_migrate /etc/namedb ${named_chrootdir}
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in named.conf rndc.key; do
|
||||||
|
if [ \( -r "/etc/$i" \) -a \( ! -h "/etc/$i" \) -a \
|
||||||
|
\( ! -r "${named_chrootdir}/etc/$i" \) ]; then
|
||||||
|
mv "/etc/$i" "${named_chrootdir}/etc/$i"
|
||||||
|
ln -s "${named_chrootdir}/etc/$i" "/etc/$i"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ \( ! -r ${named_chrootdir}/etc/named.conf \) -a \
|
||||||
|
\( -r ${named_chrootdir}/etc/namedb/named.conf \) ]; then
|
||||||
|
ln -s namedb/named.conf ${named_chrootdir}/etc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f /etc/localtime ]; then
|
||||||
|
cmp -s /etc/localtime "${named_chrootdir}/etc/localtime" || \
|
||||||
|
cp -p /etc/localtime "${named_chrootdir}/etc/localtime"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local piddir="$(dirname "${pidfile}")"
|
||||||
|
mkdir -p "${named_chrootdir}${piddir}" "${piddir}"
|
||||||
|
chmod 755 "${named_chrootdir}${piddir}" "${piddir}"
|
||||||
|
chown named:named "${named_chrootdir}${piddir}" "${piddir}"
|
||||||
|
ln -fs "${named_chrootdir}${pidfile}" "${pidfile}"
|
||||||
|
|
||||||
|
# Change run_rc_commands()'s internal copy of $named_flags
|
||||||
|
#
|
||||||
|
rc_flags="-u named -t ${named_chrootdir} $rc_flags"
|
||||||
|
}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
||||||
2
external/bsd/Makefile
vendored
2
external/bsd/Makefile
vendored
|
|
@ -3,7 +3,7 @@
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
#MINIX:
|
#MINIX:
|
||||||
SUBDIR= byacc dhcpcd \
|
SUBDIR= bind byacc dhcpcd \
|
||||||
fetch file flex less \
|
fetch file flex less \
|
||||||
libarchive libevent mdocml \
|
libarchive libevent mdocml \
|
||||||
openresolv tmux top
|
openresolv tmux top
|
||||||
|
|
|
||||||
5
external/bsd/bind/Makefile
vendored
Normal file
5
external/bsd/bind/Makefile
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:04 christos Exp $
|
||||||
|
|
||||||
|
SUBDIR+= lib .WAIT bin
|
||||||
|
|
||||||
|
.include <bsd.subdir.mk>
|
||||||
130
external/bsd/bind/Makefile.inc
vendored
Normal file
130
external/bsd/bind/Makefile.inc
vendored
Normal file
|
|
@ -0,0 +1,130 @@
|
||||||
|
# $NetBSD: Makefile.inc,v 1.22 2014/08/18 04:40:51 christos Exp $
|
||||||
|
|
||||||
|
.if !defined(BIND9_MAKEFILE_INC)
|
||||||
|
BIND9_MAKEFILE_INC=yes
|
||||||
|
|
||||||
|
#NAMED_DEBUG=1
|
||||||
|
|
||||||
|
USE_FORT?= yes # network client/server
|
||||||
|
|
||||||
|
WARNS?= 1
|
||||||
|
|
||||||
|
CWARNFLAGS.clang+= -Wno-unused-value -Wno-parentheses
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
.if ${MKCRYPTO} == "no"
|
||||||
|
NAMED_USE_OPENSSL?=no
|
||||||
|
.else
|
||||||
|
NAMED_USE_OPENSSL?=yes
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if exists(${NETBSDSRCDIR}/sys/sys/atomic.h) && !defined(__MINIX)
|
||||||
|
NAMED_USE_PTHREADS?=yes
|
||||||
|
.else
|
||||||
|
NAMED_USE_PTHREADS?=no
|
||||||
|
.endif
|
||||||
|
|
||||||
|
IDIST= ${NETBSDSRCDIR}/external/bsd/bind/dist
|
||||||
|
BIND_SRCDIR= ${NETBSDSRCDIR}/external/bsd/bind
|
||||||
|
BIND_HTMLDIR= /usr/share/doc/reference/ref8/bind9
|
||||||
|
|
||||||
|
.include "${IDIST}/version"
|
||||||
|
|
||||||
|
VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
|
||||||
|
SYSCONFDIR=/etc
|
||||||
|
LOCALSTATEDIR=/var
|
||||||
|
|
||||||
|
CPPFLAGS+=-I${BIND_SRCDIR}/include \
|
||||||
|
-I${IDIST} \
|
||||||
|
-I${IDIST}/lib/dns/include \
|
||||||
|
-I${IDIST}/lib/isc/include -I${IDIST}/lib/isc/unix/include \
|
||||||
|
-I${IDIST}/lib/bind9/include \
|
||||||
|
-I${IDIST}/lib/isccfg/include \
|
||||||
|
-I${IDIST}/lib/isccc/include \
|
||||||
|
-I${IDIST}/lib/lwres/include -I${IDIST}/lib/lwres/unix/include \
|
||||||
|
-DNS_LOCALSTATEDIR=\"${LOCALSTATEDIR}\" \
|
||||||
|
-DNS_SYSCONFDIR=\"${SYSCONFDIR}\" \
|
||||||
|
-DSESSION_KEYFILE=\"${LOCALSTATEDIR}/run/named/session.key\" \
|
||||||
|
-DVERSION=\"${VERSION}\" -DBIND9
|
||||||
|
|
||||||
|
.if (${USE_INET6} != "no")
|
||||||
|
CPPFLAGS+= -DWANT_IPV6
|
||||||
|
CPPFLAGS+= -DALLOW_FILTER_AAAA
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(HAVE_GCC)
|
||||||
|
COPTS+= -Wno-pointer-sign
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(NAMED_DEBUG)
|
||||||
|
DBG=-g3 -gstabs
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if !defined(LIB) || empty(LIB)
|
||||||
|
# NOTE: the order of these libraries is important...
|
||||||
|
.if defined(NAMED_DEBUG)
|
||||||
|
LDADD+= -lbind9_g -llwres_g -lisccfg_g -ldns_g -lisccc_g -lisc_g
|
||||||
|
.else
|
||||||
|
LDADD+= -lbind9 -llwres -lisccfg -ldns -lisccc -lisc
|
||||||
|
DPADD+= ${LIBBIND9} ${LIBDNS} ${LIBLWRES}
|
||||||
|
DPADD+= ${LIBISCCFG} ${LIBISCCC} ${LIBISC}
|
||||||
|
.endif
|
||||||
|
.else
|
||||||
|
CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
|
||||||
|
-DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE}
|
||||||
|
.endif
|
||||||
|
#CPPFLAGS+= -DUSE_MEMIMPREGISTER -DUSE_APPIMPREGISTER -DUSE_SOCKETIMPREGISTER \
|
||||||
|
# -DUSE_TIMERIMPREGISTER
|
||||||
|
|
||||||
|
.if ${NAMED_USE_PTHREADS} == "yes"
|
||||||
|
# XXX: Not ready yet
|
||||||
|
# CPPFLAGS+= -DISC_PLATFORM_USE_NATIVE_RWLOCKS
|
||||||
|
CPPFLAGS+= -DISC_PLATFORM_USETHREADS
|
||||||
|
.if !defined (LIB) || empty(LIB)
|
||||||
|
LDADD+= -lpthread
|
||||||
|
DPADD+= ${LIBPTHREAD}
|
||||||
|
.else
|
||||||
|
LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if ${NAMED_USE_OPENSSL} == "yes"
|
||||||
|
CPPFLAGS+=-DOPENSSL -DUSE_ISC_SPNEGO
|
||||||
|
.if ${MKKERBEROS} != "no"
|
||||||
|
CPPFLAGS+=-DGSSAPI
|
||||||
|
.endif
|
||||||
|
.if ${MKKERBEROS} != "no"
|
||||||
|
.if !defined (LIB) || empty(LIB)
|
||||||
|
LDADD+= -lgssapi -lheimntlm -lkrb5 -lhx509 -lheimbase \
|
||||||
|
-lcom_err -lroken -lasn1 -lwind
|
||||||
|
DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBHEIMBASE} \
|
||||||
|
${LIBCOM_ERR} ${LIBROKEN} ${LIBASN1} ${LIBWIND}
|
||||||
|
.else
|
||||||
|
.for L in gssapi krb5 hx509 heimntlm heimbase com_err roken asn1 wind
|
||||||
|
LIBDPLIBS+= $L ${NETBSDSRCDIR}/crypto/external/bsd/heimdal/lib/lib$L
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
.if !defined (LIB) || empty(LIB)
|
||||||
|
LDADD+= -lcrypto -lcrypt
|
||||||
|
DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
|
||||||
|
.else
|
||||||
|
.if exists(${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto)
|
||||||
|
LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
|
||||||
|
.else
|
||||||
|
LIBDPLIBS+= crypto ${NETBSDSRCDIR}/lib/libcrypto
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if ${NAMED_USE_PTHREADS} == "yes"
|
||||||
|
CPPFLAGS+=-DISC_PLATFORM_USETHREADS -I${IDIST}/lib/isc/pthreads/include
|
||||||
|
.else
|
||||||
|
CPPFLAGS+=-I${IDIST}/lib/isc/nothreads/include
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if exists(${.PARSEDIR}/../Makefile.inc)
|
||||||
|
.include "${.PARSEDIR}/../Makefile.inc"
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
8
external/bsd/bind/bin/Makefile
vendored
Normal file
8
external/bsd/bind/bin/Makefile
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# $NetBSD: Makefile,v 1.5 2014/07/08 05:55:33 spz Exp $
|
||||||
|
|
||||||
|
SUBDIR= html dig host named nslookup nsupdate rndc dnssec check tools \
|
||||||
|
confgen delv
|
||||||
|
|
||||||
|
.include "Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.subdir.mk>
|
||||||
4
external/bsd/bind/bin/Makefile.inc
vendored
Normal file
4
external/bsd/bind/bin/Makefile.inc
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
# $NetBSD: Makefile.inc,v 1.2 2012/05/09 21:59:10 christos Exp $
|
||||||
|
|
||||||
|
.include "${.PARSEDIR}/../Makefile.inc"
|
||||||
|
WARNS?= 2
|
||||||
7
external/bsd/bind/bin/check/Makefile
vendored
Normal file
7
external/bsd/bind/bin/check/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
SUBDIR= named-checkconf named-checkzone
|
||||||
|
|
||||||
|
.include "Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.subdir.mk>
|
||||||
15
external/bsd/bind/bin/check/Makefile.inc
vendored
Normal file
15
external/bsd/bind/bin/check/Makefile.inc
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# $NetBSD: Makefile.inc,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../../Makefile.inc"
|
||||||
|
|
||||||
|
CPPFLAGS+=-DNAMED_CONFFILE=\"${SYSCONFDIR}/named.conf\"
|
||||||
|
BINDIR=/usr/sbin
|
||||||
|
CHECK=${IDIST}/bin/check
|
||||||
|
|
||||||
|
.PATH: ${CHECK}
|
||||||
|
|
||||||
|
PROG=${BASE}
|
||||||
|
SRCS=${BASE}.c check-tool.c
|
||||||
|
MAN=${BASE}.8
|
||||||
7
external/bsd/bind/bin/check/named-checkconf/Makefile
vendored
Normal file
7
external/bsd/bind/bin/check/named-checkconf/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
10
external/bsd/bind/bin/check/named-checkzone/Makefile
vendored
Normal file
10
external/bsd/bind/bin/check/named-checkzone/Makefile
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# $NetBSD: Makefile,v 1.2 2009/04/12 21:00:48 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
SYMLINKS= /usr/sbin/named-checkzone /usr/sbin/named-compilezone
|
||||||
|
MLINKS= named-checkzone.8 named-compilezone.8
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
5
external/bsd/bind/bin/confgen/Makefile
vendored
Normal file
5
external/bsd/bind/bin/confgen/Makefile
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2012/05/09 21:59:10 christos Exp $
|
||||||
|
|
||||||
|
SUBDIR= rndc-confgen ddns-confgen
|
||||||
|
|
||||||
|
.include <bsd.subdir.mk>
|
||||||
17
external/bsd/bind/bin/confgen/Makefile.inc
vendored
Normal file
17
external/bsd/bind/bin/confgen/Makefile.inc
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# $NetBSD: Makefile.inc,v 1.1 2012/05/09 21:59:10 christos Exp $
|
||||||
|
|
||||||
|
PROG= ${.CURDIR:T}
|
||||||
|
SRCS= ${PROG}.c keygen.c util.c os.c
|
||||||
|
MAN= ${PROG}.8
|
||||||
|
BINDIR= /usr/sbin
|
||||||
|
|
||||||
|
.include "${.PARSEDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
DIST=${IDIST}/bin/confgen
|
||||||
|
|
||||||
|
CPPFLAGS+= -I${DIST}/include \
|
||||||
|
-DRNDC_CONFFILE=\"${SYSCONFDIR}/rndc.conf\" \
|
||||||
|
-DRNDC_KEYFILE=\"${SYSCONFDIR}/rndc.key\" \
|
||||||
|
|
||||||
|
|
||||||
|
.PATH: ${DIST} ${DIST}/unix
|
||||||
5
external/bsd/bind/bin/confgen/ddns-confgen/Makefile
vendored
Normal file
5
external/bsd/bind/bin/confgen/ddns-confgen/Makefile
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2012/05/09 21:59:10 christos Exp $
|
||||||
|
|
||||||
|
.include "${.PARSEDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
5
external/bsd/bind/bin/confgen/rndc-confgen/Makefile
vendored
Normal file
5
external/bsd/bind/bin/confgen/rndc-confgen/Makefile
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2012/05/09 21:59:10 christos Exp $
|
||||||
|
|
||||||
|
.include "${.PARSEDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
17
external/bsd/bind/bin/delv/Makefile
vendored
Normal file
17
external/bsd/bind/bin/delv/Makefile
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# $NetBSD: Makefile,v 1.2 2014/07/08 19:08:43 martin Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
PROG= delv
|
||||||
|
SRCS= delv.c
|
||||||
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
DIST=${IDIST}/bin/delv
|
||||||
|
CPPFLAGS+= -I${DIST}/include -I${IDIST}/lib/irs/include
|
||||||
|
LDADD+= -lirs -lisccfg
|
||||||
|
|
||||||
|
.PATH: ${DIST}
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
16
external/bsd/bind/bin/dig/Makefile
vendored
Normal file
16
external/bsd/bind/bin/dig/Makefile
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
PROG= dig
|
||||||
|
SRCS= dig.c dighost.c
|
||||||
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
DIST=${IDIST}/bin/dig
|
||||||
|
CPPFLAGS+= -I${DIST}/include
|
||||||
|
|
||||||
|
.PATH: ${DIST}
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
8
external/bsd/bind/bin/dnssec/Makefile
vendored
Normal file
8
external/bsd/bind/bin/dnssec/Makefile
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# $NetBSD: Makefile,v 1.4 2014/07/08 05:55:33 spz Exp $
|
||||||
|
|
||||||
|
SUBDIR= dnssec-dsfromkey dnssec-keyfromlabel dnssec-keygen dnssec-signzone \
|
||||||
|
dnssec-settime dnssec-revoke dnssec-verify dnssec-importkey
|
||||||
|
|
||||||
|
.include "Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.subdir.mk>
|
||||||
14
external/bsd/bind/bin/dnssec/Makefile.inc
vendored
Normal file
14
external/bsd/bind/bin/dnssec/Makefile.inc
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# $NetBSD: Makefile.inc,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../../Makefile.inc"
|
||||||
|
|
||||||
|
BINDIR=/usr/sbin
|
||||||
|
DNSSEC=${IDIST}/bin/dnssec
|
||||||
|
|
||||||
|
.PATH: ${DNSSEC}
|
||||||
|
|
||||||
|
PROG=${BASE}
|
||||||
|
SRCS=${BASE}.c dnssectool.c
|
||||||
|
MAN=${BASE}.8
|
||||||
7
external/bsd/bind/bin/dnssec/dnssec-dsfromkey/Makefile
vendored
Normal file
7
external/bsd/bind/bin/dnssec/dnssec-dsfromkey/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/dnssec/dnssec-importkey/Makefile
vendored
Normal file
7
external/bsd/bind/bin/dnssec/dnssec-importkey/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2014/07/08 05:55:33 spz Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/dnssec/dnssec-keyfromlabel/Makefile
vendored
Normal file
7
external/bsd/bind/bin/dnssec/dnssec-keyfromlabel/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/dnssec/dnssec-keygen/Makefile
vendored
Normal file
7
external/bsd/bind/bin/dnssec/dnssec-keygen/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/dnssec/dnssec-revoke/Makefile
vendored
Normal file
7
external/bsd/bind/bin/dnssec/dnssec-revoke/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/10/25 00:18:39 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/dnssec/dnssec-settime/Makefile
vendored
Normal file
7
external/bsd/bind/bin/dnssec/dnssec-settime/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/10/25 00:18:39 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/dnssec/dnssec-signzone/Makefile
vendored
Normal file
7
external/bsd/bind/bin/dnssec/dnssec-signzone/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:05 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/dnssec/dnssec-verify/Makefile
vendored
Normal file
7
external/bsd/bind/bin/dnssec/dnssec-verify/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2012/12/04 23:38:37 spz Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
16
external/bsd/bind/bin/host/Makefile
vendored
Normal file
16
external/bsd/bind/bin/host/Makefile
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:06 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
PROG= host
|
||||||
|
SRCS= host.c dighost.c
|
||||||
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
DIST=${IDIST}/bin/dig
|
||||||
|
CPPFLAGS+= -I${DIST}/include
|
||||||
|
|
||||||
|
.PATH: ${DIST}
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
22
external/bsd/bind/bin/html/Makefile
vendored
Normal file
22
external/bsd/bind/bin/html/Makefile
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:06 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.if ${MKDOC} != "no"
|
||||||
|
|
||||||
|
DIST= ${IDIST}/doc ${IDIST}/doc/arm
|
||||||
|
.PATH: ${DIST}
|
||||||
|
|
||||||
|
BINDIR= ${BIND_HTMLDIR}/arm
|
||||||
|
|
||||||
|
BIND_ARM= Bv9ARM.ch01.html Bv9ARM.ch01.html Bv9ARM.ch02.html \
|
||||||
|
Bv9ARM.ch03.html Bv9ARM.ch04.html Bv9ARM.ch05.html \
|
||||||
|
Bv9ARM.ch06.html Bv9ARM.ch07.html Bv9ARM.ch08.html \
|
||||||
|
Bv9ARM.ch09.html Bv9ARM.html
|
||||||
|
|
||||||
|
FILES= ${BIND_ARM}
|
||||||
|
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
41
external/bsd/bind/bin/named/Makefile
vendored
Normal file
41
external/bsd/bind/bin/named/Makefile
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
# $NetBSD: Makefile,v 1.9 2015/01/25 15:51:53 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
PROG= named
|
||||||
|
MAN= named.8 lwresd.8 named.conf.5
|
||||||
|
BINDIR= /usr/sbin
|
||||||
|
LINKS= ${BINDIR}/named ${BINDIR}/lwresd
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
DIST=${IDIST}/bin/named
|
||||||
|
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include -DCONFIGARGS=\"defaults\"
|
||||||
|
CPPFLAGS+=-DNO_VERSION_DATE -DPRODUCT=\"BIND\" -DSRCID=\"${SRCID}\"
|
||||||
|
CPPFLAGS+=-DDESCRIPTION=\"\(Extended\ Support\ Version\)\"
|
||||||
|
CPPFLAGS+=-DBUILDER=\"make\" # I am tempted to say Bob
|
||||||
|
|
||||||
|
.include "${IDIST}/srcid"
|
||||||
|
|
||||||
|
.if defined(HAVE_GCC) || defined(HAVE_LLVM)
|
||||||
|
.for f in client
|
||||||
|
COPTS.${f}.c+= -fno-strict-aliasing
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
|
||||||
|
CWARNFLAGS.clang+= -Wno-tautological-constant-out-of-range-compare
|
||||||
|
|
||||||
|
.PATH: ${DIST}/unix ${DIST}
|
||||||
|
|
||||||
|
SRCS_UNIX= os.c dlz_dlopen_driver.c
|
||||||
|
SRCS= builtin.c client.c config.c control.c controlconf.c \
|
||||||
|
interfacemgr.c listenlist.c log.c logconf.c \
|
||||||
|
lwaddr.c lwdclient.c lwderror.c \
|
||||||
|
lwdgabn.c lwdgnba.c lwdgrbn.c lwdnoop.c lwresd.c lwsearch.c \
|
||||||
|
main.c notify.c query.c server.c sortlist.c statschannel.c \
|
||||||
|
pfilter.c tkeyconf.c tsigconf.c \
|
||||||
|
update.c xfrout.c zoneconf.c ${SRCS_UNIX}
|
||||||
|
|
||||||
|
LDADD+=-lblacklist
|
||||||
|
DPADD+=${LIBBLACKLIST}
|
||||||
|
.include <bsd.prog.mk>
|
||||||
19
external/bsd/bind/bin/nslookup/Makefile
vendored
Normal file
19
external/bsd/bind/bin/nslookup/Makefile
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# $NetBSD: Makefile,v 1.2 2012/06/05 00:38:45 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
PROG= nslookup
|
||||||
|
SRCS= nslookup.c dighost.c
|
||||||
|
MAN= nslookup.8
|
||||||
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
DIST=${IDIST}/bin/dig
|
||||||
|
CPPFLAGS+= -I${DIST}/include
|
||||||
|
|
||||||
|
.PATH: ${DIST}
|
||||||
|
DPADD+=${LIBEDIT} ${LIBTERMINFO}
|
||||||
|
LDADD+=-ledit -lterminfo
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
518
external/bsd/bind/bin/nslookup/nslookup.8
vendored
Normal file
518
external/bsd/bind/bin/nslookup/nslookup.8
vendored
Normal file
|
|
@ -0,0 +1,518 @@
|
||||||
|
.\" $NetBSD: nslookup.8,v 1.2 2009/10/14 19:08:55 joerg Exp $
|
||||||
|
.\"
|
||||||
|
.\"
|
||||||
|
.\" ++Copyright++ 1985, 1989
|
||||||
|
.\" -
|
||||||
|
.\" Copyright (c) 1985, 1989
|
||||||
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
|
.\"
|
||||||
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
.\" are met:
|
||||||
|
.\" 1. Redistributions of source code must retain the above copyright
|
||||||
|
.\" notice, this list of conditions and the following disclaimer.
|
||||||
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
.\" notice, this list of conditions and the following disclaimer in the
|
||||||
|
.\" documentation and/or other materials provided with the distribution.
|
||||||
|
.\" 3. Neither the name of the University nor the names of its contributors
|
||||||
|
.\" may be used to endorse or promote products derived from this software
|
||||||
|
.\" without specific prior written permission.
|
||||||
|
.\"
|
||||||
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||||
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
.\" SUCH DAMAGE.
|
||||||
|
.\" -
|
||||||
|
.\" Portions Copyright (c) 1993 by Digital Equipment Corporation.
|
||||||
|
.\"
|
||||||
|
.\" Permission to use, copy, modify, and distribute this software for any
|
||||||
|
.\" purpose with or without fee is hereby granted, provided that the above
|
||||||
|
.\" copyright notice and this permission notice appear in all copies, and that
|
||||||
|
.\" the name of Digital Equipment Corporation not be used in advertising or
|
||||||
|
.\" publicity pertaining to distribution of the document or software without
|
||||||
|
.\" specific, written prior permission.
|
||||||
|
.\"
|
||||||
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
|
||||||
|
.\" WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
|
||||||
|
.\" OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
|
||||||
|
.\" CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||||
|
.\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||||
|
.\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||||
|
.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
|
.\" SOFTWARE.
|
||||||
|
.\" -
|
||||||
|
.\" --Copyright--
|
||||||
|
.\"
|
||||||
|
.\" @(#)nslookup.8 5.3 (Berkeley) 6/24/90
|
||||||
|
.\"
|
||||||
|
.Dd June 24, 1990
|
||||||
|
.Dt NSLOOKUP 8
|
||||||
|
.Os
|
||||||
|
.Sh NAME
|
||||||
|
.Nm nslookup
|
||||||
|
.Nd query Internet name servers interactively
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm nslookup
|
||||||
|
.Op Fl option Ar ...
|
||||||
|
.Op Ar host-to-find | Fl Op Ar server
|
||||||
|
.Sh DESCRIPTION
|
||||||
|
.Nm
|
||||||
|
is a program to query Internet domain name servers.
|
||||||
|
.Nm
|
||||||
|
has two modes: interactive and non-interactive.
|
||||||
|
Interactive mode allows the user to query name servers for
|
||||||
|
information about various hosts and domains or to print a list of hosts
|
||||||
|
in a domain.
|
||||||
|
Non-interactive mode is used to print just the name and requested information
|
||||||
|
for a host or domain.
|
||||||
|
.Sh ARGUMENTS
|
||||||
|
Interactive mode is entered in the following cases:
|
||||||
|
.Bl -enum
|
||||||
|
.It
|
||||||
|
when no arguments are given (the default name server will be used),
|
||||||
|
.It
|
||||||
|
when the first argument is a hyphen
|
||||||
|
.Pq Sq \&-
|
||||||
|
and the second argument
|
||||||
|
is the host name or Internet address of a name server.
|
||||||
|
.El
|
||||||
|
.Pp
|
||||||
|
Non-interactive mode is used when the name or Internet address
|
||||||
|
of the host to be looked up
|
||||||
|
is given as the first argument.
|
||||||
|
The optional second argument specifies
|
||||||
|
the host name or address of a name server.
|
||||||
|
.Pp
|
||||||
|
The options listed under the
|
||||||
|
.Dq Li set
|
||||||
|
command below can be specified in
|
||||||
|
the
|
||||||
|
.Pa .nslookuprc
|
||||||
|
file in the user's home directory if they are listed
|
||||||
|
one per line.
|
||||||
|
Options can also be specified on the command line if they precede
|
||||||
|
the arguments and are prefixed with a hyphen.
|
||||||
|
For example, to change the default query type to host information,
|
||||||
|
and the initial timeout to 10 seconds, type:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
nslookup -query=hinfo -timeout=10
|
||||||
|
.Ed
|
||||||
|
.Sh INTERACTIVE COMMANDS
|
||||||
|
Commands may be interrupted at any time by typing a control-C.
|
||||||
|
To exit, type a control-D
|
||||||
|
.Pq Dv EOF
|
||||||
|
or type
|
||||||
|
.Li exit .
|
||||||
|
The command line length must be less than 256 characters.
|
||||||
|
To treat a built-in command as a host name,
|
||||||
|
precede it with an escape character
|
||||||
|
.Pq Sq \e .
|
||||||
|
.Em N.B.: An unrecognized command will be interpreted as a host name.
|
||||||
|
.Bl -tag -width "lserver"
|
||||||
|
.It Ar host Op Ar server
|
||||||
|
Look up information for
|
||||||
|
.Ar host
|
||||||
|
using the current default server or using
|
||||||
|
.Ar server ,
|
||||||
|
if specified.
|
||||||
|
If
|
||||||
|
.Ar host
|
||||||
|
is an Internet address and the query type is
|
||||||
|
.Dv A
|
||||||
|
or
|
||||||
|
.Dv PTR ,
|
||||||
|
the name of the host is returned.
|
||||||
|
If
|
||||||
|
.Ar host
|
||||||
|
is a name and does not have a trailing period, the default
|
||||||
|
domain name is appended to the name.
|
||||||
|
(This behavior depends on the state of the
|
||||||
|
.Ic set
|
||||||
|
options
|
||||||
|
.Ic domain , srchlist , defname ,
|
||||||
|
and
|
||||||
|
.Ic search . )
|
||||||
|
.Pp
|
||||||
|
To look up a host not in the current domain, append a period to
|
||||||
|
the name.
|
||||||
|
.It Ic server Ar domain
|
||||||
|
.It Ic lserver Ar domain
|
||||||
|
Change the default server to
|
||||||
|
.Ar domain ;
|
||||||
|
.Ic lserver
|
||||||
|
uses the initial server to look up information about
|
||||||
|
.Ar domain ,
|
||||||
|
while
|
||||||
|
.Ic server
|
||||||
|
uses the current default server.
|
||||||
|
If an authoritative answer can't be found, the names of servers
|
||||||
|
that might have the answer are returned.
|
||||||
|
.It Ic root
|
||||||
|
Changes the default server to the server for the root of the domain name space.
|
||||||
|
Currently, the host
|
||||||
|
.Li ns.internic.net
|
||||||
|
is used.
|
||||||
|
(This command is a synonym for
|
||||||
|
.Dq Ic lserver ns.internic.net . )
|
||||||
|
The name of the root server can be changed with the
|
||||||
|
.Dq Ic set root
|
||||||
|
command.
|
||||||
|
.It Ic finger Oo Ar name Oc Op Ic \*[Gt] Ar filename
|
||||||
|
.It Ic finger Oo Ar name Oc Op Ic \*[Gt]\*[Gt] Ar filename
|
||||||
|
Connects with the finger server on the current host.
|
||||||
|
The current host is defined when a previous lookup for a host
|
||||||
|
was successful and returned address information (see the
|
||||||
|
.Dq Ic set querytype Ns = Ns Dv A
|
||||||
|
command).
|
||||||
|
The
|
||||||
|
.Ar name
|
||||||
|
is optional.
|
||||||
|
.Ic \*[Gt]
|
||||||
|
and
|
||||||
|
.Ic \*[Gt]\*[Gt]
|
||||||
|
can be used to redirect output in the usual manner.
|
||||||
|
.It Ic ls Oo Ar option Oc Ar domain Op Ic \*[Gt] Ar filename
|
||||||
|
.It Ic ls Oo Ar option Oc Ar domain Op Ic \*[Gt]\*[Gt] Ar filename
|
||||||
|
List the information available for
|
||||||
|
.Ar domain ,
|
||||||
|
optionally creating or appending to
|
||||||
|
.Ar filename .
|
||||||
|
The default output contains host names and their Internet addresses.
|
||||||
|
.Ar Option
|
||||||
|
can be one of the following:
|
||||||
|
.Bl -tag -width "-a "
|
||||||
|
.It Fl t Ar querytype
|
||||||
|
lists all records of the specified type (see
|
||||||
|
.Ar querytype
|
||||||
|
below).
|
||||||
|
.It Fl a
|
||||||
|
lists aliases of hosts in the domain;
|
||||||
|
synonym for
|
||||||
|
.Dq Fl t Dv CNAME .
|
||||||
|
.It Fl d
|
||||||
|
lists all records for the domain;
|
||||||
|
synonym for
|
||||||
|
.Dq Fl t Dv ANY .
|
||||||
|
.It Fl h
|
||||||
|
lists CPU and operating system information for the domain;
|
||||||
|
synonym for
|
||||||
|
.Dq Fl t Dv HINFO .
|
||||||
|
.It Fl s
|
||||||
|
lists well-known services of hosts in the domain;
|
||||||
|
synonym for
|
||||||
|
.Dq Fl t Dv WKS .
|
||||||
|
.El
|
||||||
|
.Pp
|
||||||
|
When output is directed to a file, hash marks are printed for every
|
||||||
|
50 records received from the server.
|
||||||
|
.It Ic view Ar filename
|
||||||
|
Sorts and lists the output of previous
|
||||||
|
.Ic ls
|
||||||
|
command(s) with
|
||||||
|
.Xr more 1 .
|
||||||
|
.It Ic help
|
||||||
|
.It Ic ?\&
|
||||||
|
Prints a brief summary of commands.
|
||||||
|
.It Ic exit
|
||||||
|
Exits the program.
|
||||||
|
.It Ic set Ar keyword Ns Op = Ns Ar value
|
||||||
|
This command is used to change state information that affects the lookups.
|
||||||
|
Valid keywords are:
|
||||||
|
.Bl -tag -width "class=v"
|
||||||
|
.It Ic all
|
||||||
|
Prints the current values of the frequently-used options to
|
||||||
|
.Ic set .
|
||||||
|
Information about the current default server and host is also printed.
|
||||||
|
.It Ic class Ns = Ns Ar value
|
||||||
|
Change the query class to one of:
|
||||||
|
.Bl -tag -width "HESIOD "
|
||||||
|
.It Dv IN
|
||||||
|
the Internet class
|
||||||
|
.It Dv CHAOS
|
||||||
|
the Chaos class
|
||||||
|
.It Dv HESIOD
|
||||||
|
the MIT Athena Hesiod class
|
||||||
|
.It Dv ANY
|
||||||
|
wildcard (any of the above)
|
||||||
|
.El
|
||||||
|
.Pp
|
||||||
|
The class specifies the protocol group of the information.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Dv IN ;
|
||||||
|
abbreviation =
|
||||||
|
.Ic cl )
|
||||||
|
.It Oo Ic no Oc Ns Ic debug
|
||||||
|
Turn debugging mode on.
|
||||||
|
A lot more information is printed about the
|
||||||
|
packet sent to the server and the resulting answer.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Ic nodebug ;
|
||||||
|
abbreviation =
|
||||||
|
.Oo Ic no Oc Ns Ic deb )
|
||||||
|
.It Oo Ic no Oc Ns Ic d2
|
||||||
|
Turn exhaustive debugging mode on.
|
||||||
|
Essentially all fields of every packet are printed.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Ic nod2 )
|
||||||
|
.It Ic domain Ns = Ns Ar name
|
||||||
|
Change the default domain name to
|
||||||
|
.Ar name .
|
||||||
|
The default domain name is appended to a lookup request depending on the
|
||||||
|
state of the
|
||||||
|
.Ic defname
|
||||||
|
and
|
||||||
|
.Ic search
|
||||||
|
options.
|
||||||
|
The domain search list contains the parents of the default domain if it has
|
||||||
|
at least two components in its name.
|
||||||
|
For example, if the default domain
|
||||||
|
is CC.Berkeley.EDU, the search list is CC.Berkeley.EDU and Berkeley.EDU.
|
||||||
|
Use the
|
||||||
|
.Dq Ic set srchlist
|
||||||
|
command to specify a different list.
|
||||||
|
Use the
|
||||||
|
.Dq Ic set all
|
||||||
|
command to display the list.
|
||||||
|
.Pp
|
||||||
|
(Default = value from
|
||||||
|
.Xr hostname 1 ,
|
||||||
|
.Pa /etc/resolv.conf ,
|
||||||
|
or
|
||||||
|
.Ev LOCALDOMAIN ;
|
||||||
|
abbreviation =
|
||||||
|
.Ic do )
|
||||||
|
.It Ic srchlist Ns No = Ns Ar name1 Ns No / Ns Ar name2 Ns No / Ns Ar ...
|
||||||
|
Change the default domain name to
|
||||||
|
.Ar name1
|
||||||
|
and the domain search list
|
||||||
|
to
|
||||||
|
.Ar name1 , name2 ,
|
||||||
|
etc.
|
||||||
|
A maximum of 6 names separated by slashes
|
||||||
|
.Pq Sq /
|
||||||
|
can be specified.
|
||||||
|
For example,
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
set srchlist=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
sets the domain to lcs.MIT.EDU and the search list to the three names.
|
||||||
|
This command overrides the
|
||||||
|
default domain name and search list of the
|
||||||
|
.Dq Ic set domain
|
||||||
|
command.
|
||||||
|
Use the
|
||||||
|
.Dq Ic set all
|
||||||
|
command to display the list.
|
||||||
|
.Pp
|
||||||
|
(Default = value based on
|
||||||
|
.Xr hostname 1 ,
|
||||||
|
.Pa /etc/resolv.conf ,
|
||||||
|
or
|
||||||
|
.Ev LOCALDOMAIN ;
|
||||||
|
abbreviation =
|
||||||
|
.Ic srchl )
|
||||||
|
.It Oo Ic no Oc Ns Ic defname
|
||||||
|
If set, append the default domain name to a single-component lookup request
|
||||||
|
(i.e., one that does not contain a period).
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Ic defname ;
|
||||||
|
abbreviation =
|
||||||
|
.Oo Ic no Oc Ns Ic defname )
|
||||||
|
.It Oo Ic no Oc Ns Ic search
|
||||||
|
If the lookup request contains at least one period but
|
||||||
|
.Em doesn't
|
||||||
|
end with a trailing period, append the domain names in the domain search list
|
||||||
|
to the request until an answer is received.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Ic search ;
|
||||||
|
abbreviation =
|
||||||
|
.Oo Ic no Oc Ns Ic sea )
|
||||||
|
.It Ic port Ns = Ns Ar value
|
||||||
|
Change the default TCP/UDP name server port to
|
||||||
|
.Ar value .
|
||||||
|
.Pp
|
||||||
|
(Default = 53;
|
||||||
|
abbreviation =
|
||||||
|
.Ic \&po )
|
||||||
|
.It Ic querytype Ns = Ns Ar value
|
||||||
|
.It Ic type Ns = Ns Ar value
|
||||||
|
Change the type of information query to one of:
|
||||||
|
.Bl -tag -width "HINFO "
|
||||||
|
.It Dv A
|
||||||
|
the host's Internet address.
|
||||||
|
.It Dv CNAME
|
||||||
|
the canonical name for an alias.
|
||||||
|
.It Dv HINFO
|
||||||
|
the host CPU and operating system type.
|
||||||
|
.It Dv MINFO
|
||||||
|
the mailbox or mail list information.
|
||||||
|
.It Dv MX
|
||||||
|
the mail exchanger.
|
||||||
|
.It Dv NS
|
||||||
|
the name server for the named zone.
|
||||||
|
.It Dv PTR
|
||||||
|
the host name if the query is an Internet address;
|
||||||
|
otherwise, the pointer to other information.
|
||||||
|
.It Dv SOA
|
||||||
|
the domain's
|
||||||
|
.Dq start-of-authority
|
||||||
|
information.
|
||||||
|
.It Dv TXT
|
||||||
|
the text information.
|
||||||
|
.It Dv UINFO
|
||||||
|
the user information.
|
||||||
|
.It Dv WKS
|
||||||
|
the supported well-known services.
|
||||||
|
.El
|
||||||
|
.Pp
|
||||||
|
Other types
|
||||||
|
.Dv ( ANY , AXFR , MB ,
|
||||||
|
.Dv MD , MF , NULL )
|
||||||
|
are described in the RFC-1035 document.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Dv A ;
|
||||||
|
abbreviations =
|
||||||
|
.Ic q , ty )
|
||||||
|
.It Oo Ic no Oc Ns Ic recurse
|
||||||
|
Tell the name server to query other servers if it does not have the
|
||||||
|
information.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Ic recurse ;
|
||||||
|
abbreviation =
|
||||||
|
.Oo Ic no Oc Ns Ic rec )
|
||||||
|
.It Ic retry Ns = Ns Ar number
|
||||||
|
Set the number of retries to
|
||||||
|
.Ar number .
|
||||||
|
When a reply to a request is not received within a certain
|
||||||
|
amount of time (changed with
|
||||||
|
.Dq Ic set timeout ) ,
|
||||||
|
the timeout period is doubled and the request is resent.
|
||||||
|
The retry value controls how many times a request is resent before giving up.
|
||||||
|
.Pp
|
||||||
|
(Default = 4, abbreviation =
|
||||||
|
.Ic ret )
|
||||||
|
.It Ic root Ns = Ns Ar host
|
||||||
|
Change the name of the root server to
|
||||||
|
.Ar host .
|
||||||
|
This affects the
|
||||||
|
.Dq Ic root
|
||||||
|
command.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Ic ns.internic.net. ;
|
||||||
|
abbreviation =
|
||||||
|
.Ic ro )
|
||||||
|
.It Ic timeout Ns = Ns Ar number
|
||||||
|
Change the initial timeout interval for waiting for a reply to
|
||||||
|
.Ar number
|
||||||
|
seconds.
|
||||||
|
Each retry doubles the timeout period.
|
||||||
|
.Pp
|
||||||
|
(Default = 5 seconds; abbreviation =
|
||||||
|
.Ic ti )
|
||||||
|
.It Oo Ic no Oc Ns Ic vc
|
||||||
|
Always use a virtual circuit when sending requests to the server.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Ic novc ;
|
||||||
|
abbreviation =
|
||||||
|
.Oo Ic no Oc Ns Ic v )
|
||||||
|
.It Oo Ic no Oc Ns Ic ignoretc
|
||||||
|
Ignore packet truncation errors.
|
||||||
|
.Pp
|
||||||
|
(Default =
|
||||||
|
.Ic noignoretc ;
|
||||||
|
abbreviation =
|
||||||
|
.Oo Ic no Oc Ns Ic ig )
|
||||||
|
.El
|
||||||
|
.El
|
||||||
|
.Sh ENVIRONMENT
|
||||||
|
.Bl -tag -width "HOSTALIASESXXXX" -compact
|
||||||
|
.It Ev HOSTALIASES
|
||||||
|
file containing host aliases
|
||||||
|
.It Ev LOCALDOMAIN
|
||||||
|
overrides default domain
|
||||||
|
.El
|
||||||
|
.Sh FILES
|
||||||
|
.Bl -tag -width "/usr/share/misc/nslookup.helpXXX" -compact
|
||||||
|
.It Pa /etc/resolv.conf
|
||||||
|
initial domain name and name server addresses
|
||||||
|
.It Pa $HOME/.nslookuprc
|
||||||
|
user's initial options
|
||||||
|
.It Pa /usr/share/misc/nslookup.help
|
||||||
|
summary of commands
|
||||||
|
.El
|
||||||
|
.Sh DIAGNOSTICS
|
||||||
|
If the lookup request was not successful, an error message is printed.
|
||||||
|
Possible errors are:
|
||||||
|
.Bl -tag -width "Timed"
|
||||||
|
.It Li Timed out
|
||||||
|
The server did not respond to a request after a certain amount of
|
||||||
|
time (changed with
|
||||||
|
.Dq Ic set timeout Ns = Ns Ar value )
|
||||||
|
and a certain number of retries (changed with
|
||||||
|
.Do
|
||||||
|
.Ic set retry Ns = Ns Ar value
|
||||||
|
.Dc ) .
|
||||||
|
.It Li \&No response from server
|
||||||
|
No name server is running on the server machine.
|
||||||
|
.It Li \&No records
|
||||||
|
The server does not have resource records of the current query type for the
|
||||||
|
host, although the host name is valid.
|
||||||
|
The query type is specified with the
|
||||||
|
.Dq Ic set querytype
|
||||||
|
command.
|
||||||
|
.It Li Non-existent domain
|
||||||
|
The host or domain name does not exist.
|
||||||
|
.It Li Connection refused
|
||||||
|
.It Li Network is unreachable
|
||||||
|
The connection to the name or finger server could not be made
|
||||||
|
at the current time.
|
||||||
|
This error commonly occurs with
|
||||||
|
.Ic ls
|
||||||
|
and
|
||||||
|
.Ic finger
|
||||||
|
requests.
|
||||||
|
.It Li Server failure
|
||||||
|
The name server found an internal inconsistency in its database
|
||||||
|
and could not return a valid answer.
|
||||||
|
.It Li Refused
|
||||||
|
The name server refused to service the request.
|
||||||
|
.It Li Format error
|
||||||
|
The name server found that the request packet was not in the proper format.
|
||||||
|
It may indicate an error in
|
||||||
|
.Nm nslookup .
|
||||||
|
.El
|
||||||
|
.Sh SEE ALSO
|
||||||
|
.Xr resolver 3 ,
|
||||||
|
.Xr resolv.conf 5 ,
|
||||||
|
.Xr named 8
|
||||||
|
.Rs
|
||||||
|
.%A P.V. Mockapetris
|
||||||
|
.%T Domain Names - Concepts and Facilities
|
||||||
|
.%R RFC 1034
|
||||||
|
.%D Nov 1, 1987
|
||||||
|
.Re
|
||||||
|
.Rs
|
||||||
|
.%A P.V. Mockapetris
|
||||||
|
.%T Domain Names - Implementation and Specification
|
||||||
|
.%R RFC 1035
|
||||||
|
.%D Nov 1, 1987
|
||||||
|
.Re
|
||||||
|
.Sh AUTHORS
|
||||||
|
Andrew Cherenson
|
||||||
17
external/bsd/bind/bin/nsupdate/Makefile
vendored
Normal file
17
external/bsd/bind/bin/nsupdate/Makefile
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# $NetBSD: Makefile,v 1.2 2012/06/05 00:38:45 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
PROG= nsupdate
|
||||||
|
MAN= nsupdate.1
|
||||||
|
BINDIR= /usr/bin
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
DIST=${IDIST}/bin/nsupdate
|
||||||
|
|
||||||
|
.PATH: ${DIST}
|
||||||
|
DPADD+=${LIBEDIT} ${LIBTERMINFO}
|
||||||
|
LDADD+=-ledit -lterminfo
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
20
external/bsd/bind/bin/rndc/Makefile
vendored
Normal file
20
external/bsd/bind/bin/rndc/Makefile
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2009/04/12 03:46:06 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
PROG= rndc
|
||||||
|
SRCS= rndc.c util.c
|
||||||
|
MAN= rndc.8 rndc.conf.5
|
||||||
|
BINDIR= /usr/sbin
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
DIST=${IDIST}/bin/rndc
|
||||||
|
CPPFLAGS+= -I${DIST}/include \
|
||||||
|
-DRNDC_CONFFILE=\"${SYSCONFDIR}/rndc.conf\" \
|
||||||
|
-DRNDC_KEYFILE=\"${SYSCONFDIR}/rndc.key\" \
|
||||||
|
|
||||||
|
|
||||||
|
.PATH: ${DIST}
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/tools/Makefile
vendored
Normal file
7
external/bsd/bind/bin/tools/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2011/09/11 18:55:24 christos Exp $
|
||||||
|
|
||||||
|
SUBDIR= arpaname named-journalprint nsec3hash
|
||||||
|
|
||||||
|
.include "Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.subdir.mk>
|
||||||
19
external/bsd/bind/bin/tools/Makefile.inc
vendored
Normal file
19
external/bsd/bind/bin/tools/Makefile.inc
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# $NetBSD: Makefile.inc,v 1.1 2011/09/11 18:55:24 christos Exp $
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../../Makefile.inc"
|
||||||
|
|
||||||
|
TOOLS=${IDIST}/bin/tools
|
||||||
|
|
||||||
|
.PATH: ${TOOLS}
|
||||||
|
|
||||||
|
PROG=${BASE}
|
||||||
|
SRCS=${BASE}.c
|
||||||
|
.if exists(${TOOLS}/${BASE}.8)
|
||||||
|
BINDIR=/usr/sbin
|
||||||
|
MAN=${BASE}.8
|
||||||
|
.elif exists(${TOOLS}/${BASE}.1)
|
||||||
|
BINDIR=/usr/bin
|
||||||
|
MAN=${BASE}.1
|
||||||
|
.endif
|
||||||
7
external/bsd/bind/bin/tools/arpaname/Makefile
vendored
Normal file
7
external/bsd/bind/bin/tools/arpaname/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2011/09/11 18:55:24 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/tools/named-journalprint/Makefile
vendored
Normal file
7
external/bsd/bind/bin/tools/named-journalprint/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2011/09/11 18:55:24 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
7
external/bsd/bind/bin/tools/nsec3hash/Makefile
vendored
Normal file
7
external/bsd/bind/bin/tools/nsec3hash/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2011/09/11 18:55:24 christos Exp $
|
||||||
|
|
||||||
|
BASE= ${.CURDIR:T}
|
||||||
|
|
||||||
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
||||||
49
external/bsd/bind/binclude4netbsd
vendored
Executable file
49
external/bsd/bind/binclude4netbsd
vendored
Executable file
|
|
@ -0,0 +1,49 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Use this script to update the bind include files used in the nameserver,
|
||||||
|
# after you've imported and built the latest bind code. After you run this,
|
||||||
|
# cvs import the resulting directory
|
||||||
|
#
|
||||||
|
# $ cd bind-X.Y.Z
|
||||||
|
# $ configure
|
||||||
|
# $ make
|
||||||
|
# $ ./binclude4netbsd . /tmp/include
|
||||||
|
# Fix manually the config.h file to disable things controlled by the Makefiles
|
||||||
|
# $ cd /tmp/include
|
||||||
|
# $ cvs -d cvs.netbsd.org:/cvsroot import src/external/bsd/bind/include -m "Include files for bind-X-Y-Z" ISC bind-X-Y-Z
|
||||||
|
#
|
||||||
|
|
||||||
|
PROG=$(basename $0)
|
||||||
|
if [ \( -z "$1" \) -o \( -z "$2" \) ]
|
||||||
|
then
|
||||||
|
echo "Usage: $PROG <bind-src> <include-dest>" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
BIND=$1
|
||||||
|
INCLUDE=$2
|
||||||
|
|
||||||
|
mkdir -p $INCLUDE
|
||||||
|
cp $BIND/config.h $INCLUDE
|
||||||
|
|
||||||
|
mkdir -p $INCLUDE/dns
|
||||||
|
|
||||||
|
cp $BIND/lib/dns/code.h $INCLUDE/dns
|
||||||
|
|
||||||
|
for i in enumclass.h enumtype.h rdatastruct.h
|
||||||
|
do
|
||||||
|
cp $BIND/lib/dns/include/dns/$i $INCLUDE/dns
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -p $INCLUDE/isc
|
||||||
|
|
||||||
|
cp $BIND/lib/isc/include/isc/platform.h $INCLUDE/isc
|
||||||
|
|
||||||
|
mkdir -p $INCLUDE/lwres
|
||||||
|
|
||||||
|
for i in netdb.h platform.h
|
||||||
|
do
|
||||||
|
cp $BIND/lib/lwres/include/lwres/$i $INCLUDE/lwres
|
||||||
|
done
|
||||||
|
|
||||||
|
cleantags $INCLUDE
|
||||||
134
external/bsd/bind/bind2netbsd
vendored
Executable file
134
external/bsd/bind/bind2netbsd
vendored
Executable file
|
|
@ -0,0 +1,134 @@
|
||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# $NetBSD: bind2netbsd,v 1.2 2014/03/06 02:12:56 christos Exp $
|
||||||
|
#
|
||||||
|
# Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions
|
||||||
|
# are met:
|
||||||
|
# 1. Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer in the
|
||||||
|
# documentation and/or other materials provided with the distribution.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||||
|
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||||
|
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||||
|
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||||
|
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||||
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# bind2netbsd: convert a bind tree into a
|
||||||
|
# netbsd bind source tree, under src/external/bsd/bind/dist,
|
||||||
|
# based on bind2netbsd by Bernd Ernesti and changes by Simon Burge
|
||||||
|
#
|
||||||
|
# Rough instructions for importing new bind release:
|
||||||
|
#
|
||||||
|
# $ cd /some/where/temporary
|
||||||
|
# $ tar xpfz /new/bind/release/tar/file
|
||||||
|
# $ sh /usr/src/external/bsd/bind/dist/bind2netbsd bind-9.x.y `pwd`
|
||||||
|
# $ cd src/external/bsd/bind/dist
|
||||||
|
# $ cvs -d cvs.netbsd.org:/cvsroot import -m "Import bind 9.x.y" src/external/bsd/bind/dist ISC bind-9-x-y
|
||||||
|
# $ cd ../../../../../bind-9.x.y
|
||||||
|
# $ run ./configure
|
||||||
|
# $ run make
|
||||||
|
# - use the binclude4netbsd to create and import the new headers in
|
||||||
|
# /usr/src/external/bsd/bind/include
|
||||||
|
# - check makefiles to see if any extra sources have been added.
|
||||||
|
# - update distrib/sets if necessary.
|
||||||
|
#
|
||||||
|
# Note that properly the import message should include a short summary
|
||||||
|
# of changes since the previous import rather than just "Import bind 9.x.y".
|
||||||
|
#
|
||||||
|
|
||||||
|
if [ $# -ne 2 ]; then echo "bind2netbsd src dest"; exit 1; fi
|
||||||
|
|
||||||
|
r=$1
|
||||||
|
d=$2/src/external/bsd/bind/dist
|
||||||
|
|
||||||
|
case "$d" in
|
||||||
|
/*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
d=`/bin/pwd`/$d
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case "$r" in
|
||||||
|
/*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
r=`/bin/pwd`/$r
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo preparing directory $d
|
||||||
|
rm -rf $d
|
||||||
|
mkdir -p $d
|
||||||
|
|
||||||
|
### Copy the files and directories
|
||||||
|
echo copying $r to $d
|
||||||
|
cd $r
|
||||||
|
pax -rw * $d
|
||||||
|
|
||||||
|
if [ -d $d/libtool.m4 ]
|
||||||
|
then
|
||||||
|
mv $d/libtool.m4 $d/m4
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Remove the $'s around RCS tags
|
||||||
|
cleantags $d
|
||||||
|
|
||||||
|
### Add our NetBSD RCS Id
|
||||||
|
find $d -type f -name '*.[chly]' -print | while read c; do
|
||||||
|
sed 1q < $c | grep -q '\$NetBSD' || (
|
||||||
|
echo "/* \$NetBSD\$ */" >/tmp/bind3n$$
|
||||||
|
echo "" >>/tmp/bind3n$$
|
||||||
|
cat $c >> /tmp/bind3n$$
|
||||||
|
mv /tmp/bind3n$$ $c && echo added NetBSD RCS tag to $c
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
find $d -type f -name '*.[0-9]' -print | while read m; do
|
||||||
|
sed 1q < $m | grep -q '\$NetBSD' || (
|
||||||
|
echo ".\\\" \$NetBSD\$" >/tmp/bind2m$$
|
||||||
|
echo ".\\\"" >>/tmp/bind2m$$
|
||||||
|
cat $m >> /tmp/bind2m$$
|
||||||
|
mv /tmp/bind2m$$ $m && echo added NetBSD RCS tag to $m
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
find $d -type f -name '*.texi' -print | while read t; do
|
||||||
|
sed "2 s/^/@c \$NetBSD\$\\
|
||||||
|
/" < $t > /tmp/bind4t$$
|
||||||
|
mv /tmp/bind4t$$ $t && echo added NetBSD RCS tag to $t
|
||||||
|
done
|
||||||
|
|
||||||
|
echo done
|
||||||
|
|
||||||
|
### Clean up any CVS directories that might be around.
|
||||||
|
echo "cleaning up CVS residue."
|
||||||
|
(
|
||||||
|
cd $d
|
||||||
|
find . -type d -name "CVS" -print | xargs rm -r
|
||||||
|
)
|
||||||
|
echo done
|
||||||
|
|
||||||
|
### Fixing file and directory permissions.
|
||||||
|
echo "Fixing file/directory permissions."
|
||||||
|
(
|
||||||
|
cd $d
|
||||||
|
find . -type f -print | xargs chmod u+rw,go+r
|
||||||
|
find . -type d -print | xargs chmod u+rwx,go+rx
|
||||||
|
)
|
||||||
|
echo done
|
||||||
|
|
||||||
|
exit 0
|
||||||
5
external/bsd/bind/dist/Atffile
vendored
Normal file
5
external/bsd/bind/dist/Atffile
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
Content-Type: application/X-atf-atffile; version="1"
|
||||||
|
|
||||||
|
prop: test-suite = bind9
|
||||||
|
|
||||||
|
tp: lib
|
||||||
13132
external/bsd/bind/dist/CHANGES
vendored
Normal file
13132
external/bsd/bind/dist/CHANGES
vendored
Normal file
File diff suppressed because it is too large
Load Diff
538
external/bsd/bind/dist/COPYRIGHT
vendored
Normal file
538
external/bsd/bind/dist/COPYRIGHT
vendored
Normal file
|
|
@ -0,0 +1,538 @@
|
||||||
|
Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
Copyright (C) 1996-2003 Internet Software Consortium.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
Portions of this code release fall under one or more of the
|
||||||
|
following Copyright notices. Please see individual source
|
||||||
|
files for details.
|
||||||
|
|
||||||
|
For binary releases also see: OpenSSL-LICENSE.
|
||||||
|
|
||||||
|
Copyright (C) 1996-2001 Nominum, Inc.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
||||||
|
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (C) 1995-2000 by Network Associates, Inc.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NETWORK ASSOCIATES DISCLAIMS
|
||||||
|
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE
|
||||||
|
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||||
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (C) 2002 Stichting NLnet, Netherlands, stichting@nlnet.nl.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the
|
||||||
|
above copyright notice and this permission notice appear in all
|
||||||
|
copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND STICHTING NLNET
|
||||||
|
DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
|
||||||
|
STICHTING NLNET BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||||
|
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||||
|
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||||
|
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
The development of Dynamically Loadable Zones (DLZ) for Bind 9 was
|
||||||
|
conceived and contributed by Rob Butler.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the
|
||||||
|
above copyright notice and this permission notice appear in all
|
||||||
|
copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND ROB BUTLER
|
||||||
|
DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
|
||||||
|
ROB BUTLER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||||
|
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||||
|
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||||
|
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1987, 1990, 1993, 1994
|
||||||
|
The Regents of the University of California. All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
3. Neither the name of the University nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (C) The Internet Society 2005. This version of
|
||||||
|
this module is part of RFC 4178; see the RFC itself for
|
||||||
|
full legal notices.
|
||||||
|
|
||||||
|
(The above copyright notice is per RFC 3978 5.6 (a), q.v.)
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2004 Masarykova universita
|
||||||
|
(Masaryk University, Brno, Czech Republic)
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the University nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||||
|
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||||
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||||
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1997 - 2003 Kungliga Tekniska Högskolan
|
||||||
|
(Royal Institute of Technology, Stockholm, Sweden).
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the Institute nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1998 Doug Rabson
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright ((c)) 2002, Rice University
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following
|
||||||
|
disclaimer in the documentation and/or other materials provided
|
||||||
|
with the distribution.
|
||||||
|
|
||||||
|
* Neither the name of Rice University (RICE) nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
|
||||||
|
This software is provided by RICE and the contributors on an "as is"
|
||||||
|
basis, without any representations or warranties of any kind, express
|
||||||
|
or implied including, but not limited to, representations or
|
||||||
|
warranties of non-infringement, merchantability or fitness for a
|
||||||
|
particular purpose. In no event shall RICE or contributors be liable
|
||||||
|
for any direct, indirect, incidental, special, exemplary, or
|
||||||
|
consequential damages (including, but not limited to, procurement of
|
||||||
|
substitute goods or services; loss of use, data, or profits; or
|
||||||
|
business interruption) however caused and on any theory of liability,
|
||||||
|
whether in contract, strict liability, or tort (including negligence
|
||||||
|
or otherwise) arising in any way out of the use of this software, even
|
||||||
|
if advised of the possibility of such damage.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1993 by Digital Equipment Corporation.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies, and that
|
||||||
|
the name of Digital Equipment Corporation not be used in advertising or
|
||||||
|
publicity pertaining to distribution of the document or software without
|
||||||
|
specific, written prior permission.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
|
||||||
|
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
|
||||||
|
CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||||
|
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||||
|
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||||
|
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright 2000 Aaron D. Gifford. All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
3. Neither the name of the copyright holder nor the names of contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTOR(S) ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTOR(S) BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1998 Doug Rabson.
|
||||||
|
Copyright (c) 2001 Jake Burkholder.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
3. Neither the name of the project nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1999-2000 by Nortel Networks Corporation
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND NORTEL NETWORKS DISCLAIMS
|
||||||
|
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NORTEL NETWORKS
|
||||||
|
BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
||||||
|
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||||
|
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved.
|
||||||
|
|
||||||
|
By using this file, you agree to the terms and conditions set forth bellow.
|
||||||
|
|
||||||
|
LICENSE TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
The following License Terms and Conditions apply, unless a different
|
||||||
|
license is obtained from Japan Network Information Center ("JPNIC"),
|
||||||
|
a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,
|
||||||
|
Chiyoda-ku, Tokyo 101-0047, Japan.
|
||||||
|
|
||||||
|
1. Use, Modification and Redistribution (including distribution of any
|
||||||
|
modified or derived work) in source and/or binary forms is permitted
|
||||||
|
under this License Terms and Conditions.
|
||||||
|
|
||||||
|
2. Redistribution of source code must retain the copyright notices as they
|
||||||
|
appear in each source code file, this License Terms and Conditions.
|
||||||
|
|
||||||
|
3. Redistribution in binary form must reproduce the Copyright Notice,
|
||||||
|
this License Terms and Conditions, in the documentation and/or other
|
||||||
|
materials provided with the distribution. For the purposes of binary
|
||||||
|
distribution the "Copyright Notice" refers to the following language:
|
||||||
|
"Copyright (c) 2000-2002 Japan Network Information Center. All rights
|
||||||
|
reserved."
|
||||||
|
|
||||||
|
4. The name of JPNIC may not be used to endorse or promote products
|
||||||
|
derived from this Software without specific prior written approval of
|
||||||
|
JPNIC.
|
||||||
|
|
||||||
|
5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JPNIC BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||||
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||||
|
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (C) 2004 Nominet, Ltd.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND NOMINET DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Portions Copyright RSA Security Inc.
|
||||||
|
|
||||||
|
License to copy and use this software is granted provided that it is
|
||||||
|
identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface
|
||||||
|
(Cryptoki)" in all material mentioning or referencing this software.
|
||||||
|
|
||||||
|
License is also granted to make and use derivative works provided that
|
||||||
|
such works are identified as "derived from the RSA Security Inc. PKCS #11
|
||||||
|
Cryptographic Token Interface (Cryptoki)" in all material mentioning or
|
||||||
|
referencing the derived work.
|
||||||
|
|
||||||
|
RSA Security Inc. makes no representations concerning either the
|
||||||
|
merchantability of this software or the suitability of this software for
|
||||||
|
any particular purpose. It is provided "as is" without express or implied
|
||||||
|
warranty of any kind.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1996, David Mazieres <dm@uun.org>
|
||||||
|
Copyright (c) 2008, Damien Miller <djm@openbsd.org>
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2000-2001 The OpenSSL Project. All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in
|
||||||
|
the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
|
||||||
|
3. All advertising materials mentioning features or use of this
|
||||||
|
software must display the following acknowledgment:
|
||||||
|
"This product includes software developed by the OpenSSL Project
|
||||||
|
for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
|
||||||
|
|
||||||
|
4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
|
||||||
|
endorse or promote products derived from this software without
|
||||||
|
prior written permission. For written permission, please contact
|
||||||
|
licensing@OpenSSL.org.
|
||||||
|
|
||||||
|
5. Products derived from this software may not be called "OpenSSL"
|
||||||
|
nor may "OpenSSL" appear in their names without prior written
|
||||||
|
permission of the OpenSSL Project.
|
||||||
|
|
||||||
|
6. Redistributions of any form whatsoever must retain the following
|
||||||
|
acknowledgment:
|
||||||
|
"This product includes software developed by the OpenSSL Project
|
||||||
|
for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
|
||||||
|
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
|
||||||
|
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||||
|
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||||
|
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||||
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||||
|
OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1995, 1997, 1998 The NetBSD Foundation, Inc.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||||
|
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||||
|
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||||
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||||
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
894
external/bsd/bind/dist/FAQ
vendored
Normal file
894
external/bsd/bind/dist/FAQ
vendored
Normal file
|
|
@ -0,0 +1,894 @@
|
||||||
|
Frequently Asked Questions about BIND 9
|
||||||
|
|
||||||
|
Copyright © 2004-2010, 2013, 2014 Internet Systems Consortium, Inc.
|
||||||
|
("ISC")
|
||||||
|
|
||||||
|
Copyright © 2000-2003 Internet Software Consortium.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
1. Compilation and Installation Questions
|
||||||
|
|
||||||
|
Q: I'm trying to compile BIND 9, and "make" is failing due to files not
|
||||||
|
being found. Why?
|
||||||
|
|
||||||
|
A: Using a parallel or distributed "make" to build BIND 9 is not
|
||||||
|
supported, and doesn't work. If you are using one of these, use normal
|
||||||
|
make or gmake instead.
|
||||||
|
|
||||||
|
Q: Isn't "make install" supposed to generate a default named.conf?
|
||||||
|
|
||||||
|
A: Short Answer: No.
|
||||||
|
|
||||||
|
Long Answer: There really isn't a default configuration which fits any
|
||||||
|
site perfectly. There are lots of decisions that need to be made and
|
||||||
|
there is no consensus on what the defaults should be. For example
|
||||||
|
FreeBSD uses /etc/namedb as the location where the configuration files
|
||||||
|
for named are stored. Others use /var/named.
|
||||||
|
|
||||||
|
What addresses to listen on? For a laptop on the move a lot you may
|
||||||
|
only want to listen on the loop back interfaces.
|
||||||
|
|
||||||
|
To whom do you offer recursive service? Is there a firewall to
|
||||||
|
consider? If so, is it stateless or stateful? Are you directly on the
|
||||||
|
Internet? Are you on a private network? Are you on a NAT'd network? The
|
||||||
|
answers to all these questions change how you configure even a caching
|
||||||
|
name server.
|
||||||
|
|
||||||
|
2. Configuration and Setup Questions
|
||||||
|
|
||||||
|
Q: Why does named log the warning message "no TTL specified - using SOA
|
||||||
|
MINTTL instead"?
|
||||||
|
|
||||||
|
A: Your zone file is illegal according to RFC1035. It must either have a
|
||||||
|
line like:
|
||||||
|
|
||||||
|
$TTL 86400
|
||||||
|
|
||||||
|
at the beginning, or the first record in it must have a TTL field, like
|
||||||
|
the "84600" in this example:
|
||||||
|
|
||||||
|
example.com. 86400 IN SOA ns hostmaster ( 1 3600 1800 1814400 3600 )
|
||||||
|
|
||||||
|
Q: Why do I get errors like "dns_zone_load: zone foo/IN: loading master
|
||||||
|
file bar: ran out of space"?
|
||||||
|
|
||||||
|
A: This is often caused by TXT records with missing close quotes. Check
|
||||||
|
that all TXT records containing quoted strings have both open and close
|
||||||
|
quotes.
|
||||||
|
|
||||||
|
Q: How do I restrict people from looking up the server version?
|
||||||
|
|
||||||
|
A: Put a "version" option containing something other than the real version
|
||||||
|
in the "options" section of named.conf. Note doing this will not
|
||||||
|
prevent attacks and may impede people trying to diagnose problems with
|
||||||
|
your server. Also it is possible to "fingerprint" nameservers to
|
||||||
|
determine their version.
|
||||||
|
|
||||||
|
Q: How do I restrict only remote users from looking up the server version?
|
||||||
|
|
||||||
|
A: The following view statement will intercept lookups as the internal
|
||||||
|
view that holds the version information will be matched last. The
|
||||||
|
caveats of the previous answer still apply, of course.
|
||||||
|
|
||||||
|
view "chaos" chaos {
|
||||||
|
match-clients { <those to be refused>; };
|
||||||
|
allow-query { none; };
|
||||||
|
zone "." {
|
||||||
|
type hint;
|
||||||
|
file "/dev/null"; // or any empty file
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
Q: What do "no source of entropy found" or "could not open entropy source
|
||||||
|
foo" mean?
|
||||||
|
|
||||||
|
A: The server requires a source of entropy to perform certain operations,
|
||||||
|
mostly DNSSEC related. These messages indicate that you have no source
|
||||||
|
of entropy. On systems with /dev/random or an equivalent, it is used by
|
||||||
|
default. A source of entropy can also be defined using the
|
||||||
|
random-device option in named.conf.
|
||||||
|
|
||||||
|
Q: I'm trying to use TSIG to authenticate dynamic updates or zone
|
||||||
|
transfers. I'm sure I have the keys set up correctly, but the server is
|
||||||
|
rejecting the TSIG. Why?
|
||||||
|
|
||||||
|
A: This may be a clock skew problem. Check that the the clocks on the
|
||||||
|
client and server are properly synchronised (e.g., using ntp).
|
||||||
|
|
||||||
|
Q: I see a log message like the following. Why?
|
||||||
|
|
||||||
|
couldn't open pid file '/var/run/named.pid': Permission denied
|
||||||
|
|
||||||
|
A: You are most likely running named as a non-root user, and that user
|
||||||
|
does not have permission to write in /var/run. The common ways of
|
||||||
|
fixing this are to create a /var/run/named directory owned by the named
|
||||||
|
user and set pid-file to "/var/run/named/named.pid", or set pid-file to
|
||||||
|
"named.pid", which will put the file in the directory specified by the
|
||||||
|
directory option (which, in this case, must be writable by the user
|
||||||
|
named is running as).
|
||||||
|
|
||||||
|
Q: I can query the nameserver from the nameserver but not from other
|
||||||
|
machines. Why?
|
||||||
|
|
||||||
|
A: This is usually the result of the firewall configuration stopping the
|
||||||
|
queries and / or the replies.
|
||||||
|
|
||||||
|
Q: How can I make a server a slave for both an internal and an external
|
||||||
|
view at the same time? When I tried, both views on the slave were
|
||||||
|
transferred from the same view on the master.
|
||||||
|
|
||||||
|
A: You will need to give the master and slave multiple IP addresses and
|
||||||
|
use those to make sure you reach the correct view on the other machine.
|
||||||
|
|
||||||
|
Master: 10.0.1.1 (internal), 10.0.1.2 (external, IP alias)
|
||||||
|
internal:
|
||||||
|
match-clients { !10.0.1.2; !10.0.1.4; 10.0.1/24; };
|
||||||
|
notify-source 10.0.1.1;
|
||||||
|
transfer-source 10.0.1.1;
|
||||||
|
query-source address 10.0.1.1;
|
||||||
|
external:
|
||||||
|
match-clients { any; };
|
||||||
|
recursion no; // don't offer recursion to the world
|
||||||
|
notify-source 10.0.1.2;
|
||||||
|
transfer-source 10.0.1.2;
|
||||||
|
query-source address 10.0.1.2;
|
||||||
|
|
||||||
|
Slave: 10.0.1.3 (internal), 10.0.1.4 (external, IP alias)
|
||||||
|
internal:
|
||||||
|
match-clients { !10.0.1.2; !10.0.1.4; 10.0.1/24; };
|
||||||
|
notify-source 10.0.1.3;
|
||||||
|
transfer-source 10.0.1.3;
|
||||||
|
query-source address 10.0.1.3;
|
||||||
|
external:
|
||||||
|
match-clients { any; };
|
||||||
|
recursion no; // don't offer recursion to the world
|
||||||
|
notify-source 10.0.1.4;
|
||||||
|
transfer-source 10.0.1.4;
|
||||||
|
query-source address 10.0.1.4;
|
||||||
|
|
||||||
|
You put the external address on the alias so that all the other dns
|
||||||
|
clients on these boxes see the internal view by default.
|
||||||
|
|
||||||
|
A: BIND 9.3 and later: Use TSIG to select the appropriate view.
|
||||||
|
|
||||||
|
Master 10.0.1.1:
|
||||||
|
key "external" {
|
||||||
|
algorithm hmac-sha256;
|
||||||
|
secret "xxxxxxxxxxxxxxxxxxxxxxxx";
|
||||||
|
};
|
||||||
|
view "internal" {
|
||||||
|
match-clients { !key external; // reject message ment for the
|
||||||
|
// external view.
|
||||||
|
10.0.1/24; }; // accept from these addresses.
|
||||||
|
...
|
||||||
|
};
|
||||||
|
view "external" {
|
||||||
|
match-clients { key external; any; };
|
||||||
|
server 10.0.1.2 { keys external; }; // tag messages from the
|
||||||
|
// external view to the
|
||||||
|
// other servers for the
|
||||||
|
// view.
|
||||||
|
recursion no;
|
||||||
|
...
|
||||||
|
};
|
||||||
|
|
||||||
|
Slave 10.0.1.2:
|
||||||
|
key "external" {
|
||||||
|
algorithm hmac-sha256;
|
||||||
|
secret "xxxxxxxxxxxxxxxxxxxxxxxx";
|
||||||
|
};
|
||||||
|
view "internal" {
|
||||||
|
match-clients { !key external; 10.0.1/24; };
|
||||||
|
...
|
||||||
|
};
|
||||||
|
view "external" {
|
||||||
|
match-clients { key external; any; };
|
||||||
|
server 10.0.1.1 { keys external; };
|
||||||
|
recursion no;
|
||||||
|
...
|
||||||
|
};
|
||||||
|
|
||||||
|
Q: I get error messages like "multiple RRs of singleton type" and "CNAME
|
||||||
|
and other data" when transferring a zone. What does this mean?
|
||||||
|
|
||||||
|
A: These indicate a malformed master zone. You can identify the exact
|
||||||
|
records involved by transferring the zone using dig then running
|
||||||
|
named-checkzone on it.
|
||||||
|
|
||||||
|
dig axfr example.com @master-server > tmp
|
||||||
|
named-checkzone example.com tmp
|
||||||
|
|
||||||
|
A CNAME record cannot exist with the same name as another record except
|
||||||
|
for the DNSSEC records which prove its existence (NSEC).
|
||||||
|
|
||||||
|
RFC 1034, Section 3.6.2: "If a CNAME RR is present at a node, no other
|
||||||
|
data should be present; this ensures that the data for a canonical name
|
||||||
|
and its aliases cannot be different. This rule also insures that a
|
||||||
|
cached CNAME can be used without checking with an authoritative server
|
||||||
|
for other RR types."
|
||||||
|
|
||||||
|
Q: I get error messages like "named.conf:99: unexpected end of input"
|
||||||
|
where 99 is the last line of named.conf.
|
||||||
|
|
||||||
|
A: There are unbalanced quotes in named.conf.
|
||||||
|
|
||||||
|
A: Some text editors (notepad and wordpad) fail to put a line title
|
||||||
|
indication (e.g. CR/LF) on the last line of a text file. This can be
|
||||||
|
fixed by "adding" a blank line to the end of the file. Named expects to
|
||||||
|
see EOF immediately after EOL and treats text files where this is not
|
||||||
|
met as truncated.
|
||||||
|
|
||||||
|
Q: How do I share a dynamic zone between multiple views?
|
||||||
|
|
||||||
|
A: You choose one view to be master and the second a slave and transfer
|
||||||
|
the zone between views.
|
||||||
|
|
||||||
|
Master 10.0.1.1:
|
||||||
|
key "external" {
|
||||||
|
algorithm hmac-sha256;
|
||||||
|
secret "xxxxxxxxxxxxxxxxxxxxxxxx";
|
||||||
|
};
|
||||||
|
|
||||||
|
key "mykey" {
|
||||||
|
algorithm hmac-sha256;
|
||||||
|
secret "yyyyyyyyyyyyyyyyyyyyyyyy";
|
||||||
|
};
|
||||||
|
|
||||||
|
view "internal" {
|
||||||
|
match-clients { !key external; 10.0.1/24; };
|
||||||
|
server 10.0.1.1 {
|
||||||
|
/* Deliver notify messages to external view. */
|
||||||
|
keys { external; };
|
||||||
|
};
|
||||||
|
zone "example.com" {
|
||||||
|
type master;
|
||||||
|
file "internal/example.db";
|
||||||
|
allow-update { key mykey; };
|
||||||
|
also-notify { 10.0.1.1; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
view "external" {
|
||||||
|
match-clients { key external; any; };
|
||||||
|
zone "example.com" {
|
||||||
|
type slave;
|
||||||
|
file "external/example.db";
|
||||||
|
masters { 10.0.1.1; };
|
||||||
|
transfer-source 10.0.1.1;
|
||||||
|
// allow-update-forwarding { any; };
|
||||||
|
// allow-notify { ... };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
Q: I get a error message like "zone wireless.ietf56.ietf.org/IN: loading
|
||||||
|
master file primaries/wireless.ietf56.ietf.org: no owner".
|
||||||
|
|
||||||
|
A: This error is produced when a line in the master file contains leading
|
||||||
|
white space (tab/space) but there is no current record owner name to
|
||||||
|
inherit the name from. Usually this is the result of putting white
|
||||||
|
space before a comment, forgetting the "@" for the SOA record, or
|
||||||
|
indenting the master file.
|
||||||
|
|
||||||
|
Q: Why are my logs in GMT (UTC).
|
||||||
|
|
||||||
|
A: You are running chrooted (-t) and have not supplied local timezone
|
||||||
|
information in the chroot area.
|
||||||
|
|
||||||
|
FreeBSD: /etc/localtime
|
||||||
|
Solaris: /etc/TIMEZONE and /usr/share/lib/zoneinfo
|
||||||
|
OSF: /etc/zoneinfo/localtime
|
||||||
|
|
||||||
|
See also tzset(3) and zic(8).
|
||||||
|
|
||||||
|
Q: I get "rndc: connect failed: connection refused" when I try to run
|
||||||
|
rndc.
|
||||||
|
|
||||||
|
A: This is usually a configuration error.
|
||||||
|
|
||||||
|
First ensure that named is running and no errors are being reported at
|
||||||
|
startup (/var/log/messages or equivalent). Running "named -g <usual
|
||||||
|
arguments>" from a title can help at this point.
|
||||||
|
|
||||||
|
Secondly ensure that named is configured to use rndc either by
|
||||||
|
"rndc-confgen -a", rndc-confgen or manually. The Administrators
|
||||||
|
Reference manual has details on how to do this.
|
||||||
|
|
||||||
|
Old versions of rndc-confgen used localhost rather than 127.0.0.1 in /
|
||||||
|
etc/rndc.conf for the default server. Update /etc/rndc.conf if
|
||||||
|
necessary so that the default server listed in /etc/rndc.conf matches
|
||||||
|
the addresses used in named.conf. "localhost" has two address
|
||||||
|
(127.0.0.1 and ::1).
|
||||||
|
|
||||||
|
If you use "rndc-confgen -a" and named is running with -t or -u ensure
|
||||||
|
that /etc/rndc.conf has the correct ownership and that a copy is in the
|
||||||
|
chroot area. You can do this by re-running "rndc-confgen -a" with
|
||||||
|
appropriate -t and -u arguments.
|
||||||
|
|
||||||
|
Q: I get "transfer of 'example.net/IN' from 192.168.4.12#53: failed while
|
||||||
|
receiving responses: permission denied" error messages.
|
||||||
|
|
||||||
|
A: These indicate a filesystem permission error preventing named creating
|
||||||
|
/ renaming the temporary file. These will usually also have other
|
||||||
|
associated error messages like
|
||||||
|
|
||||||
|
"dumping master file: sl/tmp-XXXX5il3sQ: open: permission denied"
|
||||||
|
|
||||||
|
Named needs write permission on the directory containing the file.
|
||||||
|
Named writes the new cache file to a temporary file then renames it to
|
||||||
|
the name specified in named.conf to ensure that the contents are always
|
||||||
|
complete. This is to prevent named loading a partial zone in the event
|
||||||
|
of power failure or similar interrupting the write of the master file.
|
||||||
|
|
||||||
|
Note file names are relative to the directory specified in options and
|
||||||
|
any chroot directory ([<chroot dir>/][<options dir>]).
|
||||||
|
|
||||||
|
If named is invoked as "named -t /chroot/DNS" with the following
|
||||||
|
named.conf then "/chroot/DNS/var/named/sl" needs to be writable by the
|
||||||
|
user named is running as.
|
||||||
|
|
||||||
|
options {
|
||||||
|
directory "/var/named";
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "example.net" {
|
||||||
|
type slave;
|
||||||
|
file "sl/example.net";
|
||||||
|
masters { 192.168.4.12; };
|
||||||
|
};
|
||||||
|
|
||||||
|
Q: I want to forward all DNS queries from my caching nameserver to another
|
||||||
|
server. But there are some domains which have to be served locally, via
|
||||||
|
rbldnsd.
|
||||||
|
|
||||||
|
How do I achieve this ?
|
||||||
|
|
||||||
|
A: options {
|
||||||
|
forward only;
|
||||||
|
forwarders { <ip.of.primary.nameserver>; };
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "sbl-xbl.spamhaus.org" {
|
||||||
|
type forward; forward only;
|
||||||
|
forwarders { <ip.of.rbldns.server> port 530; };
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "list.dsbl.org" {
|
||||||
|
type forward; forward only;
|
||||||
|
forwarders { <ip.of.rbldns.server> port 530; };
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Q: Can you help me understand how BIND 9 uses memory to store DNS zones?
|
||||||
|
|
||||||
|
Some times it seems to take several times the amount of memory it needs
|
||||||
|
to store the zone.
|
||||||
|
|
||||||
|
A: When reloading a zone named my have multiple copies of the zone in
|
||||||
|
memory at one time. The zone it is serving and the one it is loading.
|
||||||
|
If reloads are ultra fast it can have more still.
|
||||||
|
|
||||||
|
e.g. Ones that are transferring out, the one that it is serving and the
|
||||||
|
one that is loading.
|
||||||
|
|
||||||
|
BIND 8 destroyed the zone before loading and also killed off outgoing
|
||||||
|
transfers of the zone.
|
||||||
|
|
||||||
|
The new strategy allows slaves to get copies of the new zone regardless
|
||||||
|
of how often the master is loaded compared to the transfer time. The
|
||||||
|
slave might skip some intermediate versions but the transfers will
|
||||||
|
complete and it will keep reasonably in sync with the master.
|
||||||
|
|
||||||
|
The new strategy also allows the master to recover from syntax and
|
||||||
|
other errors in the master file as it still has an in-core copy of the
|
||||||
|
old contents.
|
||||||
|
|
||||||
|
Q: I want to use IPv6 locally but I don't have a external IPv6 connection.
|
||||||
|
External lookups are slow.
|
||||||
|
|
||||||
|
A: You can use server clauses to stop named making external lookups over
|
||||||
|
IPv6.
|
||||||
|
|
||||||
|
server fd81:ec6c:bd62::/48 { bogus no; }; // site ULA prefix
|
||||||
|
server ::/0 { bogus yes; };
|
||||||
|
|
||||||
|
3. Operations Questions
|
||||||
|
|
||||||
|
Q: How to change the nameservers for a zone?
|
||||||
|
|
||||||
|
A: Step 1: Ensure all nameservers, new and old, are serving the same zone
|
||||||
|
content.
|
||||||
|
|
||||||
|
Step 2: Work out the maximum TTL of the NS RRset in the parent and
|
||||||
|
child zones. This is the time it will take caches to be clear of a
|
||||||
|
particular version of the NS RRset. If you are just removing
|
||||||
|
nameservers you can skip to Step 6.
|
||||||
|
|
||||||
|
Step 3: Add new nameservers to the NS RRset for the zone and wait until
|
||||||
|
all the servers for the zone are answering with this new NS RRset.
|
||||||
|
|
||||||
|
Step 4: Inform the parent zone of the new NS RRset then wait for all
|
||||||
|
the parent servers to be answering with the new NS RRset.
|
||||||
|
|
||||||
|
Step 5: Wait for cache to be clear of the old NS RRset. See Step 2 for
|
||||||
|
how long. If you are just adding nameservers you are done.
|
||||||
|
|
||||||
|
Step 6: Remove any old nameservers from the zones NS RRset and wait for
|
||||||
|
all the servers for the zone to be serving the new NS RRset.
|
||||||
|
|
||||||
|
Step 7: Inform the parent zone of the new NS RRset then wait for all
|
||||||
|
the parent servers to be answering with the new NS RRset.
|
||||||
|
|
||||||
|
Step 8: Wait for cache to be clear of the old NS RRset. See Step 2 for
|
||||||
|
how long.
|
||||||
|
|
||||||
|
Step 9: Turn off the old nameservers or remove the zone entry from the
|
||||||
|
configuration of the old nameservers.
|
||||||
|
|
||||||
|
Step 10: Increment the serial number and wait for the change to be
|
||||||
|
visible in all nameservers for the zone. This ensures that zone
|
||||||
|
transfers are still working after the old servers are decommissioned.
|
||||||
|
|
||||||
|
Note: the above procedure is designed to be transparent to dns clients.
|
||||||
|
Decommissioning the old servers too early will result in some clients
|
||||||
|
not being able to look up answers in the zone.
|
||||||
|
|
||||||
|
Note: while it is possible to run the addition and removal stages
|
||||||
|
together it is not recommended.
|
||||||
|
|
||||||
|
4. General Questions
|
||||||
|
|
||||||
|
Q: I keep getting log messages like the following. Why?
|
||||||
|
|
||||||
|
Dec 4 23:47:59 client 10.0.0.1#1355: updating zone 'example.com/IN':
|
||||||
|
update failed: 'RRset exists (value dependent)' prerequisite not
|
||||||
|
satisfied (NXRRSET)
|
||||||
|
|
||||||
|
A: DNS updates allow the update request to test to see if certain
|
||||||
|
conditions are met prior to proceeding with the update. The message
|
||||||
|
above is saying that conditions were not met and the update is not
|
||||||
|
proceeding. See doc/rfc/rfc2136.txt for more details on prerequisites.
|
||||||
|
|
||||||
|
Q: I keep getting log messages like the following. Why?
|
||||||
|
|
||||||
|
Jun 21 12:00:00.000 client 10.0.0.1#1234: update denied
|
||||||
|
|
||||||
|
A: Someone is trying to update your DNS data using the RFC2136 Dynamic
|
||||||
|
Update protocol. Windows 2000 machines have a habit of sending dynamic
|
||||||
|
update requests to DNS servers without being specifically configured to
|
||||||
|
do so. If the update requests are coming from a Windows 2000 machine,
|
||||||
|
see <http://support.microsoft.com/support/kb/articles/q246/8/04.asp>
|
||||||
|
for information about how to turn them off.
|
||||||
|
|
||||||
|
Q: When I do a "dig . ns", many of the A records for the root servers are
|
||||||
|
missing. Why?
|
||||||
|
|
||||||
|
A: This is normal and harmless. It is a somewhat confusing side effect of
|
||||||
|
the way BIND 9 does RFC2181 trust ranking and of the efforts BIND 9
|
||||||
|
makes to avoid promoting glue into answers.
|
||||||
|
|
||||||
|
When BIND 9 first starts up and primes its cache, it receives the root
|
||||||
|
server addresses as additional data in an authoritative response from a
|
||||||
|
root server, and these records are eligible for inclusion as additional
|
||||||
|
data in responses. Subsequently it receives a subset of the root server
|
||||||
|
addresses as additional data in a non-authoritative (referral) response
|
||||||
|
from a root server. This causes the addresses to now be considered
|
||||||
|
non-authoritative (glue) data, which is not eligible for inclusion in
|
||||||
|
responses.
|
||||||
|
|
||||||
|
The server does have a complete set of root server addresses cached at
|
||||||
|
all times, it just may not include all of them as additional data,
|
||||||
|
depending on whether they were last received as answers or as glue. You
|
||||||
|
can always look up the addresses with explicit queries like "dig
|
||||||
|
a.root-servers.net A".
|
||||||
|
|
||||||
|
Q: Why don't my zones reload when I do an "rndc reload" or SIGHUP?
|
||||||
|
|
||||||
|
A: A zone can be updated either by editing zone files and reloading the
|
||||||
|
server or by dynamic update, but not both. If you have enabled dynamic
|
||||||
|
update for a zone using the "allow-update" option, you are not supposed
|
||||||
|
to edit the zone file by hand, and the server will not attempt to
|
||||||
|
reload it.
|
||||||
|
|
||||||
|
Q: Why is named listening on UDP port other than 53?
|
||||||
|
|
||||||
|
A: Named uses a system selected port to make queries of other nameservers.
|
||||||
|
This behaviour can be overridden by using query-source to lock down the
|
||||||
|
port and/or address. See also notify-source and transfer-source.
|
||||||
|
|
||||||
|
Q: I get warning messages like "zone example.com/IN: refresh: failure
|
||||||
|
trying master 1.2.3.4#53: timed out".
|
||||||
|
|
||||||
|
A: Check that you can make UDP queries from the slave to the master
|
||||||
|
|
||||||
|
dig +norec example.com soa @1.2.3.4
|
||||||
|
|
||||||
|
You could be generating queries faster than the slave can cope with.
|
||||||
|
Lower the serial query rate.
|
||||||
|
|
||||||
|
serial-query-rate 5; // default 20
|
||||||
|
|
||||||
|
Q: I don't get RRSIG's returned when I use "dig +dnssec".
|
||||||
|
|
||||||
|
A: You need to ensure DNSSEC is enabled (dnssec-enable yes;).
|
||||||
|
|
||||||
|
Q: Can a NS record refer to a CNAME.
|
||||||
|
|
||||||
|
A: No. The rules for glue (copies of the *address* records in the parent
|
||||||
|
zones) and additional section processing do not allow it to work.
|
||||||
|
|
||||||
|
You would have to add both the CNAME and address records (A/AAAA) as
|
||||||
|
glue to the parent zone and have CNAMEs be followed when doing
|
||||||
|
additional section processing to make it work. No nameserver
|
||||||
|
implementation supports either of these requirements.
|
||||||
|
|
||||||
|
Q: What does "RFC 1918 response from Internet for 0.0.0.10.IN-ADDR.ARPA"
|
||||||
|
mean?
|
||||||
|
|
||||||
|
A: If the IN-ADDR.ARPA name covered refers to a internal address space you
|
||||||
|
are using then you have failed to follow RFC 1918 usage rules and are
|
||||||
|
leaking queries to the Internet. You should establish your own zones
|
||||||
|
for these addresses to prevent you querying the Internet's name servers
|
||||||
|
for these addresses. Please see <http://as112.net/> for details of the
|
||||||
|
problems you are causing and the counter measures that have had to be
|
||||||
|
deployed.
|
||||||
|
|
||||||
|
If you are not using these private addresses then a client has queried
|
||||||
|
for them. You can just ignore the messages, get the offending client to
|
||||||
|
stop sending you these messages as they are most probably leaking them
|
||||||
|
or setup your own zones empty zones to serve answers to these queries.
|
||||||
|
|
||||||
|
zone "10.IN-ADDR.ARPA" {
|
||||||
|
type master;
|
||||||
|
file "empty";
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "16.172.IN-ADDR.ARPA" {
|
||||||
|
type master;
|
||||||
|
file "empty";
|
||||||
|
};
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
zone "31.172.IN-ADDR.ARPA" {
|
||||||
|
type master;
|
||||||
|
file "empty";
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "168.192.IN-ADDR.ARPA" {
|
||||||
|
type master;
|
||||||
|
file "empty";
|
||||||
|
};
|
||||||
|
|
||||||
|
empty:
|
||||||
|
@ 10800 IN SOA <name-of-server>. <contact-email>. (
|
||||||
|
1 3600 1200 604800 10800 )
|
||||||
|
@ 10800 IN NS <name-of-server>.
|
||||||
|
|
||||||
|
Note
|
||||||
|
|
||||||
|
Future versions of named are likely to do this automatically.
|
||||||
|
|
||||||
|
Q: Will named be affected by the 2007 changes to daylight savings rules in
|
||||||
|
the US.
|
||||||
|
|
||||||
|
A: No, so long as the machines internal clock (as reported by "date -u")
|
||||||
|
remains at UTC. The only visible change if you fail to upgrade your OS,
|
||||||
|
if you are in a affected area, will be that log messages will be a hour
|
||||||
|
out during the period where the old rules do not match the new rules.
|
||||||
|
|
||||||
|
For most OS's this change just means that you need to update the
|
||||||
|
conversion rules from UTC to local time. Normally this involves
|
||||||
|
updating a file in /etc (which sets the default timezone for the
|
||||||
|
machine) and possibly a directory which has all the conversion rules
|
||||||
|
for the world (e.g. /usr/share/zoneinfo). When updating the OS do not
|
||||||
|
forget to update any chroot areas as well. See your OS's documentation
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
The local timezone conversion rules can also be done on a individual
|
||||||
|
basis by setting the TZ environment variable appropriately. See your
|
||||||
|
OS's documentation for more details.
|
||||||
|
|
||||||
|
Q: Is there a bugzilla (or other tool) database that mere mortals can have
|
||||||
|
(read-only) access to for bind?
|
||||||
|
|
||||||
|
A: No. The BIND 9 bug database is kept closed for a number of reasons.
|
||||||
|
These include, but are not limited to, that the database contains
|
||||||
|
proprietory information from people reporting bugs. The database has in
|
||||||
|
the past and may in future contain unfixed bugs which are capable of
|
||||||
|
bringing down most of the Internet's DNS infrastructure.
|
||||||
|
|
||||||
|
The release pages for each version contain up to date lists of bugs
|
||||||
|
that have been fixed post release. That is as close as we can get to
|
||||||
|
providing a bug database.
|
||||||
|
|
||||||
|
Q: Why do queries for NSEC3 records fail to return the NSEC3 record?
|
||||||
|
|
||||||
|
A: NSEC3 records are strictly meta data and can only be returned in the
|
||||||
|
authority section. This is done so that signing the zone using NSEC3
|
||||||
|
records does not bring names into existence that do not exist in the
|
||||||
|
unsigned version of the zone.
|
||||||
|
|
||||||
|
5. Operating-System Specific Questions
|
||||||
|
|
||||||
|
5.1. HPUX
|
||||||
|
|
||||||
|
Q: I get the following error trying to configure BIND:
|
||||||
|
|
||||||
|
checking if unistd.h or sys/types.h defines fd_set... no
|
||||||
|
configure: error: need either working unistd.h or sys/select.h
|
||||||
|
|
||||||
|
A: You have attempted to configure BIND with the bundled C compiler. This
|
||||||
|
compiler does not meet the minimum compiler requirements to for
|
||||||
|
building BIND. You need to install a ANSI C compiler and / or teach
|
||||||
|
configure how to find the ANSI C compiler. The later can be done by
|
||||||
|
adjusting the PATH environment variable and / or specifying the
|
||||||
|
compiler via CC.
|
||||||
|
|
||||||
|
./configure CC=<compiler> ...
|
||||||
|
|
||||||
|
5.2. Linux
|
||||||
|
|
||||||
|
Q: Why do I get the following errors:
|
||||||
|
|
||||||
|
general: errno2result.c:109: unexpected error:
|
||||||
|
general: unable to convert errno to isc_result: 14: Bad address
|
||||||
|
client: UDP client handler shutting down due to fatal receive error: unexpected error
|
||||||
|
|
||||||
|
A: This is the result of a Linux kernel bug.
|
||||||
|
|
||||||
|
See: <http://marc.theaimsgroup.com/?l=linux-netdev&m=113081708031466&w=
|
||||||
|
2>
|
||||||
|
|
||||||
|
Q: Why does named lock up when it attempts to connect over IPSEC tunnels?
|
||||||
|
|
||||||
|
A: This is due to a kernel bug where the fact that a socket is marked
|
||||||
|
non-blocking is ignored. It is reported that setting xfrm_larval_drop
|
||||||
|
to 1 helps but this may have negative side effects. See: <https://
|
||||||
|
bugzilla.redhat.com/show_bug.cgi?id=427629> and <http://lkml.org/lkml/
|
||||||
|
2007/12/4/260>.
|
||||||
|
|
||||||
|
xfrm_larval_drop can be set to 1 by the following procedure:
|
||||||
|
|
||||||
|
echo "1" > proc/sys/net/core/xfrm_larval_drop
|
||||||
|
|
||||||
|
Q: Why do I see 5 (or more) copies of named on Linux?
|
||||||
|
|
||||||
|
A: Linux threads each show up as a process under ps. The approximate
|
||||||
|
number of threads running is n+4, where n is the number of CPUs. Note
|
||||||
|
that the amount of memory used is not cumulative; if each process is
|
||||||
|
using 10M of memory, only a total of 10M is used.
|
||||||
|
|
||||||
|
Newer versions of Linux's ps command hide the individual threads and
|
||||||
|
require -L to display them.
|
||||||
|
|
||||||
|
Q: Why does BIND 9 log "permission denied" errors accessing its
|
||||||
|
configuration files or zones on my Linux system even though it is
|
||||||
|
running as root?
|
||||||
|
|
||||||
|
A: On Linux, BIND 9 drops most of its root privileges on startup. This
|
||||||
|
including the privilege to open files owned by other users. Therefore,
|
||||||
|
if the server is running as root, the configuration files and zone
|
||||||
|
files should also be owned by root.
|
||||||
|
|
||||||
|
Q: I get the error message "named: capset failed: Operation not permitted"
|
||||||
|
when starting named.
|
||||||
|
|
||||||
|
A: The capability module, part of "Linux Security Modules/LSM", has not
|
||||||
|
been loaded into the kernel. See insmod(8), modprobe(8).
|
||||||
|
|
||||||
|
The relevant modules can be loaded by running:
|
||||||
|
|
||||||
|
modprobe commoncap
|
||||||
|
modprobe capability
|
||||||
|
|
||||||
|
Q: I'm running BIND on Red Hat Enterprise Linux or Fedora Core -
|
||||||
|
|
||||||
|
Why can't named update slave zone database files?
|
||||||
|
|
||||||
|
Why can't named create DDNS journal files or update the master zones
|
||||||
|
from journals?
|
||||||
|
|
||||||
|
Why can't named create custom log files?
|
||||||
|
|
||||||
|
A: Red Hat Security Enhanced Linux (SELinux) policy security protections :
|
||||||
|
|
||||||
|
Red Hat have adopted the National Security Agency's SELinux security
|
||||||
|
policy (see <http://www.nsa.gov/selinux>) and recommendations for BIND
|
||||||
|
security , which are more secure than running named in a chroot and
|
||||||
|
make use of the bind-chroot environment unnecessary .
|
||||||
|
|
||||||
|
By default, named is not allowed by the SELinux policy to write, create
|
||||||
|
or delete any files EXCEPT in these directories:
|
||||||
|
|
||||||
|
$ROOTDIR/var/named/slaves
|
||||||
|
$ROOTDIR/var/named/data
|
||||||
|
$ROOTDIR/var/tmp
|
||||||
|
|
||||||
|
|
||||||
|
where $ROOTDIR may be set in /etc/sysconfig/named if bind-chroot is
|
||||||
|
installed.
|
||||||
|
|
||||||
|
The SELinux policy particularly does NOT allow named to modify the
|
||||||
|
$ROOTDIR/var/named directory, the default location for master zone
|
||||||
|
database files.
|
||||||
|
|
||||||
|
SELinux policy overrules file access permissions - so even if all the
|
||||||
|
files under /var/named have ownership named:named and mode rw-rw-r--,
|
||||||
|
named will still not be able to write or create files except in the
|
||||||
|
directories above, with SELinux in Enforcing mode.
|
||||||
|
|
||||||
|
So, to allow named to update slave or DDNS zone files, it is best to
|
||||||
|
locate them in $ROOTDIR/var/named/slaves, with named.conf zone
|
||||||
|
statements such as:
|
||||||
|
|
||||||
|
zone "slave.zone." IN {
|
||||||
|
type slave;
|
||||||
|
file "slaves/slave.zone.db";
|
||||||
|
...
|
||||||
|
};
|
||||||
|
zone "ddns.zone." IN {
|
||||||
|
type master;
|
||||||
|
allow-updates {...};
|
||||||
|
file "slaves/ddns.zone.db";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
To allow named to create its cache dump and statistics files, for
|
||||||
|
example, you could use named.conf options statements such as:
|
||||||
|
|
||||||
|
options {
|
||||||
|
...
|
||||||
|
dump-file "/var/named/data/cache_dump.db";
|
||||||
|
statistics-file "/var/named/data/named_stats.txt";
|
||||||
|
...
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
You can also tell SELinux to allow named to update any zone database
|
||||||
|
files, by setting the SELinux tunable boolean parameter
|
||||||
|
'named_write_master_zones=1', using the system-config-securitylevel
|
||||||
|
GUI, using the 'setsebool' command, or in /etc/selinux/targeted/
|
||||||
|
booleans.
|
||||||
|
|
||||||
|
You can disable SELinux protection for named entirely by setting the
|
||||||
|
'named_disable_trans=1' SELinux tunable boolean parameter.
|
||||||
|
|
||||||
|
The SELinux named policy defines these SELinux contexts for named:
|
||||||
|
|
||||||
|
named_zone_t : for zone database files - $ROOTDIR/var/named/*
|
||||||
|
named_conf_t : for named configuration files - $ROOTDIR/etc/{named,rndc}.*
|
||||||
|
named_cache_t: for files modifiable by named - $ROOTDIR/var/{tmp,named/{slaves,data}}
|
||||||
|
|
||||||
|
|
||||||
|
If you want to retain use of the SELinux policy for named, and put
|
||||||
|
named files in different locations, you can do so by changing the
|
||||||
|
context of the custom file locations .
|
||||||
|
|
||||||
|
To create a custom configuration file location, e.g. '/root/
|
||||||
|
named.conf', to use with the 'named -c' option, do:
|
||||||
|
|
||||||
|
# chcon system_u:object_r:named_conf_t /root/named.conf
|
||||||
|
|
||||||
|
|
||||||
|
To create a custom modifiable named data location, e.g. '/var/log/
|
||||||
|
named' for a log file, do:
|
||||||
|
|
||||||
|
# chcon system_u:object_r:named_cache_t /var/log/named
|
||||||
|
|
||||||
|
|
||||||
|
To create a custom zone file location, e.g. /root/zones/, do:
|
||||||
|
|
||||||
|
# chcon system_u:object_r:named_zone_t /root/zones/{.,*}
|
||||||
|
|
||||||
|
|
||||||
|
See these man-pages for more information : selinux(8), named_selinux
|
||||||
|
(8), chcon(1), setsebool(8)
|
||||||
|
|
||||||
|
Q: I'm running BIND on Ubuntu -
|
||||||
|
|
||||||
|
Why can't named update slave zone database files?
|
||||||
|
|
||||||
|
Why can't named create DDNS journal files or update the master zones
|
||||||
|
from journals?
|
||||||
|
|
||||||
|
Why can't named create custom log files?
|
||||||
|
|
||||||
|
A: Ubuntu uses AppArmor <http://en.wikipedia.org/wiki/AppArmor> in
|
||||||
|
addition to normal file system permissions to protect the system.
|
||||||
|
|
||||||
|
Adjust the paths to use those specified in /etc/apparmor.d/
|
||||||
|
usr.sbin.named or adjust /etc/apparmor.d/usr.sbin.named to allow named
|
||||||
|
to write at the location specified in named.conf.
|
||||||
|
|
||||||
|
Q: Listening on individual IPv6 interfaces does not work.
|
||||||
|
|
||||||
|
A: This is usually due to "/proc/net/if_inet6" not being available in the
|
||||||
|
chroot file system. Mount another instance of "proc" in the chroot file
|
||||||
|
system.
|
||||||
|
|
||||||
|
This can be be made permanent by adding a second instance to /etc/
|
||||||
|
fstab.
|
||||||
|
|
||||||
|
proc /proc proc defaults 0 0
|
||||||
|
proc /var/named/proc proc defaults 0 0
|
||||||
|
|
||||||
|
5.3. Windows
|
||||||
|
|
||||||
|
Q: Zone transfers from my BIND 9 master to my Windows 2000 slave fail.
|
||||||
|
Why?
|
||||||
|
|
||||||
|
A: This may be caused by a bug in the Windows 2000 DNS server where DNS
|
||||||
|
messages larger than 16K are not handled properly. This can be worked
|
||||||
|
around by setting the option "transfer-format one-answer;". Also check
|
||||||
|
whether your zone contains domain names with embedded spaces or other
|
||||||
|
special characters, like "John\032Doe\213s\032Computer", since such
|
||||||
|
names have been known to cause Windows 2000 slaves to incorrectly
|
||||||
|
reject the zone.
|
||||||
|
|
||||||
|
Q: I get "Error 1067" when starting named under Windows.
|
||||||
|
|
||||||
|
A: This is the service manager saying that named exited. You need to
|
||||||
|
examine the Application log in the EventViewer to find out why.
|
||||||
|
|
||||||
|
Common causes are that you failed to create "named.conf" (usually "C:\
|
||||||
|
windows\dns\etc\named.conf") or failed to specify the directory in
|
||||||
|
named.conf.
|
||||||
|
|
||||||
|
options {
|
||||||
|
Directory "C:\windows\dns\etc";
|
||||||
|
};
|
||||||
|
|
||||||
|
5.4. FreeBSD
|
||||||
|
|
||||||
|
Q: I have FreeBSD 4.x and "rndc-confgen -a" just sits there.
|
||||||
|
|
||||||
|
A: /dev/random is not configured. Use rndcontrol(8) to tell the kernel to
|
||||||
|
use certain interrupts as a source of random events. You can make this
|
||||||
|
permanent by setting rand_irqs in /etc/rc.conf.
|
||||||
|
|
||||||
|
rand_irqs="3 14 15"
|
||||||
|
|
||||||
|
See also <http://people.freebsd.org/~dougb/randomness.html>.
|
||||||
|
|
||||||
|
5.5. Solaris
|
||||||
|
|
||||||
|
Q: How do I integrate BIND 9 and Solaris SMF
|
||||||
|
|
||||||
|
A: Sun has a blog entry describing how to do this.
|
||||||
|
|
||||||
|
<http://blogs.sun.com/roller/page/anay/Weblog?catname=%2FSolaris>
|
||||||
|
|
||||||
|
5.6. Apple Mac OS X
|
||||||
|
|
||||||
|
Q: How do I run BIND 9 on Apple Mac OS X?
|
||||||
|
|
||||||
|
A: If you run Tiger(Mac OS 10.4) or later then this is all you need to do:
|
||||||
|
|
||||||
|
% sudo rndc-confgen > /etc/rndc.conf
|
||||||
|
|
||||||
|
Copy the key statement from /etc/rndc.conf into /etc/rndc.key, e.g.:
|
||||||
|
|
||||||
|
key "rndc-key" {
|
||||||
|
algorithm hmac-sha256;
|
||||||
|
secret "uvceheVuqf17ZwIcTydddw==";
|
||||||
|
};
|
||||||
|
|
||||||
|
Then start the relevant service:
|
||||||
|
|
||||||
|
% sudo service org.isc.named start
|
||||||
|
|
||||||
|
This is persistent upon a reboot, so you will have to do it only once.
|
||||||
|
|
||||||
|
A: Alternatively you can just generate /etc/rndc.key by running:
|
||||||
|
|
||||||
|
% sudo rndc-confgen -a
|
||||||
|
|
||||||
|
Then start the relevant service:
|
||||||
|
|
||||||
|
% sudo service org.isc.named start
|
||||||
|
|
||||||
|
Named will look for /etc/rndc.key when it starts if it doesn't have a
|
||||||
|
controls section or the existing controls are missing keys sub-clauses.
|
||||||
|
This is persistent upon a reboot, so you will have to do it only once.
|
||||||
|
|
||||||
1614
external/bsd/bind/dist/FAQ.xml
vendored
Normal file
1614
external/bsd/bind/dist/FAQ.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
364
external/bsd/bind/dist/HISTORY
vendored
Normal file
364
external/bsd/bind/dist/HISTORY
vendored
Normal file
|
|
@ -0,0 +1,364 @@
|
||||||
|
Summary of functional enhancements from prior major releases of BIND 9:
|
||||||
|
|
||||||
|
BIND 9.8.0
|
||||||
|
|
||||||
|
BIND 9.8.0 includes a number of changes from BIND 9.7 and earlier
|
||||||
|
releases. New features include:
|
||||||
|
|
||||||
|
- Built-in trust anchor for the root zone, which can be
|
||||||
|
switched on via "dnssec-validation auto;"
|
||||||
|
- Support for DNS64.
|
||||||
|
- Support for response policy zones (RPZ).
|
||||||
|
- Support for writable DLZ zones.
|
||||||
|
- Improved ease of configuration of GSS/TSIG for
|
||||||
|
interoperability with Active Directory
|
||||||
|
- Support for GOST signing algorithm for DNSSEC.
|
||||||
|
- Removed RTT Banding from server selection algorithm.
|
||||||
|
- New "static-stub" zone type.
|
||||||
|
- Allow configuration of resolver timeouts via
|
||||||
|
"resolver-query-timeout" option.
|
||||||
|
- The DLZ "dlopen" driver is now built by default.
|
||||||
|
- Added a new include file with function typedefs
|
||||||
|
for the DLZ "dlopen" driver.
|
||||||
|
- Made "--with-gssapi" default.
|
||||||
|
- More verbose error reporting from DLZ LDAP.
|
||||||
|
|
||||||
|
BIND 9.7.0
|
||||||
|
|
||||||
|
BIND 9.7.0 includes a number of changes from BIND 9.6 and earlier
|
||||||
|
releases. Most are intended to simplify DNSSEC configuration.
|
||||||
|
New features include:
|
||||||
|
|
||||||
|
- Fully automatic signing of zones by "named".
|
||||||
|
- Simplified configuration of DNSSEC Lookaside Validation (DLV).
|
||||||
|
- Simplified configuration of Dynamic DNS, using the "ddns-confgen"
|
||||||
|
command line tool or the "local" update-policy option. (As a side
|
||||||
|
effect, this also makes it easier to configure automatic zone
|
||||||
|
re-signing.)
|
||||||
|
- New named option "attach-cache" that allows multiple views to
|
||||||
|
share a single cache.
|
||||||
|
- DNS rebinding attack prevention.
|
||||||
|
- New default values for dnssec-keygen parameters.
|
||||||
|
- Support for RFC 5011 automated trust anchor maintenance
|
||||||
|
- Smart signing: simplified tools for zone signing and key
|
||||||
|
maintenance.
|
||||||
|
- The "statistics-channels" option is now available on Windows.
|
||||||
|
- A new DNSSEC-aware libdns API for use by non-BIND9 applications
|
||||||
|
- On some platforms, named and other binaries can now print out
|
||||||
|
a stack backtrace on assertion failure, to aid in debugging.
|
||||||
|
- A "tools only" installation mode on Windows, which only installs
|
||||||
|
dig, host, nslookup and nsupdate.
|
||||||
|
- Improved PKCS#11 support, including Keyper support and explicit
|
||||||
|
OpenSSL engine selection.
|
||||||
|
|
||||||
|
BIND 9.6.0
|
||||||
|
|
||||||
|
Full NSEC3 support
|
||||||
|
|
||||||
|
Automatic zone re-signing
|
||||||
|
|
||||||
|
New update-policy methods tcp-self and 6to4-self
|
||||||
|
|
||||||
|
The BIND 8 resolver library, libbind, has been removed from the
|
||||||
|
BIND 9 distribution and is now available as a separate download.
|
||||||
|
|
||||||
|
Change the default pid file location from /var/run to
|
||||||
|
/var/run/{named,lwresd} for improved chroot/setuid support.
|
||||||
|
|
||||||
|
BIND 9.5.0
|
||||||
|
|
||||||
|
GSS-TSIG support (RFC 3645).
|
||||||
|
|
||||||
|
DHCID support.
|
||||||
|
|
||||||
|
Experimental http server and statistics support for named via xml.
|
||||||
|
|
||||||
|
More detailed statistics counters including those supported in BIND 8.
|
||||||
|
|
||||||
|
Faster ACL processing.
|
||||||
|
|
||||||
|
Use Doxygen to generate internal documentation.
|
||||||
|
|
||||||
|
Efficient LRU cache-cleaning mechanism.
|
||||||
|
|
||||||
|
NSID support.
|
||||||
|
|
||||||
|
BIND 9.4.0
|
||||||
|
|
||||||
|
Implemented "additional section caching (or acache)", an
|
||||||
|
internal cache framework for additional section content to
|
||||||
|
improve response performance. Several configuration options
|
||||||
|
were provided to control the behavior.
|
||||||
|
|
||||||
|
New notify type 'master-only'. Enable notify for master
|
||||||
|
zones only.
|
||||||
|
|
||||||
|
Accept 'notify-source' style syntax for query-source.
|
||||||
|
|
||||||
|
rndc now allows addresses to be set in the server clauses.
|
||||||
|
|
||||||
|
New option "allow-query-cache". This lets "allow-query"
|
||||||
|
be used to specify the default zone access level rather
|
||||||
|
than having to have every zone override the global value.
|
||||||
|
"allow-query-cache" can be set at both the options and view
|
||||||
|
levels. If "allow-query-cache" is not set then "allow-recursion"
|
||||||
|
is used if set, otherwise "allow-query" is used if set
|
||||||
|
unless "recursion no;" is set in which case "none;" is used,
|
||||||
|
otherwise the default (localhost; localnets;) is used.
|
||||||
|
|
||||||
|
rndc: the source address can now be specified.
|
||||||
|
|
||||||
|
ixfr-from-differences now takes master and slave in addition
|
||||||
|
to yes and no at the options and view levels.
|
||||||
|
|
||||||
|
Allow the journal's name to be changed via named.conf.
|
||||||
|
|
||||||
|
'rndc notify zone [class [view]]' resend the NOTIFY messages
|
||||||
|
for the specified zone.
|
||||||
|
|
||||||
|
'dig +trace' now randomly selects the next servers to try.
|
||||||
|
Report if there is a bad delegation.
|
||||||
|
|
||||||
|
Improve check-names error messages.
|
||||||
|
|
||||||
|
Make public the function to read a key file, dst_key_read_public().
|
||||||
|
|
||||||
|
dig now returns the byte count for axfr/ixfr.
|
||||||
|
|
||||||
|
allow-update is now settable at the options / view level.
|
||||||
|
|
||||||
|
named-checkconf now checks the logging configuration.
|
||||||
|
|
||||||
|
host now can turn on memory debugging flags with '-m'.
|
||||||
|
|
||||||
|
Don't send notify messages to self.
|
||||||
|
|
||||||
|
Perform sanity checks on NS records which refer to 'in zone' names.
|
||||||
|
|
||||||
|
New zone option "notify-delay". Specify a minimum delay
|
||||||
|
between sets of NOTIFY messages.
|
||||||
|
|
||||||
|
Extend adjusting TTL warning messages.
|
||||||
|
|
||||||
|
Named and named-checkzone can now both check for non-terminal
|
||||||
|
wildcard records.
|
||||||
|
|
||||||
|
"rndc freeze/thaw" now freezes/thaws all zones.
|
||||||
|
|
||||||
|
named-checkconf now check acls to verify that they only
|
||||||
|
refer to existing acls.
|
||||||
|
|
||||||
|
The server syntax has been extended to support a range of
|
||||||
|
servers.
|
||||||
|
|
||||||
|
Report differences between hints and real NS rrset and
|
||||||
|
associated address records.
|
||||||
|
|
||||||
|
Preserve the case of domain names in rdata during zone
|
||||||
|
transfers.
|
||||||
|
|
||||||
|
Restructured the data locking framework using architecture
|
||||||
|
dependent atomic operations (when available), improving
|
||||||
|
response performance on multi-processor machines significantly.
|
||||||
|
x86, x86_64, alpha, powerpc, and mips are currently supported.
|
||||||
|
|
||||||
|
UNIX domain controls are now supported.
|
||||||
|
|
||||||
|
Add support for additional zone file formats for improving
|
||||||
|
loading performance. The masterfile-format option in
|
||||||
|
named.conf can be used to specify a non-default format. A
|
||||||
|
separate command named-compilezone was provided to generate
|
||||||
|
zone files in the new format. Additionally, the -I and -O
|
||||||
|
options for dnssec-signzone specify the input and output
|
||||||
|
formats.
|
||||||
|
|
||||||
|
dnssec-signzone can now randomize signature end times
|
||||||
|
(dnssec-signzone -j jitter).
|
||||||
|
|
||||||
|
Add support for CH A record.
|
||||||
|
|
||||||
|
Add additional zone data constancy checks. named-checkzone
|
||||||
|
has extended checking of NS, MX and SRV record and the hosts
|
||||||
|
they reference. named has extended post zone load checks.
|
||||||
|
New zone options: check-mx and integrity-check.
|
||||||
|
|
||||||
|
|
||||||
|
edns-udp-size can now be overridden on a per server basis.
|
||||||
|
|
||||||
|
dig can now specify the EDNS version when making a query.
|
||||||
|
|
||||||
|
Added framework for handling multiple EDNS versions.
|
||||||
|
|
||||||
|
Additional memory debugging support to track size and mctx
|
||||||
|
arguments.
|
||||||
|
|
||||||
|
Detect duplicates of UDP queries we are recursing on and
|
||||||
|
drop them. New stats category "duplicates".
|
||||||
|
|
||||||
|
"USE INTERNAL MALLOC" is now runtime selectable.
|
||||||
|
|
||||||
|
The lame cache is now done on a <qname,qclass,qtype> basis
|
||||||
|
as some servers only appear to be lame for certain query
|
||||||
|
types.
|
||||||
|
|
||||||
|
Limit the number of recursive clients that can be waiting
|
||||||
|
for a single query (<qname,qtype,qclass>) to resolve. New
|
||||||
|
options clients-per-query and max-clients-per-query.
|
||||||
|
|
||||||
|
dig: report the number of extra bytes still left in the
|
||||||
|
packet after processing all the records.
|
||||||
|
|
||||||
|
Support for IPSECKEY rdata type.
|
||||||
|
|
||||||
|
Raise the UDP recieve buffer size to 32k if it is less than 32k.
|
||||||
|
|
||||||
|
x86 and x86_64 now have seperate atomic locking implementations.
|
||||||
|
|
||||||
|
named-checkconf now validates update-policy entries.
|
||||||
|
|
||||||
|
Attempt to make the amount of work performed in a iteration
|
||||||
|
self tuning. The covers nodes clean from the cache per
|
||||||
|
iteration, nodes written to disk when rewriting a master
|
||||||
|
file and nodes destroyed per iteration when destroying a
|
||||||
|
zone or a cache.
|
||||||
|
|
||||||
|
ISC string copy API.
|
||||||
|
|
||||||
|
Automatic empty zone creation for D.F.IP6.ARPA and friends.
|
||||||
|
Note: RFC 1918 zones are not yet covered by this but are
|
||||||
|
likely to be in a future release.
|
||||||
|
|
||||||
|
New options: empty-server, empty-contact, empty-zones-enable
|
||||||
|
and disable-empty-zone.
|
||||||
|
|
||||||
|
dig now has a '-q queryname' and '+showsearch' options.
|
||||||
|
|
||||||
|
host/nslookup now continue (default)/fail on SERVFAIL.
|
||||||
|
|
||||||
|
dig now warns if 'RA' is not set in the answer when 'RD'
|
||||||
|
was set in the query. host/nslookup skip servers that fail
|
||||||
|
to set 'RA' when 'RD' is set unless a server is explicitly
|
||||||
|
set.
|
||||||
|
|
||||||
|
Integrate contibuted DLZ code into named.
|
||||||
|
|
||||||
|
Integrate contibuted IDN code from JPNIC.
|
||||||
|
|
||||||
|
libbind: corresponds to that from BIND 8.4.7.
|
||||||
|
|
||||||
|
BIND 9.3.0
|
||||||
|
|
||||||
|
DNSSEC is now DS based (RFC 3658).
|
||||||
|
See also RFC 3845, doc/draft/draft-ietf-dnsext-dnssec-*.
|
||||||
|
|
||||||
|
DNSSEC lookaside validation.
|
||||||
|
|
||||||
|
check-names is now implemented.
|
||||||
|
rrset-order in more complete.
|
||||||
|
|
||||||
|
IPv4/IPv6 transition support, dual-stack-servers.
|
||||||
|
|
||||||
|
IXFR deltas can now be generated when loading master files,
|
||||||
|
ixfr-from-differences.
|
||||||
|
|
||||||
|
It is now possible to specify the size of a journal, max-journal-size.
|
||||||
|
|
||||||
|
It is now possible to define a named set of master servers to be
|
||||||
|
used in masters clause, masters.
|
||||||
|
|
||||||
|
The advertised EDNS UDP size can now be set, edns-udp-size.
|
||||||
|
|
||||||
|
allow-v6-synthesis has been obsoleted.
|
||||||
|
|
||||||
|
NOTE:
|
||||||
|
* Zones containing MD and MF will now be rejected.
|
||||||
|
* dig, nslookup name. now report "Not Implemented" as
|
||||||
|
NOTIMP rather than NOTIMPL. This will have impact on scripts
|
||||||
|
that are looking for NOTIMPL.
|
||||||
|
|
||||||
|
libbind: corresponds to that from BIND 8.4.5.
|
||||||
|
|
||||||
|
BIND 9.2.0
|
||||||
|
|
||||||
|
The size of the cache can now be limited using the
|
||||||
|
"max-cache-size" option.
|
||||||
|
|
||||||
|
The server can now automatically convert RFC1886-style recursive
|
||||||
|
lookup requests into RFC2874-style lookups, when enabled using the
|
||||||
|
new option "allow-v6-synthesis". This allows stub resolvers that
|
||||||
|
support AAAA records but not A6 record chains or binary labels to
|
||||||
|
perform lookups in domains that make use of these IPv6 DNS
|
||||||
|
features.
|
||||||
|
|
||||||
|
Performance has been improved.
|
||||||
|
|
||||||
|
The man pages now use the more portable "man" macros rather than
|
||||||
|
the "mandoc" macros, and are installed by "make install".
|
||||||
|
|
||||||
|
The named.conf parser has been completely rewritten. It now
|
||||||
|
supports "include" directives in more places such as inside "view"
|
||||||
|
statements, and it no longer has any reserved words.
|
||||||
|
|
||||||
|
The "rndc status" command is now implemented.
|
||||||
|
|
||||||
|
rndc can now be configured automatically.
|
||||||
|
|
||||||
|
A BIND 8 compatible stub resolver library is now included in
|
||||||
|
lib/bind.
|
||||||
|
|
||||||
|
OpenSSL has been removed from the distribution. This means that to
|
||||||
|
use DNSSEC, OpenSSL must be installed and the --with-openssl option
|
||||||
|
must be supplied to configure. This does not apply to the use of
|
||||||
|
TSIG, which does not require OpenSSL.
|
||||||
|
|
||||||
|
The source distribution now builds on Windows. See
|
||||||
|
win32utils/readme1.txt and win32utils/win32-build.txt for details.
|
||||||
|
|
||||||
|
This distribution also includes a new lightweight stub
|
||||||
|
resolver library and associated resolver daemon that fully
|
||||||
|
support forward and reverse lookups of both IPv4 and IPv6
|
||||||
|
addresses. This library is considered experimental and
|
||||||
|
is not a complete replacement for the BIND 8 resolver library.
|
||||||
|
Applications that use the BIND 8 res_* functions to perform
|
||||||
|
DNS lookups or dynamic updates still need to be linked against
|
||||||
|
the BIND 8 libraries. For DNS lookups, they can also use the
|
||||||
|
new "getrrsetbyname()" API.
|
||||||
|
|
||||||
|
BIND 9.2 is capable of acting as an authoritative server
|
||||||
|
for DNSSEC secured zones. This functionality is believed to
|
||||||
|
be stable and complete except for lacking support for
|
||||||
|
verifications involving wildcard records in secure zones.
|
||||||
|
|
||||||
|
When acting as a caching server, BIND 9.2 can be configured
|
||||||
|
to perform DNSSEC secure resolution on behalf of its clients.
|
||||||
|
This part of the DNSSEC implementation is still considered
|
||||||
|
experimental. For detailed information about the state of the
|
||||||
|
DNSSEC implementation, see the file doc/misc/dnssec.
|
||||||
|
|
||||||
|
There are a few known bugs:
|
||||||
|
|
||||||
|
On some systems, IPv6 and IPv4 sockets interact in
|
||||||
|
unexpected ways. For details, see doc/misc/ipv6.
|
||||||
|
To reduce the impact of these problems, the server
|
||||||
|
no longer listens for requests on IPv6 addresses
|
||||||
|
by default. If you need to accept DNS queries over
|
||||||
|
IPv6, you must specify "listen-on-v6 { any; };"
|
||||||
|
in the named.conf options statement.
|
||||||
|
|
||||||
|
FreeBSD prior to 4.2 (and 4.2 if running as non-root)
|
||||||
|
and OpenBSD prior to 2.8 log messages like
|
||||||
|
"fcntl(8, F_SETFL, 4): Inappropriate ioctl for device".
|
||||||
|
This is due to a bug in "/dev/random" and impacts the
|
||||||
|
server's DNSSEC support.
|
||||||
|
|
||||||
|
OS X 10.1.4 (Darwin 5.4), OS X 10.1.5 (Darwin 5.5) and
|
||||||
|
OS X 10.2 (Darwin 6.0) reports errors like
|
||||||
|
"fcntl(3, F_SETFL, 4): Operation not supported by device".
|
||||||
|
This is due to a bug in "/dev/random" and impacts the
|
||||||
|
server's DNSSEC support.
|
||||||
|
|
||||||
|
--with-libtool does not work on AIX.
|
||||||
|
|
||||||
|
A bug in some versions of the Microsoft DNS server can cause zone
|
||||||
|
transfers from a BIND 9 server to a W2K server to fail. For details,
|
||||||
|
see the "Zone Transfers" section in doc/misc/migration.
|
||||||
102
external/bsd/bind/dist/Makefile.in
vendored
Normal file
102
external/bsd/bind/dist/Makefile.in
vendored
Normal file
|
|
@ -0,0 +1,102 @@
|
||||||
|
# Copyright (C) 2004-2009, 2011-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
# Copyright (C) 1998-2002 Internet Software Consortium.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
# copyright notice and this permission notice appear in all copies.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
# Id: Makefile.in,v 1.62 2011/09/06 04:06:37 marka Exp
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
|
||||||
|
@BIND9_VERSION@
|
||||||
|
|
||||||
|
SUBDIRS = make unit lib bin doc @LIBEXPORT@
|
||||||
|
TARGETS =
|
||||||
|
PREREQS = bind.keys.h
|
||||||
|
|
||||||
|
MANPAGES = isc-config.sh.1
|
||||||
|
|
||||||
|
HTMLPAGES = isc-config.sh.html
|
||||||
|
|
||||||
|
MANOBJS = ${MANPAGES} ${HTMLPAGES}
|
||||||
|
|
||||||
|
@BIND9_MAKE_RULES@
|
||||||
|
|
||||||
|
bind.keys.h: ${top_srcdir}/bind.keys ${srcdir}/util/bindkeys.pl
|
||||||
|
${PERL} ${srcdir}/util/bindkeys.pl < ${top_srcdir}/bind.keys > $@
|
||||||
|
|
||||||
|
distclean::
|
||||||
|
rm -f config.cache config.h config.log config.status TAGS
|
||||||
|
rm -f libtool isc-config.sh configure.lineno
|
||||||
|
rm -f util/conf.sh docutil/docbook2man-wrapper.sh
|
||||||
|
|
||||||
|
# XXX we should clean libtool stuff too. Only do this after we add rules
|
||||||
|
# to make it.
|
||||||
|
maintainer-clean::
|
||||||
|
rm -f configure
|
||||||
|
rm -f bind.keys.h
|
||||||
|
|
||||||
|
docclean manclean maintainer-clean::
|
||||||
|
rm -f ${MANOBJS}
|
||||||
|
|
||||||
|
doc man:: ${MANOBJS}
|
||||||
|
|
||||||
|
installdirs:
|
||||||
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir} \
|
||||||
|
${DESTDIR}${localstatedir}/run ${DESTDIR}${sysconfdir}
|
||||||
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
|
||||||
|
|
||||||
|
install:: isc-config.sh installdirs
|
||||||
|
${INSTALL_SCRIPT} isc-config.sh ${DESTDIR}${bindir}
|
||||||
|
rm -f ${DESTDIR}${bindir}/bind9-config
|
||||||
|
@LN@ ${DESTDIR}${bindir}/isc-config.sh ${DESTDIR}${bindir}/bind9-config
|
||||||
|
${INSTALL_DATA} ${top_srcdir}/isc-config.sh.1 ${DESTDIR}${mandir}/man1
|
||||||
|
rm -f ${DESTDIR}${mandir}/man1/bind9-config.1
|
||||||
|
@LN@ ${DESTDIR}${mandir}/man1/isc-config.sh.1 ${DESTDIR}${mandir}/man1/bind9-config.1
|
||||||
|
${INSTALL_DATA} ${top_srcdir}/bind.keys ${DESTDIR}${sysconfdir}
|
||||||
|
|
||||||
|
tags:
|
||||||
|
rm -f TAGS
|
||||||
|
find lib bin -name "*.[ch]" -print | @ETAGS@ -
|
||||||
|
|
||||||
|
test check:
|
||||||
|
@if test -n "`${PERL} ${top_srcdir}/bin/tests/system/testsock.pl 2>&- || echo fail`"; then \
|
||||||
|
echo I: NOTE: The tests were not run because they require that; \
|
||||||
|
echo I: the IP addresses 10.53.0.1 through 10.53.0.8 are configured; \
|
||||||
|
echo I: as alias addresses on the loopback interface. Please run; \
|
||||||
|
echo I: \'bin/tests/system/ifconfig.sh up\' as root to configure; \
|
||||||
|
echo I: them, then rerun the tests. Run make force-test to run the; \
|
||||||
|
echo I: tests anyway.; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
${MAKE} test-force
|
||||||
|
|
||||||
|
force-test: test-force
|
||||||
|
|
||||||
|
test-force:
|
||||||
|
status=0; \
|
||||||
|
(cd bin/tests && ${MAKE} ${MAKEDEFS} test) || status=1; \
|
||||||
|
(test -f unit/unittest.sh && $(SHELL) unit/unittest.sh) || status=1; \
|
||||||
|
exit $$status
|
||||||
|
|
||||||
|
FAQ: FAQ.xml
|
||||||
|
${XSLTPROC} doc/xsl/isc-docbook-text.xsl FAQ.xml | \
|
||||||
|
LC_ALL=C ${W3M} -T text/html -dump -cols 72 >$@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
unit::
|
||||||
|
sh ${top_srcdir}/unit/unittest.sh
|
||||||
|
|
||||||
|
clean::
|
||||||
|
rm -f FAQ.tmp
|
||||||
570
external/bsd/bind/dist/README
vendored
Normal file
570
external/bsd/bind/dist/README
vendored
Normal file
|
|
@ -0,0 +1,570 @@
|
||||||
|
BIND 9
|
||||||
|
|
||||||
|
BIND version 9 is a major rewrite of nearly all aspects of the
|
||||||
|
underlying BIND architecture. Some of the important features of
|
||||||
|
BIND 9 are:
|
||||||
|
|
||||||
|
- DNS Security
|
||||||
|
DNSSEC (signed zones)
|
||||||
|
TSIG (signed DNS requests)
|
||||||
|
|
||||||
|
- IP version 6
|
||||||
|
Answers DNS queries on IPv6 sockets
|
||||||
|
IPv6 resource records (AAAA)
|
||||||
|
Experimental IPv6 Resolver Library
|
||||||
|
|
||||||
|
- DNS Protocol Enhancements
|
||||||
|
IXFR, DDNS, Notify, EDNS0
|
||||||
|
Improved standards conformance
|
||||||
|
|
||||||
|
- Views
|
||||||
|
One server process can provide multiple "views" of
|
||||||
|
the DNS namespace, e.g. an "inside" view to certain
|
||||||
|
clients, and an "outside" view to others.
|
||||||
|
|
||||||
|
- Multiprocessor Support
|
||||||
|
|
||||||
|
- Improved Portability Architecture
|
||||||
|
|
||||||
|
|
||||||
|
BIND version 9 development has been underwritten by the following
|
||||||
|
organizations:
|
||||||
|
|
||||||
|
Sun Microsystems, Inc.
|
||||||
|
Hewlett Packard
|
||||||
|
Compaq Computer Corporation
|
||||||
|
IBM
|
||||||
|
Process Software Corporation
|
||||||
|
Silicon Graphics, Inc.
|
||||||
|
Network Associates, Inc.
|
||||||
|
U.S. Defense Information Systems Agency
|
||||||
|
USENIX Association
|
||||||
|
Stichting NLnet - NLnet Foundation
|
||||||
|
Nominum, Inc.
|
||||||
|
|
||||||
|
For a summary of functional enhancements in previous
|
||||||
|
releases, see the HISTORY file.
|
||||||
|
|
||||||
|
For a detailed list of user-visible changes from
|
||||||
|
previous releases, see the CHANGES file.
|
||||||
|
|
||||||
|
For up-to-date release notes and errata, see
|
||||||
|
http://www.isc.org/software/bind9/releasenotes
|
||||||
|
|
||||||
|
BIND 9.10.2-P4
|
||||||
|
|
||||||
|
BIND 9.10.2-P4 is a security release addressing the flaws
|
||||||
|
described in CVE-2015-5722 and CVE-2015-5986.
|
||||||
|
|
||||||
|
BIND 9.10.2-P3
|
||||||
|
|
||||||
|
BIND 9.10.2-P3 is a security release addressing the flaw
|
||||||
|
described in CVE-2015-5477.
|
||||||
|
|
||||||
|
BIND 9.10.2-P2
|
||||||
|
|
||||||
|
BIND 9.10.2-P2 is a security release addressing the flaw
|
||||||
|
described in CVE-2015-4620.
|
||||||
|
|
||||||
|
BIND 9.10.2-P1
|
||||||
|
|
||||||
|
BIND 9.10.2-P1 is a patch release addressing several
|
||||||
|
bugs recently found in the response-policy zones (RPZ)
|
||||||
|
implementation in BIND 9.10. These mostly affect servers
|
||||||
|
that have multiple frequently-updated response-policy
|
||||||
|
zones.
|
||||||
|
|
||||||
|
BIND 9.10.2
|
||||||
|
|
||||||
|
BIND 9.10.2 is a maintenance release and addresses bugs
|
||||||
|
found in BIND 9.10.1 and earlier, as well as the security
|
||||||
|
flaws described in CVE-2014-8500, CVE-2014-8680 and
|
||||||
|
CVE-2015-1349.
|
||||||
|
|
||||||
|
BIND 9.10.1
|
||||||
|
|
||||||
|
BIND 9.10.1 is a maintenance release and addresses bugs
|
||||||
|
found in BIND 9.10.0 and earlier.
|
||||||
|
|
||||||
|
This release addresses the security flaws described in
|
||||||
|
CVE-2014-3214 and CVE-2014-3859.
|
||||||
|
|
||||||
|
BIND 9.10.0
|
||||||
|
|
||||||
|
BIND 9.10.0 includes a number of changes from BIND 9.9 and earlier
|
||||||
|
releases. New features include:
|
||||||
|
|
||||||
|
- DNS Response-rate limiting (DNS RRL), which blunts the
|
||||||
|
impact of reflection and amplification attacks, is always
|
||||||
|
compiled in and no longer requires a compile-time option
|
||||||
|
to enable it.
|
||||||
|
- An experimental "Source Identity Token" (SIT) EDNS option
|
||||||
|
is now available. Similar to DNS Cookies as invented by
|
||||||
|
Donald Eastlake 3rd, these are designed to enable clients
|
||||||
|
to detect off-path spoofed responses, and to enable servers
|
||||||
|
to detect spoofed-source queries. Servers can be configured
|
||||||
|
to send smaller responses to clients that have not identified
|
||||||
|
themselves using a SIT option, reducing the effectiveness of
|
||||||
|
amplification attacks. RRL processing has also been updated;
|
||||||
|
clients proven to be legitimate via SIT are not subject to
|
||||||
|
rate limiting. Use "configure --enable-sit" to enable this
|
||||||
|
feature in BIND.
|
||||||
|
- A new zone file format, "map", stores zone data in a
|
||||||
|
format that can be mapped directly into memory, allowing
|
||||||
|
significantly faster zone loading.
|
||||||
|
- "delv" (domain entity lookup and validation) is a new tool
|
||||||
|
with dig-like semantics for looking up DNS data and performing
|
||||||
|
internal DNSSEC validation. This allows easy validation in
|
||||||
|
environments where the resolver may not be trustworthy, and
|
||||||
|
assists with troubleshooting of DNSSEC problems. (NOTE:
|
||||||
|
In previous development releases of BIND 9.10, this utility
|
||||||
|
was called "delve". The spelling has been changed to avoid
|
||||||
|
confusion with the "delve" utility included with the Xapian
|
||||||
|
search engine.)
|
||||||
|
- Improved EDNS(0) processing for better resolver performance
|
||||||
|
and reliability over slow or lossy connections.
|
||||||
|
- A new "configure --with-tuning=large" option tunes certain
|
||||||
|
compiled-in constants and default settings to values better
|
||||||
|
suited to large servers with abundant memory. This can
|
||||||
|
improve performance on such servers, but will consume more
|
||||||
|
memory and may degrade performance on smaller systems.
|
||||||
|
- Substantial improvement in response-policy zone (RPZ)
|
||||||
|
performance. Up to 32 response-policy zones can be
|
||||||
|
configured with minimal performance loss.
|
||||||
|
- To improve recursive resolver performance, cache records
|
||||||
|
which are still being requested by clients can now be
|
||||||
|
automatically refreshed from the authoritative server
|
||||||
|
before they expire, reducing or eliminating the time
|
||||||
|
window in which no answer is available in the cache.
|
||||||
|
- New "rpz-client-ip" triggers and drop policies allowing
|
||||||
|
response policies based on the IP address of the client.
|
||||||
|
- ACLs can now be specified based on geographic location
|
||||||
|
using the MaxMind GeoIP databases. Use "configure
|
||||||
|
--with-geoip" to enable.
|
||||||
|
- Zone data can now be shared between views, allowing
|
||||||
|
multiple views to serve the same zones authoritatively
|
||||||
|
without storing multiple copies in memory.
|
||||||
|
- New XML schema (version 3) for the statistics channel
|
||||||
|
includes many new statistics and uses a flattened XML tree
|
||||||
|
for faster parsing. The older schema is now deprecated.
|
||||||
|
- A new stylesheet, based on the Google Charts API, displays
|
||||||
|
XML statistics in charts and graphs on javascript-enabled
|
||||||
|
browsers.
|
||||||
|
- The statistics channel can now provide data in JSON
|
||||||
|
format as well as XML.
|
||||||
|
- New stats counters track TCP and UDP queries received
|
||||||
|
per zone, and EDNS options received in total.
|
||||||
|
- The internal and export versions of the BIND libraries
|
||||||
|
(libisc, libdns, etc) have been unified so that external
|
||||||
|
library clients can use the same libraries as BIND itself.
|
||||||
|
- A new compile-time option, "configure --enable-native-pkcs11",
|
||||||
|
allows BIND 9 cryptography functions to use the PKCS#11 API
|
||||||
|
natively, so that BIND can drive a cryptographic hardware
|
||||||
|
service module (HSM) directly instead of using a modified
|
||||||
|
OpenSSL as an intermediary. (Note: This feature requires an
|
||||||
|
HSM to have a full implementation of the PKCS#11 API; many
|
||||||
|
current HSMs only have partial implementations. The new
|
||||||
|
"pkcs11-tokens" command can be used to check API completeness.
|
||||||
|
Native PKCS#11 is known to work with the Thales nShield HSM
|
||||||
|
and with SoftHSM version 2 from the Open DNSSEC project.)
|
||||||
|
- The new "max-zone-ttl" option enforces maximum TTLs for
|
||||||
|
zones. This can simplify the process of rolling DNSSEC keys
|
||||||
|
by guaranteeing that cached signatures will have expired
|
||||||
|
within the specified amount of time.
|
||||||
|
- "dig +subnet" sends an EDNS CLIENT-SUBNET option when
|
||||||
|
querying.
|
||||||
|
- "dig +expire" sends an EDNS EXPIRE option when querying.
|
||||||
|
When this option is sent with an SOA query to a server
|
||||||
|
that supports it, it will report the expiry time of
|
||||||
|
a slave zone.
|
||||||
|
- New "dnssec-coverage" tool to check DNSSEC key coverage
|
||||||
|
for a zone and report if a lapse in signing coverage has
|
||||||
|
been inadvertently scheduled.
|
||||||
|
- Signing algorithm flexibility and other improvements
|
||||||
|
for the "rndc" control channel.
|
||||||
|
- "named-checkzone" and "named-compilezone" can now read
|
||||||
|
journal files, allowing them to process dynamic zones.
|
||||||
|
- Multiple DLZ databases can now be configured. Individual
|
||||||
|
zones can be configured to be served from a specific DLZ
|
||||||
|
database. DLZ databases now serve zones of type "master"
|
||||||
|
and "redirect".
|
||||||
|
- "rndc zonestatus" reports information about a specified zone.
|
||||||
|
- "named" now listens on IPv6 as well as IPv4 interfaces
|
||||||
|
by default.
|
||||||
|
- "named" now preserves the capitalization of names
|
||||||
|
when responding to queries: for instance, a query for
|
||||||
|
"example.com" may be answered with "example.COM" if the
|
||||||
|
name was configured that way in the zone file. Some
|
||||||
|
clients have a bug causing them to depend on the older
|
||||||
|
behavior, in which the case of the answer always matched
|
||||||
|
the case of the query, rather than the case of the name
|
||||||
|
configured in the DNS. Such clients can now be specified
|
||||||
|
in the new "no-case-compress" ACL; this will restore the
|
||||||
|
older behavior of "named" for those clients only.
|
||||||
|
- new "dnssec-importkey" command allows the use of offline
|
||||||
|
DNSSEC keys with automatic DNSKEY management.
|
||||||
|
- New "named-rrchecker" tool to verify the syntactic
|
||||||
|
correctness of individual resource records.
|
||||||
|
- When re-signing a zone, the new "dnssec-signzone -Q" option
|
||||||
|
drops signatures from keys that are still published but are
|
||||||
|
no longer active.
|
||||||
|
- "named-checkconf -px" will print the contents of configuration
|
||||||
|
files with the shared secrets obscured, making it easier to
|
||||||
|
share configuration (e.g. when submitting a bug report)
|
||||||
|
without revealing private information.
|
||||||
|
- "rndc scan" causes named to re-scan network interfaces for
|
||||||
|
changes in local addresses.
|
||||||
|
- On operating systems with support for routing sockets,
|
||||||
|
network interfaces are re-scanned automatically whenever
|
||||||
|
they change.
|
||||||
|
- "tsig-keygen" is now available as an alternate command
|
||||||
|
name to use for "ddns-confgen".
|
||||||
|
|
||||||
|
BIND 9.9.0
|
||||||
|
|
||||||
|
BIND 9.9.0 includes a number of changes from BIND 9.8 and earlier
|
||||||
|
releases. New features include:
|
||||||
|
|
||||||
|
- Inline signing, allowing automatic DNSSEC signing of
|
||||||
|
master zones without modification of the zonefile, or
|
||||||
|
"bump in the wire" signing in slaves.
|
||||||
|
- NXDOMAIN redirection.
|
||||||
|
- New 'rndc flushtree' command clears all data under a given
|
||||||
|
name from the DNS cache.
|
||||||
|
- New 'rndc sync' command dumps pending changes in a dynamic
|
||||||
|
zone to disk without a freeze/thaw cycle.
|
||||||
|
- New 'rndc signing' command displays or clears signing status
|
||||||
|
records in 'auto-dnssec' zones.
|
||||||
|
- NSEC3 parameters for 'auto-dnssec' zones can now be set prior
|
||||||
|
to signing, eliminating the need to initially sign with NSEC.
|
||||||
|
- Startup time improvements on large authoritative servers.
|
||||||
|
- Slave zones are now saved in raw format by default.
|
||||||
|
- Several improvements to response policy zones (RPZ).
|
||||||
|
- Improved hardware scalability by using multiple threads
|
||||||
|
to listen for queries and using finer-grained client locking
|
||||||
|
- The 'also-notify' option now takes the same syntax as
|
||||||
|
'masters', so it can used named masterlists and TSIG keys.
|
||||||
|
- 'dnssec-signzone -D' writes an output file containing only DNSSEC
|
||||||
|
data, which can be included by the primary zone file.
|
||||||
|
- 'dnssec-signzone -R' forces removal of signatures that are
|
||||||
|
not expired but were created by a key which no longer exists.
|
||||||
|
- 'dnssec-signzone -X' allows a separate expiration date to
|
||||||
|
be specified for DNSKEY signatures from other signatures.
|
||||||
|
- New '-L' option to dnssec-keygen, dnssec-settime, and
|
||||||
|
dnssec-keyfromlabel sets the default TTL for the key.
|
||||||
|
- dnssec-dsfromkey now supports reading from standard input,
|
||||||
|
to make it easier to convert DNSKEY to DS.
|
||||||
|
- RFC 1918 reverse zones have been added to the empty-zones
|
||||||
|
table per RFC 6303.
|
||||||
|
- Dynamic updates can now optionally set the zone's SOA serial
|
||||||
|
number to the current UNIX time.
|
||||||
|
- DLZ modules can now retrieve the source IP address of
|
||||||
|
the querying client.
|
||||||
|
- 'request-ixfr' option can now be set at the per-zone level.
|
||||||
|
- 'dig +rrcomments' turns on comments about DNSKEY records,
|
||||||
|
indicating their key ID, algorithm and function
|
||||||
|
- Simplified nsupdate syntax and added readline support
|
||||||
|
|
||||||
|
Building
|
||||||
|
|
||||||
|
BIND 9 currently requires a UNIX system with an ANSI C compiler,
|
||||||
|
basic POSIX support, and a 64 bit integer type.
|
||||||
|
|
||||||
|
We've had successful builds and tests on the following systems:
|
||||||
|
|
||||||
|
COMPAQ Tru64 UNIX 5.1B
|
||||||
|
Fedora Core 6
|
||||||
|
FreeBSD 4.10, 5.2.1, 6.2
|
||||||
|
HP-UX 11.11
|
||||||
|
Mac OS X 10.5
|
||||||
|
NetBSD 3.x, 4.0-beta, 5.0-beta
|
||||||
|
OpenBSD 3.3 and up
|
||||||
|
Solaris 8, 9, 9 (x86), 10
|
||||||
|
Ubuntu 7.04, 7.10
|
||||||
|
Windows XP/2003/2008
|
||||||
|
|
||||||
|
NOTE: As of BIND 9.5.1, 9.4.3, and 9.3.6, older versions of
|
||||||
|
Windows, including Windows NT and Windows 2000, are no longer
|
||||||
|
supported.
|
||||||
|
|
||||||
|
We have recent reports from the user community that a supported
|
||||||
|
version of BIND will build and run on the following systems:
|
||||||
|
|
||||||
|
AIX 4.3, 5L
|
||||||
|
CentOS 4, 4.5, 5
|
||||||
|
Darwin 9.0.0d1/ARM
|
||||||
|
Debian 4, 5, 6
|
||||||
|
Fedora Core 5, 7, 8
|
||||||
|
FreeBSD 6, 7, 8
|
||||||
|
HP-UX 11.23 PA
|
||||||
|
MacOS X 10.5, 10.6, 10.7
|
||||||
|
Red Hat Enterprise Linux 4, 5, 6
|
||||||
|
SCO OpenServer 5.0.6
|
||||||
|
Slackware 9, 10
|
||||||
|
SuSE 9, 10
|
||||||
|
|
||||||
|
To build, just
|
||||||
|
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
|
||||||
|
Do not use a parallel "make".
|
||||||
|
|
||||||
|
Several environment variables that can be set before running
|
||||||
|
configure will affect compilation:
|
||||||
|
|
||||||
|
CC
|
||||||
|
The C compiler to use. configure tries to figure
|
||||||
|
out the right one for supported systems.
|
||||||
|
|
||||||
|
CFLAGS
|
||||||
|
C compiler flags. Defaults to include -g and/or -O2
|
||||||
|
as supported by the compiler. Please include '-g'
|
||||||
|
if you need to set CFLAGS.
|
||||||
|
|
||||||
|
STD_CINCLUDES
|
||||||
|
System header file directories. Can be used to specify
|
||||||
|
where add-on thread or IPv6 support is, for example.
|
||||||
|
Defaults to empty string.
|
||||||
|
|
||||||
|
STD_CDEFINES
|
||||||
|
Any additional preprocessor symbols you want defined.
|
||||||
|
Defaults to empty string.
|
||||||
|
|
||||||
|
Possible settings:
|
||||||
|
Change the default syslog facility of named/lwresd.
|
||||||
|
-DISC_FACILITY=LOG_LOCAL0
|
||||||
|
Enable DNSSEC signature chasing support in dig.
|
||||||
|
-DDIG_SIGCHASE=1 (sets -DDIG_SIGCHASE_TD=1 and
|
||||||
|
-DDIG_SIGCHASE_BU=1)
|
||||||
|
Disable dropping queries from particular well known ports.
|
||||||
|
-DNS_CLIENT_DROPPORT=0
|
||||||
|
Sibling glue checking in named-checkzone is enabled by default.
|
||||||
|
To disable the default check set. -DCHECK_SIBLING=0
|
||||||
|
named-checkzone checks out-of-zone addresses by default.
|
||||||
|
To disable this default set. -DCHECK_LOCAL=0
|
||||||
|
To create the default pid files in ${localstatedir}/run rather
|
||||||
|
than ${localstatedir}/run/{named,lwresd}/ set.
|
||||||
|
-DNS_RUN_PID_DIR=0
|
||||||
|
Enable workaround for Solaris kernel bug about /dev/poll
|
||||||
|
-DISC_SOCKET_USE_POLLWATCH=1
|
||||||
|
The watch timeout is also configurable, e.g.,
|
||||||
|
-DISC_SOCKET_POLLWATCH_TIMEOUT=20
|
||||||
|
|
||||||
|
LDFLAGS
|
||||||
|
Linker flags. Defaults to empty string.
|
||||||
|
|
||||||
|
The following need to be set when cross compiling.
|
||||||
|
|
||||||
|
BUILD_CC
|
||||||
|
The native C compiler.
|
||||||
|
BUILD_CFLAGS (optional)
|
||||||
|
BUILD_CPPFLAGS (optional)
|
||||||
|
Possible Settings:
|
||||||
|
-DNEED_OPTARG=1 (optarg is not declared in <unistd.h>)
|
||||||
|
BUILD_LDFLAGS (optional)
|
||||||
|
BUILD_LIBS (optional)
|
||||||
|
|
||||||
|
On most platforms, BIND 9 is built with multithreading
|
||||||
|
support, allowing it to take advantage of multiple CPUs.
|
||||||
|
You can configure this by specifying "--enable-threads" or
|
||||||
|
"--disable-threads" on the configure command line. The default
|
||||||
|
is to enable threads, except on some older operating systems
|
||||||
|
on which threads are known to have had problems in the past.
|
||||||
|
(Note: Prior to BIND 9.10, the default was to disable threads on
|
||||||
|
Linux systems; this has been reversed. On Linux systems, the
|
||||||
|
threaded build is known to change BIND's behavior with respect
|
||||||
|
to file permissions; it may be necessary to specify a user with
|
||||||
|
the -u option when running named.)
|
||||||
|
|
||||||
|
To build shared libraries, specify "--with-libtool" on the
|
||||||
|
configure command line.
|
||||||
|
|
||||||
|
Certain compiled-in constants and default settings can be
|
||||||
|
increased to values better suited to large servers with abundant
|
||||||
|
memory resources (e.g, 64-bit servers with 12G or more of memory)
|
||||||
|
by specifying "--with-tuning=large" on the configure command
|
||||||
|
line. This can improve performance on big servers, but will
|
||||||
|
consume more memory and may degrade performance on smaller
|
||||||
|
systems.
|
||||||
|
|
||||||
|
For the server to support DNSSEC, you need to build it
|
||||||
|
with crypto support. You must have OpenSSL 0.9.5a
|
||||||
|
or newer installed and specify "--with-openssl" on the
|
||||||
|
configure command line. If OpenSSL is installed under
|
||||||
|
a nonstandard prefix, you can tell configure where to
|
||||||
|
look for it using "--with-openssl=/prefix".
|
||||||
|
|
||||||
|
To support the HTTP statistics channel, the server must
|
||||||
|
be linked with at least one of the following: libxml2
|
||||||
|
(http://xmlsoft.org) or json-c (https://github.com/json-c).
|
||||||
|
If these are installed at a nonstandard prefix, use
|
||||||
|
"--with-libxml2=/prefix" or "--with-libjson=/prefix".
|
||||||
|
|
||||||
|
On some platforms it is necessary to explicitly request large
|
||||||
|
file support to handle files bigger than 2GB. This can be
|
||||||
|
done by "--enable-largefile" on the configure command line.
|
||||||
|
|
||||||
|
Support for the "fixed" rrset-order option can be enabled
|
||||||
|
or disabled by specifying "--enable-fixed-rrset" or
|
||||||
|
"--disable-fixed-rrset" on the configure command line.
|
||||||
|
The default is "disabled", to reduce memory footprint.
|
||||||
|
|
||||||
|
If your operating system has integrated support for IPv6, it
|
||||||
|
will be used automatically. If you have installed KAME IPv6
|
||||||
|
separately, use "--with-kame[=PATH]" to specify its location.
|
||||||
|
|
||||||
|
"make install" will install "named" and the various BIND 9 libraries.
|
||||||
|
By default, installation is into /usr/local, but this can be changed
|
||||||
|
with the "--prefix" option when running "configure".
|
||||||
|
|
||||||
|
You may specify the option "--sysconfdir" to set the directory
|
||||||
|
where configuration files like "named.conf" go by default,
|
||||||
|
and "--localstatedir" to set the default parent directory
|
||||||
|
of "run/named.pid". For backwards compatibility with BIND 8,
|
||||||
|
--sysconfdir defaults to "/etc" and --localstatedir defaults to
|
||||||
|
"/var" if no --prefix option is given. If there is a --prefix
|
||||||
|
option, sysconfdir defaults to "$prefix/etc" and localstatedir
|
||||||
|
defaults to "$prefix/var".
|
||||||
|
|
||||||
|
To see additional configure options, run "configure --help".
|
||||||
|
Note that the help message does not reflect the BIND 8
|
||||||
|
compatibility defaults for sysconfdir and localstatedir.
|
||||||
|
|
||||||
|
If you're planning on making changes to the BIND 9 source, you
|
||||||
|
should also "make depend". If you're using Emacs, you might find
|
||||||
|
"make tags" helpful.
|
||||||
|
|
||||||
|
If you need to re-run configure please run "make distclean" first.
|
||||||
|
This will ensure that all the option changes take.
|
||||||
|
|
||||||
|
Building with gcc is not supported, unless gcc is the vendor's usual
|
||||||
|
compiler (e.g. the various BSD systems, Linux).
|
||||||
|
|
||||||
|
Known compiler issues:
|
||||||
|
* gcc-3.2.1 and gcc-3.1.1 is known to cause problems with solaris-x86.
|
||||||
|
* gcc prior to gcc-3.2.3 ultrasparc generates incorrect code at -02.
|
||||||
|
* gcc-3.3.5 powerpc generates incorrect code at -02.
|
||||||
|
* Irix, MipsPRO 7.4.1m is known to cause problems.
|
||||||
|
|
||||||
|
A limited test suite can be run with "make test". Many of
|
||||||
|
the tests require you to configure a set of virtual IP addresses
|
||||||
|
on your system, and some require Perl; see bin/tests/system/README
|
||||||
|
for details.
|
||||||
|
|
||||||
|
SunOS 4 requires "printf" to be installed to make the shared
|
||||||
|
libraries. sh-utils-1.16 provides a "printf" which compiles
|
||||||
|
on SunOS 4.
|
||||||
|
|
||||||
|
Known limitations
|
||||||
|
|
||||||
|
Linux requires kernel build 2.6.39 or later to get the
|
||||||
|
performance benefits from using multiple sockets.
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
|
||||||
|
The BIND 9 Administrator Reference Manual is included with the
|
||||||
|
source distribution in DocBook XML and HTML format, in the
|
||||||
|
doc/arm directory.
|
||||||
|
|
||||||
|
Some of the programs in the BIND 9 distribution have man pages
|
||||||
|
in their directories. In particular, the command line
|
||||||
|
options of "named" are documented in /bin/named/named.8.
|
||||||
|
There is now also a set of man pages for the lwres library.
|
||||||
|
|
||||||
|
If you are upgrading from BIND 8, please read the migration
|
||||||
|
notes in doc/misc/migration. If you are upgrading from
|
||||||
|
BIND 4, read doc/misc/migration-4to9.
|
||||||
|
|
||||||
|
Frequently asked questions and their answers can be found in
|
||||||
|
FAQ.
|
||||||
|
|
||||||
|
Additional information on various subjects can be found
|
||||||
|
in the other README files.
|
||||||
|
|
||||||
|
|
||||||
|
Change Log
|
||||||
|
|
||||||
|
A detailed list of all changes to BIND 9 is included in the
|
||||||
|
file CHANGES, with the most recent changes listed first.
|
||||||
|
Change notes include tags indicating the category of the
|
||||||
|
change that was made; these categories are:
|
||||||
|
|
||||||
|
[func] New feature
|
||||||
|
|
||||||
|
[bug] General bug fix
|
||||||
|
|
||||||
|
[security] Fix for a significant security flaw
|
||||||
|
|
||||||
|
[experimental] Used for new features when the syntax
|
||||||
|
or other aspects of the design are still
|
||||||
|
in flux and may change
|
||||||
|
|
||||||
|
[port] Portability enhancement
|
||||||
|
|
||||||
|
[maint] Updates to built-in data such as root
|
||||||
|
server addresses and keys
|
||||||
|
|
||||||
|
[tuning] Changes to built-in configuration defaults
|
||||||
|
and constants to improve performance
|
||||||
|
|
||||||
|
[protocol] Updates to the DNS protocol such as new
|
||||||
|
RR types
|
||||||
|
|
||||||
|
[test] Changes to the automatic tests, not
|
||||||
|
affecting server functionality
|
||||||
|
|
||||||
|
[cleanup] Minor corrections and refactoring
|
||||||
|
|
||||||
|
[doc] Documentation
|
||||||
|
|
||||||
|
[contrib] Changes to the contributed tools and
|
||||||
|
libraries in the 'contrib' subdirectory
|
||||||
|
|
||||||
|
[placeholder] Used in the master development branch to
|
||||||
|
reserve change numbers for use in other
|
||||||
|
branches, e.g. when fixing a bug that only
|
||||||
|
exists in older releases
|
||||||
|
|
||||||
|
In general, [func] and [experimental] tags will only appear
|
||||||
|
in new-feature releases (i.e., those with version numbers
|
||||||
|
ending in zero). Some new functionality may be backported to
|
||||||
|
older releases on a case-by-case basis. All other change
|
||||||
|
types may be applied to all currently-supported releases.
|
||||||
|
|
||||||
|
|
||||||
|
Bug Reports and Mailing Lists
|
||||||
|
|
||||||
|
Bug reports should be sent to:
|
||||||
|
|
||||||
|
bind9-bugs@isc.org
|
||||||
|
|
||||||
|
Feature requests can be sent to:
|
||||||
|
|
||||||
|
bind-suggest@isc.org
|
||||||
|
|
||||||
|
To join or view the archives of the BIND Users mailing list,
|
||||||
|
visit:
|
||||||
|
|
||||||
|
https://lists.isc.org/mailman/listinfo/bind-users
|
||||||
|
|
||||||
|
If you're planning on making changes to the BIND 9 source
|
||||||
|
code, you may also want to join the BIND Workers mailing
|
||||||
|
list:
|
||||||
|
|
||||||
|
https://lists.isc.org/mailman/listinfo/bind-workers
|
||||||
|
|
||||||
|
Information on read-only Git access, coding style and developer
|
||||||
|
guidelines can be found at:
|
||||||
|
|
||||||
|
http://www.isc.org/git/
|
||||||
|
|
||||||
|
|
||||||
|
Acknowledgments
|
||||||
|
|
||||||
|
- This product includes software developed by the OpenSSL Project
|
||||||
|
for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/).
|
||||||
|
- This product includes cryptographic software written by Eric
|
||||||
|
Young (eay@cryptsoft.com).
|
||||||
|
- This product includes software written by Tim Hudson
|
||||||
|
(tjh@cryptsoft.com).
|
||||||
150
external/bsd/bind/dist/acconfig.h
vendored
Normal file
150
external/bsd/bind/dist/acconfig.h
vendored
Normal file
|
|
@ -0,0 +1,150 @@
|
||||||
|
/* $NetBSD: acconfig.h,v 1.8 2014/12/10 04:37:51 christos Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004, 2005, 2007, 2008, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 1999-2003 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Id: acconfig.h,v 1.53 2008/12/01 23:47:44 tbox Exp */
|
||||||
|
|
||||||
|
/*! \file */
|
||||||
|
|
||||||
|
/***
|
||||||
|
*** This file is not to be included by any public header files, because
|
||||||
|
*** it does not get installed.
|
||||||
|
***/
|
||||||
|
@TOP@
|
||||||
|
|
||||||
|
/** define on DEC OSF to enable 4.4BSD style sa_len support */
|
||||||
|
#undef _SOCKADDR_LEN
|
||||||
|
|
||||||
|
/** define if your system needs pthread_init() before using pthreads */
|
||||||
|
#undef NEED_PTHREAD_INIT
|
||||||
|
|
||||||
|
/** define if your system has sigwait() */
|
||||||
|
#undef HAVE_SIGWAIT
|
||||||
|
|
||||||
|
/** define if sigwait() is the UnixWare flavor */
|
||||||
|
#undef HAVE_UNIXWARE_SIGWAIT
|
||||||
|
|
||||||
|
/** define on Solaris to get sigwait() to work using pthreads semantics */
|
||||||
|
#undef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
|
||||||
|
/** define if LinuxThreads is in use */
|
||||||
|
#undef HAVE_LINUXTHREADS
|
||||||
|
|
||||||
|
/** define if sysconf() is available */
|
||||||
|
#undef HAVE_SYSCONF
|
||||||
|
|
||||||
|
/** define if sysctlbyname() is available */
|
||||||
|
#undef HAVE_SYSCTLBYNAME
|
||||||
|
|
||||||
|
/** define if catgets() is available */
|
||||||
|
#undef HAVE_CATGETS
|
||||||
|
|
||||||
|
/** define if getifaddrs() exists */
|
||||||
|
#undef HAVE_GETIFADDRS
|
||||||
|
|
||||||
|
/** define if you have the NET_RT_IFLIST sysctl variable and sys/sysctl.h */
|
||||||
|
#undef HAVE_IFLIST_SYSCTL
|
||||||
|
|
||||||
|
/** define if tzset() is available */
|
||||||
|
#undef HAVE_TZSET
|
||||||
|
|
||||||
|
/** define if struct addrinfo exists */
|
||||||
|
#undef HAVE_ADDRINFO
|
||||||
|
|
||||||
|
/** define if getaddrinfo() exists */
|
||||||
|
#undef HAVE_GETADDRINFO
|
||||||
|
|
||||||
|
/** define if gai_strerror() exists */
|
||||||
|
#undef HAVE_GAISTRERROR
|
||||||
|
|
||||||
|
/** define if arc4random() exists */
|
||||||
|
#undef HAVE_ARC4RANDOM
|
||||||
|
|
||||||
|
/** define if arc4random_addrandom() exists */
|
||||||
|
#undef HAVE_ARC4RANDOM_ADDRANDOM
|
||||||
|
|
||||||
|
/**
|
||||||
|
* define if pthread_setconcurrency() should be called to tell the
|
||||||
|
* OS how many threads we might want to run.
|
||||||
|
*/
|
||||||
|
#undef CALL_PTHREAD_SETCONCURRENCY
|
||||||
|
|
||||||
|
/** define if IPv6 is not disabled */
|
||||||
|
#undef WANT_IPV6
|
||||||
|
|
||||||
|
/** define if flockfile() is available */
|
||||||
|
#undef HAVE_FLOCKFILE
|
||||||
|
|
||||||
|
/** define if getc_unlocked() is available */
|
||||||
|
#undef HAVE_GETCUNLOCKED
|
||||||
|
|
||||||
|
/** Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
|
||||||
|
#undef SHUTUP_SPUTAUX
|
||||||
|
#ifdef SHUTUP_SPUTAUX
|
||||||
|
struct __sFILE;
|
||||||
|
extern __inline int __sputaux(int _c, struct __sFILE *_p);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** Shut up warnings about missing sigwait prototype on BSD/OS 4.0* */
|
||||||
|
#undef SHUTUP_SIGWAIT
|
||||||
|
#ifdef SHUTUP_SIGWAIT
|
||||||
|
int sigwait(const unsigned int *set, int *sig);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */
|
||||||
|
#undef SHUTUP_STDARG_CAST
|
||||||
|
#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__)
|
||||||
|
#include <stdarg.h> /** Grr. Must be included *every time*. */
|
||||||
|
/**
|
||||||
|
* The silly continuation line is to keep configure from
|
||||||
|
* commenting out the #undef.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#undef \
|
||||||
|
va_start
|
||||||
|
#define va_start(ap, last) \
|
||||||
|
do { \
|
||||||
|
union { const void *konst; long *var; } _u; \
|
||||||
|
_u.konst = &(last); \
|
||||||
|
ap = (va_list)(_u.var + __va_words(__typeof(last))); \
|
||||||
|
} while (/*CONSTCOND*/0)
|
||||||
|
#endif /** SHUTUP_STDARG_CAST && __GNUC__ */
|
||||||
|
|
||||||
|
/** define if the system has a random number generating device */
|
||||||
|
#undef PATH_RANDOMDEV
|
||||||
|
|
||||||
|
/** define if pthread_attr_getstacksize() is available */
|
||||||
|
#undef HAVE_PTHREAD_ATTR_GETSTACKSIZE
|
||||||
|
|
||||||
|
/** define if pthread_attr_setstacksize() is available */
|
||||||
|
#undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
|
||||||
|
|
||||||
|
/** define if you have strerror in the C library. */
|
||||||
|
#undef HAVE_STRERROR
|
||||||
|
|
||||||
|
/* Define if OpenSSL includes DSA support */
|
||||||
|
#undef HAVE_OPENSSL_DSA
|
||||||
|
|
||||||
|
/* Define if you have getpassphrase in the C library. */
|
||||||
|
#undef HAVE_GETPASSPHRASE
|
||||||
|
|
||||||
|
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
|
||||||
|
#undef ISC_SOCKADDR_LEN_T
|
||||||
|
|
||||||
|
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
|
||||||
|
#undef NEED_PTHREAD_SCOPE_SYSTEM
|
||||||
17
external/bsd/bind/dist/aclocal.m4
vendored
Normal file
17
external/bsd/bind/dist/aclocal.m4
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
sinclude(libtool.m4/libtool.m4)dnl
|
||||||
|
sinclude(libtool.m4/ltoptions.m4)dnl
|
||||||
|
sinclude(libtool.m4/ltsugar.m4)dnl
|
||||||
|
sinclude(libtool.m4/ltversion.m4)dnl
|
||||||
|
sinclude(libtool.m4/lt~obsolete.m4)dnl
|
||||||
|
|
||||||
|
m4_divert_text(HELP_CANON, [[
|
||||||
|
NOTE: If PREFIX is not set, then the default values for --sysconfdir
|
||||||
|
and --localstatedir are /etc and /var, respectively.]])
|
||||||
|
m4_divert_text(HELP_END, [[
|
||||||
|
Professional support for BIND is provided by Internet Systems Consortium,
|
||||||
|
Inc. Information about paid support and training options is available at
|
||||||
|
https://www.isc.org/support.
|
||||||
|
|
||||||
|
Help can also often be found on the BIND Users mailing list
|
||||||
|
(https://lists.isc.org/mailman/listinfo/bind-users) or in the #bind
|
||||||
|
channel of the Freenode IRC service.]])
|
||||||
26
external/bsd/bind/dist/bin/Makefile.in
vendored
Normal file
26
external/bsd/bind/dist/bin/Makefile.in
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# Copyright (C) 2004, 2007, 2009, 2012-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
# Copyright (C) 1998-2001 Internet Software Consortium.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
# copyright notice and this permission notice appear in all copies.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
# Id: Makefile.in,v 1.29 2009/10/05 12:07:08 fdupont Exp
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
|
||||||
|
SUBDIRS = named rndc dig delv dnssec tools tests nsupdate \
|
||||||
|
check confgen @PYTHON_TOOLS@ @PKCS11_TOOLS@
|
||||||
|
TARGETS =
|
||||||
|
|
||||||
|
@BIND9_MAKE_RULES@
|
||||||
100
external/bsd/bind/dist/bin/check/Makefile.in
vendored
Normal file
100
external/bsd/bind/dist/bin/check/Makefile.in
vendored
Normal file
|
|
@ -0,0 +1,100 @@
|
||||||
|
# Copyright (C) 2004-2007, 2009, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
# Copyright (C) 2000-2003 Internet Software Consortium.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
# copyright notice and this permission notice appear in all copies.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
# Id: Makefile.in,v 1.36 2009/12/05 23:31:40 each Exp
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
|
||||||
|
@BIND9_VERSION@
|
||||||
|
|
||||||
|
@BIND9_MAKE_INCLUDES@
|
||||||
|
|
||||||
|
CINCLUDES = ${BIND9_INCLUDES} ${DNS_INCLUDES} ${ISCCFG_INCLUDES} \
|
||||||
|
${ISC_INCLUDES}
|
||||||
|
|
||||||
|
CDEFINES = -DNAMED_CONFFILE=\"${sysconfdir}/named.conf\"
|
||||||
|
CWARNINGS =
|
||||||
|
|
||||||
|
DNSLIBS = ../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
|
||||||
|
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
|
||||||
|
ISCLIBS = ../../lib/isc/libisc.@A@
|
||||||
|
ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@
|
||||||
|
BIND9LIBS = ../../lib/bind9/libbind9.@A@
|
||||||
|
|
||||||
|
DNSDEPLIBS = ../../lib/dns/libdns.@A@
|
||||||
|
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
|
||||||
|
ISCDEPLIBS = ../../lib/isc/libisc.@A@
|
||||||
|
BIND9DEPLIBS = ../../lib/bind9/libbind9.@A@
|
||||||
|
|
||||||
|
LIBS = ${ISCLIBS} @LIBS@
|
||||||
|
NOSYMLIBS = ${ISCNOSYMLIBS} @LIBS@
|
||||||
|
|
||||||
|
SUBDIRS =
|
||||||
|
|
||||||
|
# Alphabetically
|
||||||
|
TARGETS = named-checkconf@EXEEXT@ named-checkzone@EXEEXT@
|
||||||
|
|
||||||
|
# Alphabetically
|
||||||
|
SRCS = named-checkconf.c named-checkzone.c check-tool.c
|
||||||
|
|
||||||
|
MANPAGES = named-checkconf.8 named-checkzone.8
|
||||||
|
|
||||||
|
HTMLPAGES = named-checkconf.html named-checkzone.html
|
||||||
|
|
||||||
|
MANOBJS = ${MANPAGES} ${HTMLPAGES}
|
||||||
|
|
||||||
|
@BIND9_MAKE_RULES@
|
||||||
|
|
||||||
|
named-checkconf.@O@: named-checkconf.c
|
||||||
|
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
||||||
|
-DVERSION=\"${VERSION}\" \
|
||||||
|
-c ${srcdir}/named-checkconf.c
|
||||||
|
|
||||||
|
named-checkzone.@O@: named-checkzone.c
|
||||||
|
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
||||||
|
-DVERSION=\"${VERSION}\" \
|
||||||
|
-c ${srcdir}/named-checkzone.c
|
||||||
|
|
||||||
|
named-checkconf@EXEEXT@: named-checkconf.@O@ check-tool.@O@ ${ISCDEPLIBS} \
|
||||||
|
${DNSDEPLIBS} ${ISCCFGDEPLIBS} ${BIND9DEPLIBS}
|
||||||
|
export BASEOBJS="named-checkconf.@O@ check-tool.@O@"; \
|
||||||
|
export LIBS0="${BIND9LIBS} ${ISCCFGLIBS} ${DNSLIBS}"; \
|
||||||
|
${FINALBUILDCMD}
|
||||||
|
|
||||||
|
named-checkzone@EXEEXT@: named-checkzone.@O@ check-tool.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||||
|
export BASEOBJS="named-checkzone.@O@ check-tool.@O@"; \
|
||||||
|
export LIBS0="${ISCCFGLIBS} ${DNSLIBS}"; \
|
||||||
|
${FINALBUILDCMD}
|
||||||
|
|
||||||
|
doc man:: ${MANOBJS}
|
||||||
|
|
||||||
|
docclean manclean maintainer-clean::
|
||||||
|
rm -f ${MANOBJS}
|
||||||
|
|
||||||
|
installdirs:
|
||||||
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
|
||||||
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
|
||||||
|
|
||||||
|
install:: named-checkconf@EXEEXT@ named-checkzone@EXEEXT@ installdirs
|
||||||
|
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-checkconf@EXEEXT@ ${DESTDIR}${sbindir}
|
||||||
|
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-checkzone@EXEEXT@ ${DESTDIR}${sbindir}
|
||||||
|
(cd ${DESTDIR}${sbindir}; rm -f named-compilezone@EXEEXT@; ${LINK_PROGRAM} named-checkzone@EXEEXT@ named-compilezone@EXEEXT@)
|
||||||
|
for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8; done
|
||||||
|
(cd ${DESTDIR}${mandir}/man8; rm -f named-compilezone.8; ${LINK_PROGRAM} named-checkzone.8 named-compilezone.8)
|
||||||
|
|
||||||
|
clean distclean::
|
||||||
|
rm -f ${TARGETS} r1.htm
|
||||||
803
external/bsd/bind/dist/bin/check/check-tool.c
vendored
Normal file
803
external/bsd/bind/dist/bin/check/check-tool.c
vendored
Normal file
|
|
@ -0,0 +1,803 @@
|
||||||
|
/* $NetBSD: check-tool.c,v 1.7 2014/12/10 04:37:51 christos Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Id: check-tool.c,v 1.44 2011/12/22 07:32:39 each Exp */
|
||||||
|
|
||||||
|
/*! \file */
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <Winsock2.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "check-tool.h"
|
||||||
|
#include <isc/buffer.h>
|
||||||
|
#include <isc/log.h>
|
||||||
|
#include <isc/mem.h>
|
||||||
|
#include <isc/netdb.h>
|
||||||
|
#include <isc/net.h>
|
||||||
|
#include <isc/region.h>
|
||||||
|
#include <isc/stdio.h>
|
||||||
|
#include <isc/string.h>
|
||||||
|
#include <isc/symtab.h>
|
||||||
|
#include <isc/types.h>
|
||||||
|
#include <isc/util.h>
|
||||||
|
|
||||||
|
#include <dns/db.h>
|
||||||
|
#include <dns/dbiterator.h>
|
||||||
|
#include <dns/fixedname.h>
|
||||||
|
#include <dns/log.h>
|
||||||
|
#include <dns/name.h>
|
||||||
|
#include <dns/rdata.h>
|
||||||
|
#include <dns/rdataclass.h>
|
||||||
|
#include <dns/rdataset.h>
|
||||||
|
#include <dns/rdatasetiter.h>
|
||||||
|
#include <dns/rdatatype.h>
|
||||||
|
#include <dns/result.h>
|
||||||
|
#include <dns/types.h>
|
||||||
|
#include <dns/zone.h>
|
||||||
|
|
||||||
|
#include <isccfg/log.h>
|
||||||
|
|
||||||
|
#ifndef CHECK_SIBLING
|
||||||
|
#define CHECK_SIBLING 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CHECK_LOCAL
|
||||||
|
#define CHECK_LOCAL 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_ADDRINFO
|
||||||
|
#ifdef HAVE_GETADDRINFO
|
||||||
|
#ifdef HAVE_GAISTRERROR
|
||||||
|
#define USE_GETADDRINFO
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define CHECK(r) \
|
||||||
|
do { \
|
||||||
|
result = (r); \
|
||||||
|
if (result != ISC_R_SUCCESS) \
|
||||||
|
goto cleanup; \
|
||||||
|
} while (/*CONSTCOND*/0)
|
||||||
|
|
||||||
|
#define ERR_IS_CNAME 1
|
||||||
|
#define ERR_NO_ADDRESSES 2
|
||||||
|
#define ERR_LOOKUP_FAILURE 3
|
||||||
|
#define ERR_EXTRA_A 4
|
||||||
|
#define ERR_EXTRA_AAAA 5
|
||||||
|
#define ERR_MISSING_GLUE 5
|
||||||
|
#define ERR_IS_MXCNAME 6
|
||||||
|
#define ERR_IS_SRVCNAME 7
|
||||||
|
|
||||||
|
static const char *dbtype[] = { "rbt" };
|
||||||
|
|
||||||
|
int debug = 0;
|
||||||
|
const char *journal = NULL;
|
||||||
|
isc_boolean_t nomerge = ISC_TRUE;
|
||||||
|
#if CHECK_LOCAL
|
||||||
|
isc_boolean_t docheckmx = ISC_TRUE;
|
||||||
|
isc_boolean_t dochecksrv = ISC_TRUE;
|
||||||
|
isc_boolean_t docheckns = ISC_TRUE;
|
||||||
|
#else
|
||||||
|
isc_boolean_t docheckmx = ISC_FALSE;
|
||||||
|
isc_boolean_t dochecksrv = ISC_FALSE;
|
||||||
|
isc_boolean_t docheckns = ISC_FALSE;
|
||||||
|
#endif
|
||||||
|
unsigned int zone_options = DNS_ZONEOPT_CHECKNS |
|
||||||
|
DNS_ZONEOPT_CHECKMX |
|
||||||
|
DNS_ZONEOPT_MANYERRORS |
|
||||||
|
DNS_ZONEOPT_CHECKNAMES |
|
||||||
|
DNS_ZONEOPT_CHECKINTEGRITY |
|
||||||
|
#if CHECK_SIBLING
|
||||||
|
DNS_ZONEOPT_CHECKSIBLING |
|
||||||
|
#endif
|
||||||
|
DNS_ZONEOPT_CHECKWILDCARD |
|
||||||
|
DNS_ZONEOPT_WARNMXCNAME |
|
||||||
|
DNS_ZONEOPT_WARNSRVCNAME;
|
||||||
|
unsigned int zone_options2 = 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This needs to match the list in bin/named/log.c.
|
||||||
|
*/
|
||||||
|
static isc_logcategory_t categories[] = {
|
||||||
|
{ "", 0 },
|
||||||
|
{ "client", 0 },
|
||||||
|
{ "network", 0 },
|
||||||
|
{ "update", 0 },
|
||||||
|
{ "queries", 0 },
|
||||||
|
{ "unmatched", 0 },
|
||||||
|
{ "update-security", 0 },
|
||||||
|
{ "query-errors", 0 },
|
||||||
|
{ NULL, 0 }
|
||||||
|
};
|
||||||
|
|
||||||
|
static isc_symtab_t *symtab = NULL;
|
||||||
|
static isc_mem_t *sym_mctx;
|
||||||
|
|
||||||
|
static void
|
||||||
|
freekey(char *key, unsigned int type, isc_symvalue_t value, void *userarg) {
|
||||||
|
UNUSED(type);
|
||||||
|
UNUSED(value);
|
||||||
|
isc_mem_free(userarg, key);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
add(char *key, int value) {
|
||||||
|
isc_result_t result;
|
||||||
|
isc_symvalue_t symvalue;
|
||||||
|
|
||||||
|
if (sym_mctx == NULL) {
|
||||||
|
result = isc_mem_create(0, 0, &sym_mctx);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (symtab == NULL) {
|
||||||
|
result = isc_symtab_create(sym_mctx, 100, freekey, sym_mctx,
|
||||||
|
ISC_FALSE, &symtab);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
key = isc_mem_strdup(sym_mctx, key);
|
||||||
|
if (key == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
symvalue.as_pointer = NULL;
|
||||||
|
result = isc_symtab_define(symtab, key, value, symvalue,
|
||||||
|
isc_symexists_reject);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
isc_mem_free(sym_mctx, key);
|
||||||
|
}
|
||||||
|
|
||||||
|
static isc_boolean_t
|
||||||
|
logged(char *key, int value) {
|
||||||
|
isc_result_t result;
|
||||||
|
|
||||||
|
if (symtab == NULL)
|
||||||
|
return (ISC_FALSE);
|
||||||
|
|
||||||
|
result = isc_symtab_lookup(symtab, key, value, NULL);
|
||||||
|
if (result == ISC_R_SUCCESS)
|
||||||
|
return (ISC_TRUE);
|
||||||
|
return (ISC_FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
|
static isc_boolean_t
|
||||||
|
checkns(dns_zone_t *zone, dns_name_t *name, dns_name_t *owner,
|
||||||
|
dns_rdataset_t *a, dns_rdataset_t *aaaa)
|
||||||
|
{
|
||||||
|
#ifdef USE_GETADDRINFO
|
||||||
|
dns_rdataset_t *rdataset;
|
||||||
|
dns_rdata_t rdata = DNS_RDATA_INIT;
|
||||||
|
struct addrinfo hints, *ai, *cur;
|
||||||
|
char namebuf[DNS_NAME_FORMATSIZE + 1];
|
||||||
|
char ownerbuf[DNS_NAME_FORMATSIZE];
|
||||||
|
char addrbuf[sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:123.123.123.123")];
|
||||||
|
isc_boolean_t answer = ISC_TRUE;
|
||||||
|
isc_boolean_t match;
|
||||||
|
const char *type;
|
||||||
|
void *ptr = NULL;
|
||||||
|
int result;
|
||||||
|
|
||||||
|
REQUIRE(a == NULL || !dns_rdataset_isassociated(a) ||
|
||||||
|
a->type == dns_rdatatype_a);
|
||||||
|
REQUIRE(aaaa == NULL || !dns_rdataset_isassociated(aaaa) ||
|
||||||
|
aaaa->type == dns_rdatatype_aaaa);
|
||||||
|
|
||||||
|
if (a == NULL || aaaa == NULL)
|
||||||
|
return (answer);
|
||||||
|
|
||||||
|
memset(&hints, 0, sizeof(hints));
|
||||||
|
hints.ai_flags = AI_CANONNAME;
|
||||||
|
hints.ai_family = PF_UNSPEC;
|
||||||
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
|
hints.ai_protocol = IPPROTO_TCP;
|
||||||
|
|
||||||
|
dns_name_format(name, namebuf, sizeof(namebuf) - 1);
|
||||||
|
/*
|
||||||
|
* Turn off search.
|
||||||
|
*/
|
||||||
|
if (dns_name_countlabels(name) > 1U)
|
||||||
|
strcat(namebuf, ".");
|
||||||
|
dns_name_format(owner, ownerbuf, sizeof(ownerbuf));
|
||||||
|
|
||||||
|
result = getaddrinfo(namebuf, NULL, &hints, &ai);
|
||||||
|
dns_name_format(name, namebuf, sizeof(namebuf) - 1);
|
||||||
|
switch (result) {
|
||||||
|
case 0:
|
||||||
|
/*
|
||||||
|
* Work around broken getaddrinfo() implementations that
|
||||||
|
* fail to set ai_canonname on first entry.
|
||||||
|
*/
|
||||||
|
cur = ai;
|
||||||
|
while (cur != NULL && cur->ai_canonname == NULL &&
|
||||||
|
cur->ai_next != NULL)
|
||||||
|
cur = cur->ai_next;
|
||||||
|
if (cur != NULL && cur->ai_canonname != NULL &&
|
||||||
|
strcasecmp(cur->ai_canonname, namebuf) != 0 &&
|
||||||
|
!logged(namebuf, ERR_IS_CNAME)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_ERROR,
|
||||||
|
"%s/NS '%s' (out of zone) "
|
||||||
|
"is a CNAME '%s' (illegal)",
|
||||||
|
ownerbuf, namebuf,
|
||||||
|
cur->ai_canonname);
|
||||||
|
/* XXX950 make fatal for 9.5.0 */
|
||||||
|
/* answer = ISC_FALSE; */
|
||||||
|
add(namebuf, ERR_IS_CNAME);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case EAI_NONAME:
|
||||||
|
#if defined(EAI_NODATA) && (EAI_NODATA != EAI_NONAME)
|
||||||
|
case EAI_NODATA:
|
||||||
|
#endif
|
||||||
|
if (!logged(namebuf, ERR_NO_ADDRESSES)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_ERROR,
|
||||||
|
"%s/NS '%s' (out of zone) "
|
||||||
|
"has no addresses records (A or AAAA)",
|
||||||
|
ownerbuf, namebuf);
|
||||||
|
add(namebuf, ERR_NO_ADDRESSES);
|
||||||
|
}
|
||||||
|
/* XXX950 make fatal for 9.5.0 */
|
||||||
|
return (ISC_TRUE);
|
||||||
|
|
||||||
|
default:
|
||||||
|
if (!logged(namebuf, ERR_LOOKUP_FAILURE)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_WARNING,
|
||||||
|
"getaddrinfo(%s) failed: %s",
|
||||||
|
namebuf, gai_strerror(result));
|
||||||
|
add(namebuf, ERR_LOOKUP_FAILURE);
|
||||||
|
}
|
||||||
|
return (ISC_TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Check that all glue records really exist.
|
||||||
|
*/
|
||||||
|
if (!dns_rdataset_isassociated(a))
|
||||||
|
goto checkaaaa;
|
||||||
|
result = dns_rdataset_first(a);
|
||||||
|
while (result == ISC_R_SUCCESS) {
|
||||||
|
dns_rdataset_current(a, &rdata);
|
||||||
|
match = ISC_FALSE;
|
||||||
|
for (cur = ai; cur != NULL; cur = cur->ai_next) {
|
||||||
|
if (cur->ai_family != AF_INET)
|
||||||
|
continue;
|
||||||
|
ptr = &((struct sockaddr_in *)(cur->ai_addr))->sin_addr;
|
||||||
|
if (memcmp(ptr, rdata.data, rdata.length) == 0) {
|
||||||
|
match = ISC_TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!match && !logged(namebuf, ERR_EXTRA_A)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_ERROR, "%s/NS '%s' "
|
||||||
|
"extra GLUE A record (%s)",
|
||||||
|
ownerbuf, namebuf,
|
||||||
|
inet_ntop(AF_INET, rdata.data,
|
||||||
|
addrbuf, sizeof(addrbuf)));
|
||||||
|
add(namebuf, ERR_EXTRA_A);
|
||||||
|
/* XXX950 make fatal for 9.5.0 */
|
||||||
|
/* answer = ISC_FALSE; */
|
||||||
|
}
|
||||||
|
dns_rdata_reset(&rdata);
|
||||||
|
result = dns_rdataset_next(a);
|
||||||
|
}
|
||||||
|
|
||||||
|
checkaaaa:
|
||||||
|
if (!dns_rdataset_isassociated(aaaa))
|
||||||
|
goto checkmissing;
|
||||||
|
result = dns_rdataset_first(aaaa);
|
||||||
|
while (result == ISC_R_SUCCESS) {
|
||||||
|
dns_rdataset_current(aaaa, &rdata);
|
||||||
|
match = ISC_FALSE;
|
||||||
|
for (cur = ai; cur != NULL; cur = cur->ai_next) {
|
||||||
|
if (cur->ai_family != AF_INET6)
|
||||||
|
continue;
|
||||||
|
ptr = &((struct sockaddr_in6 *)(cur->ai_addr))->sin6_addr;
|
||||||
|
if (memcmp(ptr, rdata.data, rdata.length) == 0) {
|
||||||
|
match = ISC_TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!match && !logged(namebuf, ERR_EXTRA_AAAA)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_ERROR, "%s/NS '%s' "
|
||||||
|
"extra GLUE AAAA record (%s)",
|
||||||
|
ownerbuf, namebuf,
|
||||||
|
inet_ntop(AF_INET6, rdata.data,
|
||||||
|
addrbuf, sizeof(addrbuf)));
|
||||||
|
add(namebuf, ERR_EXTRA_AAAA);
|
||||||
|
/* XXX950 make fatal for 9.5.0. */
|
||||||
|
/* answer = ISC_FALSE; */
|
||||||
|
}
|
||||||
|
dns_rdata_reset(&rdata);
|
||||||
|
result = dns_rdataset_next(aaaa);
|
||||||
|
}
|
||||||
|
|
||||||
|
checkmissing:
|
||||||
|
/*
|
||||||
|
* Check that all addresses appear in the glue.
|
||||||
|
*/
|
||||||
|
if (!logged(namebuf, ERR_MISSING_GLUE)) {
|
||||||
|
isc_boolean_t missing_glue = ISC_FALSE;
|
||||||
|
for (cur = ai; cur != NULL; cur = cur->ai_next) {
|
||||||
|
switch (cur->ai_family) {
|
||||||
|
case AF_INET:
|
||||||
|
rdataset = a;
|
||||||
|
ptr = &((struct sockaddr_in *)(cur->ai_addr))->sin_addr;
|
||||||
|
type = "A";
|
||||||
|
break;
|
||||||
|
case AF_INET6:
|
||||||
|
rdataset = aaaa;
|
||||||
|
ptr = &((struct sockaddr_in6 *)(cur->ai_addr))->sin6_addr;
|
||||||
|
type = "AAAA";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
match = ISC_FALSE;
|
||||||
|
if (dns_rdataset_isassociated(rdataset))
|
||||||
|
result = dns_rdataset_first(rdataset);
|
||||||
|
else
|
||||||
|
result = ISC_R_FAILURE;
|
||||||
|
while (result == ISC_R_SUCCESS && !match) {
|
||||||
|
dns_rdataset_current(rdataset, &rdata);
|
||||||
|
if (memcmp(ptr, rdata.data, rdata.length) == 0)
|
||||||
|
match = ISC_TRUE;
|
||||||
|
dns_rdata_reset(&rdata);
|
||||||
|
result = dns_rdataset_next(rdataset);
|
||||||
|
}
|
||||||
|
if (!match) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_ERROR, "%s/NS '%s' "
|
||||||
|
"missing GLUE %s record (%s)",
|
||||||
|
ownerbuf, namebuf, type,
|
||||||
|
inet_ntop(cur->ai_family, ptr,
|
||||||
|
addrbuf, sizeof(addrbuf)));
|
||||||
|
/* XXX950 make fatal for 9.5.0. */
|
||||||
|
/* answer = ISC_FALSE; */
|
||||||
|
missing_glue = ISC_TRUE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (missing_glue)
|
||||||
|
add(namebuf, ERR_MISSING_GLUE);
|
||||||
|
}
|
||||||
|
freeaddrinfo(ai);
|
||||||
|
return (answer);
|
||||||
|
#else
|
||||||
|
return (ISC_TRUE);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static isc_boolean_t
|
||||||
|
checkmx(dns_zone_t *zone, dns_name_t *name, dns_name_t *owner) {
|
||||||
|
#ifdef USE_GETADDRINFO
|
||||||
|
struct addrinfo hints, *ai, *cur;
|
||||||
|
char namebuf[DNS_NAME_FORMATSIZE + 1];
|
||||||
|
char ownerbuf[DNS_NAME_FORMATSIZE];
|
||||||
|
int result;
|
||||||
|
int level = ISC_LOG_ERROR;
|
||||||
|
isc_boolean_t answer = ISC_TRUE;
|
||||||
|
|
||||||
|
memset(&hints, 0, sizeof(hints));
|
||||||
|
hints.ai_flags = AI_CANONNAME;
|
||||||
|
hints.ai_family = PF_UNSPEC;
|
||||||
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
|
hints.ai_protocol = IPPROTO_TCP;
|
||||||
|
|
||||||
|
dns_name_format(name, namebuf, sizeof(namebuf) - 1);
|
||||||
|
/*
|
||||||
|
* Turn off search.
|
||||||
|
*/
|
||||||
|
if (dns_name_countlabels(name) > 1U)
|
||||||
|
strcat(namebuf, ".");
|
||||||
|
dns_name_format(owner, ownerbuf, sizeof(ownerbuf));
|
||||||
|
|
||||||
|
result = getaddrinfo(namebuf, NULL, &hints, &ai);
|
||||||
|
dns_name_format(name, namebuf, sizeof(namebuf) - 1);
|
||||||
|
switch (result) {
|
||||||
|
case 0:
|
||||||
|
/*
|
||||||
|
* Work around broken getaddrinfo() implementations that
|
||||||
|
* fail to set ai_canonname on first entry.
|
||||||
|
*/
|
||||||
|
cur = ai;
|
||||||
|
while (cur != NULL && cur->ai_canonname == NULL &&
|
||||||
|
cur->ai_next != NULL)
|
||||||
|
cur = cur->ai_next;
|
||||||
|
if (cur != NULL && cur->ai_canonname != NULL &&
|
||||||
|
strcasecmp(cur->ai_canonname, namebuf) != 0) {
|
||||||
|
if ((zone_options & DNS_ZONEOPT_WARNMXCNAME) != 0)
|
||||||
|
level = ISC_LOG_WARNING;
|
||||||
|
if ((zone_options & DNS_ZONEOPT_IGNOREMXCNAME) == 0) {
|
||||||
|
if (!logged(namebuf, ERR_IS_MXCNAME)) {
|
||||||
|
dns_zone_log(zone, level,
|
||||||
|
"%s/MX '%s' (out of zone)"
|
||||||
|
" is a CNAME '%s' "
|
||||||
|
"(illegal)",
|
||||||
|
ownerbuf, namebuf,
|
||||||
|
cur->ai_canonname);
|
||||||
|
add(namebuf, ERR_IS_MXCNAME);
|
||||||
|
}
|
||||||
|
if (level == ISC_LOG_ERROR)
|
||||||
|
answer = ISC_FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
freeaddrinfo(ai);
|
||||||
|
return (answer);
|
||||||
|
|
||||||
|
case EAI_NONAME:
|
||||||
|
#if defined(EAI_NODATA) && (EAI_NODATA != EAI_NONAME)
|
||||||
|
case EAI_NODATA:
|
||||||
|
#endif
|
||||||
|
if (!logged(namebuf, ERR_NO_ADDRESSES)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_ERROR,
|
||||||
|
"%s/MX '%s' (out of zone) "
|
||||||
|
"has no addresses records (A or AAAA)",
|
||||||
|
ownerbuf, namebuf);
|
||||||
|
add(namebuf, ERR_NO_ADDRESSES);
|
||||||
|
}
|
||||||
|
/* XXX950 make fatal for 9.5.0. */
|
||||||
|
return (ISC_TRUE);
|
||||||
|
|
||||||
|
default:
|
||||||
|
if (!logged(namebuf, ERR_LOOKUP_FAILURE)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_WARNING,
|
||||||
|
"getaddrinfo(%s) failed: %s",
|
||||||
|
namebuf, gai_strerror(result));
|
||||||
|
add(namebuf, ERR_LOOKUP_FAILURE);
|
||||||
|
}
|
||||||
|
return (ISC_TRUE);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
return (ISC_TRUE);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static isc_boolean_t
|
||||||
|
checksrv(dns_zone_t *zone, dns_name_t *name, dns_name_t *owner) {
|
||||||
|
#ifdef USE_GETADDRINFO
|
||||||
|
struct addrinfo hints, *ai, *cur;
|
||||||
|
char namebuf[DNS_NAME_FORMATSIZE + 1];
|
||||||
|
char ownerbuf[DNS_NAME_FORMATSIZE];
|
||||||
|
int result;
|
||||||
|
int level = ISC_LOG_ERROR;
|
||||||
|
isc_boolean_t answer = ISC_TRUE;
|
||||||
|
|
||||||
|
memset(&hints, 0, sizeof(hints));
|
||||||
|
hints.ai_flags = AI_CANONNAME;
|
||||||
|
hints.ai_family = PF_UNSPEC;
|
||||||
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
|
hints.ai_protocol = IPPROTO_TCP;
|
||||||
|
|
||||||
|
dns_name_format(name, namebuf, sizeof(namebuf) - 1);
|
||||||
|
/*
|
||||||
|
* Turn off search.
|
||||||
|
*/
|
||||||
|
if (dns_name_countlabels(name) > 1U)
|
||||||
|
strcat(namebuf, ".");
|
||||||
|
dns_name_format(owner, ownerbuf, sizeof(ownerbuf));
|
||||||
|
|
||||||
|
result = getaddrinfo(namebuf, NULL, &hints, &ai);
|
||||||
|
dns_name_format(name, namebuf, sizeof(namebuf) - 1);
|
||||||
|
switch (result) {
|
||||||
|
case 0:
|
||||||
|
/*
|
||||||
|
* Work around broken getaddrinfo() implementations that
|
||||||
|
* fail to set ai_canonname on first entry.
|
||||||
|
*/
|
||||||
|
cur = ai;
|
||||||
|
while (cur != NULL && cur->ai_canonname == NULL &&
|
||||||
|
cur->ai_next != NULL)
|
||||||
|
cur = cur->ai_next;
|
||||||
|
if (cur != NULL && cur->ai_canonname != NULL &&
|
||||||
|
strcasecmp(cur->ai_canonname, namebuf) != 0) {
|
||||||
|
if ((zone_options & DNS_ZONEOPT_WARNSRVCNAME) != 0)
|
||||||
|
level = ISC_LOG_WARNING;
|
||||||
|
if ((zone_options & DNS_ZONEOPT_IGNORESRVCNAME) == 0) {
|
||||||
|
if (!logged(namebuf, ERR_IS_SRVCNAME)) {
|
||||||
|
dns_zone_log(zone, level, "%s/SRV '%s'"
|
||||||
|
" (out of zone) is a "
|
||||||
|
"CNAME '%s' (illegal)",
|
||||||
|
ownerbuf, namebuf,
|
||||||
|
cur->ai_canonname);
|
||||||
|
add(namebuf, ERR_IS_SRVCNAME);
|
||||||
|
}
|
||||||
|
if (level == ISC_LOG_ERROR)
|
||||||
|
answer = ISC_FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
freeaddrinfo(ai);
|
||||||
|
return (answer);
|
||||||
|
|
||||||
|
case EAI_NONAME:
|
||||||
|
#if defined(EAI_NODATA) && (EAI_NODATA != EAI_NONAME)
|
||||||
|
case EAI_NODATA:
|
||||||
|
#endif
|
||||||
|
if (!logged(namebuf, ERR_NO_ADDRESSES)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_ERROR,
|
||||||
|
"%s/SRV '%s' (out of zone) "
|
||||||
|
"has no addresses records (A or AAAA)",
|
||||||
|
ownerbuf, namebuf);
|
||||||
|
add(namebuf, ERR_NO_ADDRESSES);
|
||||||
|
}
|
||||||
|
/* XXX950 make fatal for 9.5.0. */
|
||||||
|
return (ISC_TRUE);
|
||||||
|
|
||||||
|
default:
|
||||||
|
if (!logged(namebuf, ERR_LOOKUP_FAILURE)) {
|
||||||
|
dns_zone_log(zone, ISC_LOG_WARNING,
|
||||||
|
"getaddrinfo(%s) failed: %s",
|
||||||
|
namebuf, gai_strerror(result));
|
||||||
|
add(namebuf, ERR_LOOKUP_FAILURE);
|
||||||
|
}
|
||||||
|
return (ISC_TRUE);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
return (ISC_TRUE);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
isc_result_t
|
||||||
|
setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp) {
|
||||||
|
isc_logdestination_t destination;
|
||||||
|
isc_logconfig_t *logconfig = NULL;
|
||||||
|
isc_log_t *log = NULL;
|
||||||
|
|
||||||
|
RUNTIME_CHECK(isc_log_create(mctx, &log, &logconfig) == ISC_R_SUCCESS);
|
||||||
|
isc_log_registercategories(log, categories);
|
||||||
|
isc_log_setcontext(log);
|
||||||
|
dns_log_init(log);
|
||||||
|
dns_log_setcontext(log);
|
||||||
|
cfg_log_init(log);
|
||||||
|
|
||||||
|
destination.file.stream = errout;
|
||||||
|
destination.file.name = NULL;
|
||||||
|
destination.file.versions = ISC_LOG_ROLLNEVER;
|
||||||
|
destination.file.maximum_size = 0;
|
||||||
|
RUNTIME_CHECK(isc_log_createchannel(logconfig, "stderr",
|
||||||
|
ISC_LOG_TOFILEDESC,
|
||||||
|
ISC_LOG_DYNAMIC,
|
||||||
|
&destination, 0) == ISC_R_SUCCESS);
|
||||||
|
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr",
|
||||||
|
NULL, NULL) == ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
*logp = log;
|
||||||
|
return (ISC_R_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*% scan the zone for oversize TTLs */
|
||||||
|
static isc_result_t
|
||||||
|
check_ttls(dns_zone_t *zone, dns_ttl_t maxttl) {
|
||||||
|
isc_result_t result;
|
||||||
|
dns_db_t *db = NULL;
|
||||||
|
dns_dbversion_t *version = NULL;
|
||||||
|
dns_dbnode_t *node = NULL;
|
||||||
|
dns_dbiterator_t *dbiter = NULL;
|
||||||
|
dns_rdatasetiter_t *rdsiter = NULL;
|
||||||
|
dns_rdataset_t rdataset;
|
||||||
|
dns_fixedname_t fname;
|
||||||
|
dns_name_t *name;
|
||||||
|
dns_fixedname_init(&fname);
|
||||||
|
name = dns_fixedname_name(&fname);
|
||||||
|
dns_rdataset_init(&rdataset);
|
||||||
|
|
||||||
|
CHECK(dns_zone_getdb(zone, &db));
|
||||||
|
INSIST(db != NULL);
|
||||||
|
|
||||||
|
CHECK(dns_db_newversion(db, &version));
|
||||||
|
CHECK(dns_db_createiterator(db, 0, &dbiter));
|
||||||
|
|
||||||
|
for (result = dns_dbiterator_first(dbiter);
|
||||||
|
result == ISC_R_SUCCESS;
|
||||||
|
result = dns_dbiterator_next(dbiter)) {
|
||||||
|
result = dns_dbiterator_current(dbiter, &node, name);
|
||||||
|
if (result == DNS_R_NEWORIGIN)
|
||||||
|
result = ISC_R_SUCCESS;
|
||||||
|
CHECK(result);
|
||||||
|
|
||||||
|
CHECK(dns_db_allrdatasets(db, node, version, 0, &rdsiter));
|
||||||
|
for (result = dns_rdatasetiter_first(rdsiter);
|
||||||
|
result == ISC_R_SUCCESS;
|
||||||
|
result = dns_rdatasetiter_next(rdsiter)) {
|
||||||
|
dns_rdatasetiter_current(rdsiter, &rdataset);
|
||||||
|
if (rdataset.ttl > maxttl) {
|
||||||
|
char nbuf[DNS_NAME_FORMATSIZE];
|
||||||
|
char tbuf[255];
|
||||||
|
isc_buffer_t b;
|
||||||
|
isc_region_t r;
|
||||||
|
|
||||||
|
dns_name_format(name, nbuf, sizeof(nbuf));
|
||||||
|
isc_buffer_init(&b, tbuf, sizeof(tbuf) - 1);
|
||||||
|
CHECK(dns_rdatatype_totext(rdataset.type, &b));
|
||||||
|
isc_buffer_usedregion(&b, &r);
|
||||||
|
r.base[r.length] = 0;
|
||||||
|
|
||||||
|
dns_zone_log(zone, ISC_LOG_ERROR,
|
||||||
|
"%s/%s TTL %d exceeds "
|
||||||
|
"maximum TTL %d",
|
||||||
|
nbuf, tbuf, rdataset.ttl, maxttl);
|
||||||
|
dns_rdataset_disassociate(&rdataset);
|
||||||
|
CHECK(ISC_R_RANGE);
|
||||||
|
}
|
||||||
|
dns_rdataset_disassociate(&rdataset);
|
||||||
|
}
|
||||||
|
if (result == ISC_R_NOMORE)
|
||||||
|
result = ISC_R_SUCCESS;
|
||||||
|
CHECK(result);
|
||||||
|
|
||||||
|
dns_rdatasetiter_destroy(&rdsiter);
|
||||||
|
dns_db_detachnode(db, &node);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result == ISC_R_NOMORE)
|
||||||
|
result = ISC_R_SUCCESS;
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
if (node != NULL)
|
||||||
|
dns_db_detachnode(db, &node);
|
||||||
|
if (rdsiter != NULL)
|
||||||
|
dns_rdatasetiter_destroy(&rdsiter);
|
||||||
|
if (dbiter != NULL)
|
||||||
|
dns_dbiterator_destroy(&dbiter);
|
||||||
|
if (version != NULL)
|
||||||
|
dns_db_closeversion(db, &version, ISC_FALSE);
|
||||||
|
if (db != NULL)
|
||||||
|
dns_db_detach(&db);
|
||||||
|
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*% load the zone */
|
||||||
|
isc_result_t
|
||||||
|
load_zone(isc_mem_t *mctx, const char *zonename, const char *filename,
|
||||||
|
dns_masterformat_t fileformat, const char *classname,
|
||||||
|
dns_ttl_t maxttl, dns_zone_t **zonep)
|
||||||
|
{
|
||||||
|
isc_result_t result;
|
||||||
|
dns_rdataclass_t rdclass;
|
||||||
|
isc_textregion_t region;
|
||||||
|
isc_buffer_t buffer;
|
||||||
|
dns_fixedname_t fixorigin;
|
||||||
|
dns_name_t *origin;
|
||||||
|
dns_zone_t *zone = NULL;
|
||||||
|
|
||||||
|
REQUIRE(zonep == NULL || *zonep == NULL);
|
||||||
|
|
||||||
|
if (debug)
|
||||||
|
fprintf(stderr, "loading \"%s\" from \"%s\" class \"%s\"\n",
|
||||||
|
zonename, filename, classname);
|
||||||
|
|
||||||
|
CHECK(dns_zone_create(&zone, mctx));
|
||||||
|
|
||||||
|
dns_zone_settype(zone, dns_zone_master);
|
||||||
|
|
||||||
|
isc_buffer_constinit(&buffer, zonename, strlen(zonename));
|
||||||
|
isc_buffer_add(&buffer, strlen(zonename));
|
||||||
|
dns_fixedname_init(&fixorigin);
|
||||||
|
origin = dns_fixedname_name(&fixorigin);
|
||||||
|
CHECK(dns_name_fromtext(origin, &buffer, dns_rootname, 0, NULL));
|
||||||
|
CHECK(dns_zone_setorigin(zone, origin));
|
||||||
|
CHECK(dns_zone_setdbtype(zone, 1, (const char * const *) dbtype));
|
||||||
|
CHECK(dns_zone_setfile2(zone, filename, fileformat));
|
||||||
|
if (journal != NULL)
|
||||||
|
CHECK(dns_zone_setjournal(zone, journal));
|
||||||
|
|
||||||
|
DE_CONST(classname, region.base);
|
||||||
|
region.length = strlen(classname);
|
||||||
|
CHECK(dns_rdataclass_fromtext(&rdclass, ®ion));
|
||||||
|
|
||||||
|
dns_zone_setclass(zone, rdclass);
|
||||||
|
dns_zone_setoption(zone, zone_options, ISC_TRUE);
|
||||||
|
dns_zone_setoption2(zone, zone_options2, ISC_TRUE);
|
||||||
|
dns_zone_setoption(zone, DNS_ZONEOPT_NOMERGE, nomerge);
|
||||||
|
|
||||||
|
dns_zone_setmaxttl(zone, maxttl);
|
||||||
|
|
||||||
|
if (docheckmx)
|
||||||
|
dns_zone_setcheckmx(zone, checkmx);
|
||||||
|
if (docheckns)
|
||||||
|
dns_zone_setcheckns(zone, checkns);
|
||||||
|
if (dochecksrv)
|
||||||
|
dns_zone_setchecksrv(zone, checksrv);
|
||||||
|
|
||||||
|
CHECK(dns_zone_load(zone));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* When loading map files we can't catch oversize TTLs during
|
||||||
|
* load, so we check for them here.
|
||||||
|
*/
|
||||||
|
if (fileformat == dns_masterformat_map && maxttl != 0) {
|
||||||
|
CHECK(check_ttls(zone, maxttl));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (zonep != NULL) {
|
||||||
|
*zonep = zone;
|
||||||
|
zone = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
if (zone != NULL)
|
||||||
|
dns_zone_detach(&zone);
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*% dump the zone */
|
||||||
|
isc_result_t
|
||||||
|
dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
|
||||||
|
dns_masterformat_t fileformat, const dns_master_style_t *style,
|
||||||
|
const isc_uint32_t rawversion)
|
||||||
|
{
|
||||||
|
isc_result_t result;
|
||||||
|
FILE *output = stdout;
|
||||||
|
const char *flags;
|
||||||
|
|
||||||
|
flags = (fileformat == dns_masterformat_text) ? "w+" : "wb+";
|
||||||
|
|
||||||
|
if (debug) {
|
||||||
|
if (filename != NULL && strcmp(filename, "-") != 0)
|
||||||
|
fprintf(stderr, "dumping \"%s\" to \"%s\"\n",
|
||||||
|
zonename, filename);
|
||||||
|
else
|
||||||
|
fprintf(stderr, "dumping \"%s\"\n", zonename);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (filename != NULL && strcmp(filename, "-") != 0) {
|
||||||
|
result = isc_stdio_open(filename, flags, &output);
|
||||||
|
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
fprintf(stderr, "could not open output "
|
||||||
|
"file \"%s\" for writing\n", filename);
|
||||||
|
return (ISC_R_FAILURE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
result = dns_zone_dumptostream3(zone, output, fileformat, style,
|
||||||
|
rawversion);
|
||||||
|
if (output != stdout)
|
||||||
|
(void)isc_stdio_close(output);
|
||||||
|
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
void
|
||||||
|
InitSockets(void) {
|
||||||
|
WORD wVersionRequested;
|
||||||
|
WSADATA wsaData;
|
||||||
|
int err;
|
||||||
|
|
||||||
|
wVersionRequested = MAKEWORD(2, 0);
|
||||||
|
|
||||||
|
err = WSAStartup( wVersionRequested, &wsaData );
|
||||||
|
if (err != 0) {
|
||||||
|
fprintf(stderr, "WSAStartup() failed: %d\n", err);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
DestroySockets(void) {
|
||||||
|
WSACleanup();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
65
external/bsd/bind/dist/bin/check/check-tool.h
vendored
Normal file
65
external/bsd/bind/dist/bin/check/check-tool.h
vendored
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
/* $NetBSD: check-tool.h,v 1.5 2014/12/10 04:37:51 christos Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004, 2005, 2007, 2010, 2011, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Id: check-tool.h,v 1.18 2011/12/09 23:47:02 tbox Exp */
|
||||||
|
|
||||||
|
#ifndef CHECK_TOOL_H
|
||||||
|
#define CHECK_TOOL_H
|
||||||
|
|
||||||
|
/*! \file */
|
||||||
|
|
||||||
|
#include <isc/lang.h>
|
||||||
|
#include <isc/stdio.h>
|
||||||
|
#include <isc/types.h>
|
||||||
|
|
||||||
|
#include <dns/masterdump.h>
|
||||||
|
#include <dns/types.h>
|
||||||
|
|
||||||
|
ISC_LANG_BEGINDECLS
|
||||||
|
|
||||||
|
isc_result_t
|
||||||
|
setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp);
|
||||||
|
|
||||||
|
isc_result_t
|
||||||
|
load_zone(isc_mem_t *mctx, const char *zonename, const char *filename,
|
||||||
|
dns_masterformat_t fileformat, const char *classname,
|
||||||
|
dns_ttl_t maxttl, dns_zone_t **zonep);
|
||||||
|
|
||||||
|
isc_result_t
|
||||||
|
dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
|
||||||
|
dns_masterformat_t fileformat, const dns_master_style_t *style,
|
||||||
|
const isc_uint32_t rawversion);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
void InitSockets(void);
|
||||||
|
void DestroySockets(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern int debug;
|
||||||
|
extern const char *journal;
|
||||||
|
extern isc_boolean_t nomerge;
|
||||||
|
extern isc_boolean_t docheckmx;
|
||||||
|
extern isc_boolean_t docheckns;
|
||||||
|
extern isc_boolean_t dochecksrv;
|
||||||
|
extern unsigned int zone_options;
|
||||||
|
extern unsigned int zone_options2;
|
||||||
|
|
||||||
|
ISC_LANG_ENDDECLS
|
||||||
|
|
||||||
|
#endif
|
||||||
129
external/bsd/bind/dist/bin/check/named-checkconf.8
vendored
Normal file
129
external/bsd/bind/dist/bin/check/named-checkconf.8
vendored
Normal file
|
|
@ -0,0 +1,129 @@
|
||||||
|
.\" $NetBSD: named-checkconf.8,v 1.6 2014/12/10 04:37:51 christos Exp $
|
||||||
|
.\"
|
||||||
|
.\" Copyright (C) 2004, 2005, 2007, 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
.\" Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
|
.\"
|
||||||
|
.\" Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
.\" purpose with or without fee is hereby granted, provided that the above
|
||||||
|
.\" copyright notice and this permission notice appear in all copies.
|
||||||
|
.\"
|
||||||
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
.\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
.\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
.\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
.\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
.\" PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
.\"
|
||||||
|
.\" Id
|
||||||
|
.\"
|
||||||
|
.hy 0
|
||||||
|
.ad l
|
||||||
|
.\" Title: named\-checkconf
|
||||||
|
.\" Author:
|
||||||
|
.\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
|
||||||
|
.\" Date: January 10, 2014
|
||||||
|
.\" Manual: BIND9
|
||||||
|
.\" Source: BIND9
|
||||||
|
.\"
|
||||||
|
.TH "NAMED\-CHECKCONF" "8" "January 10, 2014" "BIND9" "BIND9"
|
||||||
|
.\" disable hyphenation
|
||||||
|
.nh
|
||||||
|
.\" disable justification (adjust text to left margin only)
|
||||||
|
.ad l
|
||||||
|
.SH "NAME"
|
||||||
|
named\-checkconf \- named configuration file syntax checking tool
|
||||||
|
.SH "SYNOPSIS"
|
||||||
|
.HP 16
|
||||||
|
\fBnamed\-checkconf\fR [\fB\-h\fR] [\fB\-v\fR] [\fB\-j\fR] [\fB\-t\ \fR\fB\fIdirectory\fR\fR] {filename} [\fB\-p\fR] [\fB\-x\fR] [\fB\-z\fR]
|
||||||
|
.SH "DESCRIPTION"
|
||||||
|
.PP
|
||||||
|
\fBnamed\-checkconf\fR
|
||||||
|
checks the syntax, but not the semantics, of a
|
||||||
|
\fBnamed\fR
|
||||||
|
configuration file. The file is parsed and checked for syntax errors, along with all files included by it. If no file is specified,
|
||||||
|
\fI/etc/named.conf\fR
|
||||||
|
is read by default.
|
||||||
|
.PP
|
||||||
|
Note: files that
|
||||||
|
\fBnamed\fR
|
||||||
|
reads in separate parser contexts, such as
|
||||||
|
\fIrndc.key\fR
|
||||||
|
and
|
||||||
|
\fIbind.keys\fR, are not automatically read by
|
||||||
|
\fBnamed\-checkconf\fR. Configuration errors in these files may cause
|
||||||
|
\fBnamed\fR
|
||||||
|
to fail to run, even if
|
||||||
|
\fBnamed\-checkconf\fR
|
||||||
|
was successful.
|
||||||
|
\fBnamed\-checkconf\fR
|
||||||
|
can be run on these files explicitly, however.
|
||||||
|
.SH "OPTIONS"
|
||||||
|
.PP
|
||||||
|
\-h
|
||||||
|
.RS 4
|
||||||
|
Print the usage summary and exit.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-t \fIdirectory\fR
|
||||||
|
.RS 4
|
||||||
|
Chroot to
|
||||||
|
\fIdirectory\fR
|
||||||
|
so that include directives in the configuration file are processed as if run by a similarly chrooted named.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-v
|
||||||
|
.RS 4
|
||||||
|
Print the version of the
|
||||||
|
\fBnamed\-checkconf\fR
|
||||||
|
program and exit.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-p
|
||||||
|
.RS 4
|
||||||
|
Print out the
|
||||||
|
\fInamed.conf\fR
|
||||||
|
and included files in canonical form if no errors were detected.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-x
|
||||||
|
.RS 4
|
||||||
|
When printing the configuration files in canonical form, obscure shared secrets by replacing them with strings of question marks ('?'). This allows the contents of
|
||||||
|
\fInamed.conf\fR
|
||||||
|
and related files to be shared \(em for example, when submitting bug reports \(em without compromising private data. This option cannot be used without
|
||||||
|
\fB\-p\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-z
|
||||||
|
.RS 4
|
||||||
|
Perform a test load of all master zones found in
|
||||||
|
\fInamed.conf\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-j
|
||||||
|
.RS 4
|
||||||
|
When loading a zonefile read the journal if it exists.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
filename
|
||||||
|
.RS 4
|
||||||
|
The name of the configuration file to be checked. If not specified, it defaults to
|
||||||
|
\fI/etc/named.conf\fR.
|
||||||
|
.RE
|
||||||
|
.SH "RETURN VALUES"
|
||||||
|
.PP
|
||||||
|
\fBnamed\-checkconf\fR
|
||||||
|
returns an exit status of 1 if errors were detected and 0 otherwise.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.PP
|
||||||
|
\fBnamed\fR(8),
|
||||||
|
\fBnamed\-checkzone\fR(8),
|
||||||
|
BIND 9 Administrator Reference Manual.
|
||||||
|
.SH "AUTHOR"
|
||||||
|
.PP
|
||||||
|
Internet Systems Consortium
|
||||||
|
.SH "COPYRIGHT"
|
||||||
|
Copyright \(co 2004, 2005, 2007, 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
.br
|
||||||
|
Copyright \(co 2000\-2002 Internet Software Consortium.
|
||||||
|
.br
|
||||||
653
external/bsd/bind/dist/bin/check/named-checkconf.c
vendored
Normal file
653
external/bsd/bind/dist/bin/check/named-checkconf.c
vendored
Normal file
|
|
@ -0,0 +1,653 @@
|
||||||
|
/* $NetBSD: named-checkconf.c,v 1.11 2015/07/08 17:28:54 christos Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004-2007, 2009-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 1999-2002 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Id: named-checkconf.c,v 1.56 2011/03/12 04:59:46 tbox Exp */
|
||||||
|
|
||||||
|
/*! \file */
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <isc/commandline.h>
|
||||||
|
#include <isc/dir.h>
|
||||||
|
#include <isc/entropy.h>
|
||||||
|
#include <isc/hash.h>
|
||||||
|
#include <isc/log.h>
|
||||||
|
#include <isc/mem.h>
|
||||||
|
#include <isc/result.h>
|
||||||
|
#include <isc/string.h>
|
||||||
|
#include <isc/util.h>
|
||||||
|
|
||||||
|
#include <isccfg/namedconf.h>
|
||||||
|
|
||||||
|
#include <bind9/check.h>
|
||||||
|
|
||||||
|
#include <dns/db.h>
|
||||||
|
#include <dns/fixedname.h>
|
||||||
|
#include <dns/log.h>
|
||||||
|
#include <dns/name.h>
|
||||||
|
#include <dns/rdataclass.h>
|
||||||
|
#include <dns/result.h>
|
||||||
|
#include <dns/rootns.h>
|
||||||
|
#include <dns/zone.h>
|
||||||
|
|
||||||
|
#include "check-tool.h"
|
||||||
|
|
||||||
|
static const char *program = "named-checkconf";
|
||||||
|
|
||||||
|
isc_log_t *logc = NULL;
|
||||||
|
|
||||||
|
#define CHECK(r)\
|
||||||
|
do { \
|
||||||
|
result = (r); \
|
||||||
|
if (result != ISC_R_SUCCESS) \
|
||||||
|
goto cleanup; \
|
||||||
|
} while (/*CONSTCOND*/0)
|
||||||
|
|
||||||
|
/*% usage */
|
||||||
|
ISC_PLATFORM_NORETURN_PRE static void
|
||||||
|
usage(void) ISC_PLATFORM_NORETURN_POST;
|
||||||
|
|
||||||
|
static void
|
||||||
|
usage(void) {
|
||||||
|
fprintf(stderr, "usage: %s [-h] [-j] [-p] [-v] [-z] [-t directory] "
|
||||||
|
"[named.conf]\n", program);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*% directory callback */
|
||||||
|
static isc_result_t
|
||||||
|
directory_callback(const char *clausename, const cfg_obj_t *obj, void *arg) {
|
||||||
|
isc_result_t result;
|
||||||
|
const char *directory;
|
||||||
|
|
||||||
|
REQUIRE(strcasecmp("directory", clausename) == 0);
|
||||||
|
|
||||||
|
UNUSED(arg);
|
||||||
|
UNUSED(clausename);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Change directory.
|
||||||
|
*/
|
||||||
|
directory = cfg_obj_asstring(obj);
|
||||||
|
result = isc_dir_chdir(directory);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
cfg_obj_log(obj, logc, ISC_LOG_ERROR,
|
||||||
|
"change directory to '%s' failed: %s\n",
|
||||||
|
directory, isc_result_totext(result));
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (ISC_R_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
static isc_boolean_t
|
||||||
|
get_maps(const cfg_obj_t **maps, const char *name, const cfg_obj_t **obj) {
|
||||||
|
int i;
|
||||||
|
for (i = 0;; i++) {
|
||||||
|
if (maps[i] == NULL)
|
||||||
|
return (ISC_FALSE);
|
||||||
|
if (cfg_map_get(maps[i], name, obj) == ISC_R_SUCCESS)
|
||||||
|
return (ISC_TRUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static isc_boolean_t
|
||||||
|
get_checknames(const cfg_obj_t **maps, const cfg_obj_t **obj) {
|
||||||
|
const cfg_listelt_t *element;
|
||||||
|
const cfg_obj_t *checknames;
|
||||||
|
const cfg_obj_t *type;
|
||||||
|
const cfg_obj_t *value;
|
||||||
|
isc_result_t result;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0;; i++) {
|
||||||
|
if (maps[i] == NULL)
|
||||||
|
return (ISC_FALSE);
|
||||||
|
checknames = NULL;
|
||||||
|
result = cfg_map_get(maps[i], "check-names", &checknames);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
continue;
|
||||||
|
if (checknames != NULL && !cfg_obj_islist(checknames)) {
|
||||||
|
*obj = checknames;
|
||||||
|
return (ISC_TRUE);
|
||||||
|
}
|
||||||
|
for (element = cfg_list_first(checknames);
|
||||||
|
element != NULL;
|
||||||
|
element = cfg_list_next(element)) {
|
||||||
|
value = cfg_listelt_value(element);
|
||||||
|
type = cfg_tuple_get(value, "type");
|
||||||
|
if (strcasecmp(cfg_obj_asstring(type), "master") != 0)
|
||||||
|
continue;
|
||||||
|
*obj = cfg_tuple_get(value, "mode");
|
||||||
|
return (ISC_TRUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static isc_result_t
|
||||||
|
configure_hint(const char *zfile, const char *zclass, isc_mem_t *mctx) {
|
||||||
|
isc_result_t result;
|
||||||
|
dns_db_t *db = NULL;
|
||||||
|
dns_rdataclass_t rdclass;
|
||||||
|
isc_textregion_t r;
|
||||||
|
|
||||||
|
if (zfile == NULL)
|
||||||
|
return (ISC_R_FAILURE);
|
||||||
|
|
||||||
|
DE_CONST(zclass, r.base);
|
||||||
|
r.length = strlen(zclass);
|
||||||
|
result = dns_rdataclass_fromtext(&rdclass, &r);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
return (result);
|
||||||
|
|
||||||
|
result = dns_rootns_create(mctx, rdclass, zfile, &db);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
return (result);
|
||||||
|
|
||||||
|
dns_db_detach(&db);
|
||||||
|
return (ISC_R_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*% configure the zone */
|
||||||
|
static isc_result_t
|
||||||
|
configure_zone(const char *vclass, const char *view,
|
||||||
|
const cfg_obj_t *zconfig, const cfg_obj_t *vconfig,
|
||||||
|
const cfg_obj_t *config, isc_mem_t *mctx)
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
isc_result_t result;
|
||||||
|
const char *zclass;
|
||||||
|
const char *zname;
|
||||||
|
const char *zfile = NULL;
|
||||||
|
const cfg_obj_t *maps[4];
|
||||||
|
const cfg_obj_t *mastersobj = NULL;
|
||||||
|
const cfg_obj_t *zoptions = NULL;
|
||||||
|
const cfg_obj_t *classobj = NULL;
|
||||||
|
const cfg_obj_t *typeobj = NULL;
|
||||||
|
const cfg_obj_t *fileobj = NULL;
|
||||||
|
const cfg_obj_t *dlzobj = NULL;
|
||||||
|
const cfg_obj_t *dbobj = NULL;
|
||||||
|
const cfg_obj_t *obj = NULL;
|
||||||
|
const cfg_obj_t *fmtobj = NULL;
|
||||||
|
dns_masterformat_t masterformat;
|
||||||
|
dns_ttl_t maxttl = 0;
|
||||||
|
|
||||||
|
zone_options = DNS_ZONEOPT_CHECKNS | DNS_ZONEOPT_MANYERRORS;
|
||||||
|
|
||||||
|
zname = cfg_obj_asstring(cfg_tuple_get(zconfig, "name"));
|
||||||
|
classobj = cfg_tuple_get(zconfig, "class");
|
||||||
|
if (!cfg_obj_isstring(classobj))
|
||||||
|
zclass = vclass;
|
||||||
|
else
|
||||||
|
zclass = cfg_obj_asstring(classobj);
|
||||||
|
|
||||||
|
zoptions = cfg_tuple_get(zconfig, "options");
|
||||||
|
maps[i++] = zoptions;
|
||||||
|
if (vconfig != NULL)
|
||||||
|
maps[i++] = cfg_tuple_get(vconfig, "options");
|
||||||
|
if (config != NULL) {
|
||||||
|
cfg_map_get(config, "options", &obj);
|
||||||
|
if (obj != NULL)
|
||||||
|
maps[i++] = obj;
|
||||||
|
}
|
||||||
|
maps[i] = NULL;
|
||||||
|
|
||||||
|
cfg_map_get(zoptions, "type", &typeobj);
|
||||||
|
if (typeobj == NULL)
|
||||||
|
return (ISC_R_FAILURE);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Skip checks when using an alternate data source.
|
||||||
|
*/
|
||||||
|
cfg_map_get(zoptions, "database", &dbobj);
|
||||||
|
if (dbobj != NULL &&
|
||||||
|
strcmp("rbt", cfg_obj_asstring(dbobj)) != 0 &&
|
||||||
|
strcmp("rbt64", cfg_obj_asstring(dbobj)) != 0)
|
||||||
|
return (ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
cfg_map_get(zoptions, "dlz", &dlzobj);
|
||||||
|
if (dlzobj != NULL)
|
||||||
|
return (ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
cfg_map_get(zoptions, "file", &fileobj);
|
||||||
|
if (fileobj != NULL)
|
||||||
|
zfile = cfg_obj_asstring(fileobj);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Check hints files for hint zones.
|
||||||
|
* Skip loading checks for any type other than
|
||||||
|
* master and redirect
|
||||||
|
*/
|
||||||
|
if (strcasecmp(cfg_obj_asstring(typeobj), "hint") == 0)
|
||||||
|
return (configure_hint(zfile, zclass, mctx));
|
||||||
|
else if ((strcasecmp(cfg_obj_asstring(typeobj), "master") != 0) &&
|
||||||
|
(strcasecmp(cfg_obj_asstring(typeobj), "redirect") != 0))
|
||||||
|
return (ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Is the redirect zone configured as a slave?
|
||||||
|
*/
|
||||||
|
if (strcasecmp(cfg_obj_asstring(typeobj), "redirect") == 0) {
|
||||||
|
cfg_map_get(zoptions, "masters", &mastersobj);
|
||||||
|
if (mastersobj != NULL)
|
||||||
|
return (ISC_R_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (zfile == NULL)
|
||||||
|
return (ISC_R_FAILURE);
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_maps(maps, "check-dup-records", &obj)) {
|
||||||
|
if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKDUPRR;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKDUPRRFAIL;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKDUPRR;
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKDUPRRFAIL;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKDUPRR;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKDUPRRFAIL;
|
||||||
|
} else
|
||||||
|
INSIST(0);
|
||||||
|
} else {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKDUPRR;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKDUPRRFAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_maps(maps, "check-mx", &obj)) {
|
||||||
|
if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKMX;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKMXFAIL;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKMX;
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKMXFAIL;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKMX;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKMXFAIL;
|
||||||
|
} else
|
||||||
|
INSIST(0);
|
||||||
|
} else {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKMX;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKMXFAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_maps(maps, "check-integrity", &obj)) {
|
||||||
|
if (cfg_obj_asboolean(obj))
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKINTEGRITY;
|
||||||
|
else
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKINTEGRITY;
|
||||||
|
} else
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKINTEGRITY;
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_maps(maps, "check-mx-cname", &obj)) {
|
||||||
|
if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNMXCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNOREMXCNAME;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_WARNMXCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNOREMXCNAME;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNMXCNAME;
|
||||||
|
zone_options |= DNS_ZONEOPT_IGNOREMXCNAME;
|
||||||
|
} else
|
||||||
|
INSIST(0);
|
||||||
|
} else {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNMXCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNOREMXCNAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_maps(maps, "check-srv-cname", &obj)) {
|
||||||
|
if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNSRVCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNORESRVCNAME;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_WARNSRVCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNORESRVCNAME;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNSRVCNAME;
|
||||||
|
zone_options |= DNS_ZONEOPT_IGNORESRVCNAME;
|
||||||
|
} else
|
||||||
|
INSIST(0);
|
||||||
|
} else {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNSRVCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNORESRVCNAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_maps(maps, "check-sibling", &obj)) {
|
||||||
|
if (cfg_obj_asboolean(obj))
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKSIBLING;
|
||||||
|
else
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKSIBLING;
|
||||||
|
}
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_maps(maps, "check-spf", &obj)) {
|
||||||
|
if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKSPF;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKSPF;
|
||||||
|
} else
|
||||||
|
INSIST(0);
|
||||||
|
} else {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKSPF;
|
||||||
|
}
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_checknames(maps, &obj)) {
|
||||||
|
if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNAMES;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKNAMESFAIL;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNAMES;
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNAMESFAIL;
|
||||||
|
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKNAMES;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKNAMESFAIL;
|
||||||
|
} else
|
||||||
|
INSIST(0);
|
||||||
|
} else {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNAMES;
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNAMESFAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
masterformat = dns_masterformat_text;
|
||||||
|
fmtobj = NULL;
|
||||||
|
if (get_maps(maps, "masterfile-format", &fmtobj)) {
|
||||||
|
const char *masterformatstr = cfg_obj_asstring(fmtobj);
|
||||||
|
if (strcasecmp(masterformatstr, "text") == 0)
|
||||||
|
masterformat = dns_masterformat_text;
|
||||||
|
else if (strcasecmp(masterformatstr, "raw") == 0)
|
||||||
|
masterformat = dns_masterformat_raw;
|
||||||
|
else if (strcasecmp(masterformatstr, "map") == 0)
|
||||||
|
masterformat = dns_masterformat_map;
|
||||||
|
else
|
||||||
|
INSIST(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (get_maps(maps, "max-zone-ttl", &obj)) {
|
||||||
|
maxttl = cfg_obj_asuint32(obj);
|
||||||
|
zone_options2 |= DNS_ZONEOPT2_CHECKTTL;
|
||||||
|
}
|
||||||
|
|
||||||
|
result = load_zone(mctx, zname, zfile, masterformat,
|
||||||
|
zclass, maxttl, NULL);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
fprintf(stderr, "%s/%s/%s: %s\n", view, zname, zclass,
|
||||||
|
dns_result_totext(result));
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*% configure a view */
|
||||||
|
static isc_result_t
|
||||||
|
configure_view(const char *vclass, const char *view, const cfg_obj_t *config,
|
||||||
|
const cfg_obj_t *vconfig, isc_mem_t *mctx)
|
||||||
|
{
|
||||||
|
const cfg_listelt_t *element;
|
||||||
|
const cfg_obj_t *voptions;
|
||||||
|
const cfg_obj_t *zonelist;
|
||||||
|
isc_result_t result = ISC_R_SUCCESS;
|
||||||
|
isc_result_t tresult;
|
||||||
|
|
||||||
|
voptions = NULL;
|
||||||
|
if (vconfig != NULL)
|
||||||
|
voptions = cfg_tuple_get(vconfig, "options");
|
||||||
|
|
||||||
|
zonelist = NULL;
|
||||||
|
if (voptions != NULL)
|
||||||
|
(void)cfg_map_get(voptions, "zone", &zonelist);
|
||||||
|
else
|
||||||
|
(void)cfg_map_get(config, "zone", &zonelist);
|
||||||
|
|
||||||
|
for (element = cfg_list_first(zonelist);
|
||||||
|
element != NULL;
|
||||||
|
element = cfg_list_next(element))
|
||||||
|
{
|
||||||
|
const cfg_obj_t *zconfig = cfg_listelt_value(element);
|
||||||
|
tresult = configure_zone(vclass, view, zconfig, vconfig,
|
||||||
|
config, mctx);
|
||||||
|
if (tresult != ISC_R_SUCCESS)
|
||||||
|
result = tresult;
|
||||||
|
}
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*% load zones from the configuration */
|
||||||
|
static isc_result_t
|
||||||
|
load_zones_fromconfig(const cfg_obj_t *config, isc_mem_t *mctx) {
|
||||||
|
const cfg_listelt_t *element;
|
||||||
|
const cfg_obj_t *classobj;
|
||||||
|
const cfg_obj_t *views;
|
||||||
|
const cfg_obj_t *vconfig;
|
||||||
|
const char *vclass;
|
||||||
|
isc_result_t result = ISC_R_SUCCESS;
|
||||||
|
isc_result_t tresult;
|
||||||
|
|
||||||
|
views = NULL;
|
||||||
|
|
||||||
|
(void)cfg_map_get(config, "view", &views);
|
||||||
|
for (element = cfg_list_first(views);
|
||||||
|
element != NULL;
|
||||||
|
element = cfg_list_next(element))
|
||||||
|
{
|
||||||
|
const char *vname;
|
||||||
|
|
||||||
|
vclass = "IN";
|
||||||
|
vconfig = cfg_listelt_value(element);
|
||||||
|
if (vconfig != NULL) {
|
||||||
|
classobj = cfg_tuple_get(vconfig, "class");
|
||||||
|
if (cfg_obj_isstring(classobj))
|
||||||
|
vclass = cfg_obj_asstring(classobj);
|
||||||
|
}
|
||||||
|
vname = cfg_obj_asstring(cfg_tuple_get(vconfig, "name"));
|
||||||
|
tresult = configure_view(vclass, vname, config, vconfig, mctx);
|
||||||
|
if (tresult != ISC_R_SUCCESS)
|
||||||
|
result = tresult;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (views == NULL) {
|
||||||
|
tresult = configure_view("IN", "_default", config, NULL, mctx);
|
||||||
|
if (tresult != ISC_R_SUCCESS)
|
||||||
|
result = tresult;
|
||||||
|
}
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
output(void *closure, const char *text, int textlen) {
|
||||||
|
UNUSED(closure);
|
||||||
|
if (fwrite(text, 1, textlen, stdout) != (size_t)textlen) {
|
||||||
|
perror("fwrite");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*% The main processing routine */
|
||||||
|
int
|
||||||
|
main(int argc, char **argv) {
|
||||||
|
int c;
|
||||||
|
cfg_parser_t *parser = NULL;
|
||||||
|
cfg_obj_t *config = NULL;
|
||||||
|
const char *conffile = NULL;
|
||||||
|
isc_mem_t *mctx = NULL;
|
||||||
|
isc_result_t result;
|
||||||
|
int exit_status = 0;
|
||||||
|
isc_entropy_t *ectx = NULL;
|
||||||
|
isc_boolean_t load_zones = ISC_FALSE;
|
||||||
|
isc_boolean_t print = ISC_FALSE;
|
||||||
|
unsigned int flags = 0;
|
||||||
|
|
||||||
|
isc__mem_register();
|
||||||
|
isc_commandline_errprint = ISC_FALSE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Process memory debugging argument first.
|
||||||
|
*/
|
||||||
|
#define CMDLINE_FLAGS "dhjm:t:pvxz"
|
||||||
|
while ((c = isc_commandline_parse(argc, argv, CMDLINE_FLAGS)) != -1) {
|
||||||
|
switch (c) {
|
||||||
|
case 'm':
|
||||||
|
if (strcasecmp(isc_commandline_argument, "record") == 0)
|
||||||
|
isc_mem_debugging |= ISC_MEM_DEBUGRECORD;
|
||||||
|
if (strcasecmp(isc_commandline_argument, "trace") == 0)
|
||||||
|
isc_mem_debugging |= ISC_MEM_DEBUGTRACE;
|
||||||
|
if (strcasecmp(isc_commandline_argument, "usage") == 0)
|
||||||
|
isc_mem_debugging |= ISC_MEM_DEBUGUSAGE;
|
||||||
|
if (strcasecmp(isc_commandline_argument, "size") == 0)
|
||||||
|
isc_mem_debugging |= ISC_MEM_DEBUGSIZE;
|
||||||
|
if (strcasecmp(isc_commandline_argument, "mctx") == 0)
|
||||||
|
isc_mem_debugging |= ISC_MEM_DEBUGCTX;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
isc_commandline_reset = ISC_TRUE;
|
||||||
|
|
||||||
|
RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
while ((c = isc_commandline_parse(argc, argv, CMDLINE_FLAGS)) != EOF) {
|
||||||
|
switch (c) {
|
||||||
|
case 'd':
|
||||||
|
debug++;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'j':
|
||||||
|
nomerge = ISC_FALSE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'm':
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 't':
|
||||||
|
result = isc_dir_chroot(isc_commandline_argument);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
fprintf(stderr, "isc_dir_chroot: %s\n",
|
||||||
|
isc_result_totext(result));
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'p':
|
||||||
|
print = ISC_TRUE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'v':
|
||||||
|
printf(VERSION "\n");
|
||||||
|
exit(0);
|
||||||
|
|
||||||
|
case 'x':
|
||||||
|
flags |= CFG_PRINTER_XKEY;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'z':
|
||||||
|
load_zones = ISC_TRUE;
|
||||||
|
docheckmx = ISC_FALSE;
|
||||||
|
docheckns = ISC_FALSE;
|
||||||
|
dochecksrv = ISC_FALSE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '?':
|
||||||
|
if (isc_commandline_option != '?')
|
||||||
|
fprintf(stderr, "%s: invalid argument -%c\n",
|
||||||
|
program, isc_commandline_option);
|
||||||
|
/* FALLTHROUGH */
|
||||||
|
case 'h':
|
||||||
|
usage();
|
||||||
|
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "%s: unhandled option -%c\n",
|
||||||
|
program, isc_commandline_option);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (((flags & CFG_PRINTER_XKEY) != 0) && !print) {
|
||||||
|
fprintf(stderr, "%s: -x cannot be used without -p\n", program);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isc_commandline_index + 1 < argc)
|
||||||
|
usage();
|
||||||
|
if (argv[isc_commandline_index] != NULL)
|
||||||
|
conffile = argv[isc_commandline_index];
|
||||||
|
if (conffile == NULL || conffile[0] == '\0')
|
||||||
|
conffile = NAMED_CONFFILE;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
InitSockets();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
RUNTIME_CHECK(setup_logging(mctx, stdout, &logc) == ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
RUNTIME_CHECK(isc_entropy_create(mctx, &ectx) == ISC_R_SUCCESS);
|
||||||
|
RUNTIME_CHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE)
|
||||||
|
== ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
dns_result_register();
|
||||||
|
|
||||||
|
RUNTIME_CHECK(cfg_parser_create(mctx, logc, &parser) == ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
cfg_parser_setcallback(parser, directory_callback, NULL);
|
||||||
|
|
||||||
|
if (cfg_parse_file(parser, conffile, &cfg_type_namedconf, &config) !=
|
||||||
|
ISC_R_SUCCESS)
|
||||||
|
exit(1);
|
||||||
|
|
||||||
|
result = bind9_check_namedconf(config, logc, mctx);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
exit_status = 1;
|
||||||
|
|
||||||
|
if (result == ISC_R_SUCCESS && load_zones) {
|
||||||
|
result = load_zones_fromconfig(config, mctx);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
exit_status = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (print && exit_status == 0)
|
||||||
|
cfg_printx(config, flags, output, NULL);
|
||||||
|
cfg_obj_destroy(parser, &config);
|
||||||
|
|
||||||
|
cfg_parser_destroy(&parser);
|
||||||
|
|
||||||
|
dns_name_destroy();
|
||||||
|
|
||||||
|
isc_log_destroy(&logc);
|
||||||
|
|
||||||
|
isc_hash_destroy();
|
||||||
|
isc_entropy_detach(&ectx);
|
||||||
|
|
||||||
|
isc_mem_destroy(&mctx);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
DestroySockets();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return (exit_status);
|
||||||
|
}
|
||||||
211
external/bsd/bind/dist/bin/check/named-checkconf.docbook
vendored
Normal file
211
external/bsd/bind/dist/bin/check/named-checkconf.docbook
vendored
Normal file
|
|
@ -0,0 +1,211 @@
|
||||||
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
|
||||||
|
[<!ENTITY mdash "—">]>
|
||||||
|
<!--
|
||||||
|
- Copyright (C) 2004, 2005, 2007, 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
- Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
|
-
|
||||||
|
- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
- purpose with or without fee is hereby granted, provided that the above
|
||||||
|
- copyright notice and this permission notice appear in all copies.
|
||||||
|
-
|
||||||
|
- THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
- AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
- PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<refentry id="man.named-checkconf">
|
||||||
|
<refentryinfo>
|
||||||
|
<date>January 10, 2014</date>
|
||||||
|
</refentryinfo>
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle><application>named-checkconf</application></refentrytitle>
|
||||||
|
<manvolnum>8</manvolnum>
|
||||||
|
<refmiscinfo>BIND9</refmiscinfo>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<docinfo>
|
||||||
|
<copyright>
|
||||||
|
<year>2004</year>
|
||||||
|
<year>2005</year>
|
||||||
|
<year>2007</year>
|
||||||
|
<year>2009</year>
|
||||||
|
<year>2014</year>
|
||||||
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
|
</copyright>
|
||||||
|
<copyright>
|
||||||
|
<year>2000</year>
|
||||||
|
<year>2001</year>
|
||||||
|
<year>2002</year>
|
||||||
|
<holder>Internet Software Consortium.</holder>
|
||||||
|
</copyright>
|
||||||
|
</docinfo>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname><application>named-checkconf</application></refname>
|
||||||
|
<refpurpose>named configuration file syntax checking tool</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>named-checkconf</command>
|
||||||
|
<arg><option>-h</option></arg>
|
||||||
|
<arg><option>-v</option></arg>
|
||||||
|
<arg><option>-j</option></arg>
|
||||||
|
<arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
|
||||||
|
<arg choice="req">filename</arg>
|
||||||
|
<arg><option>-p</option></arg>
|
||||||
|
<arg><option>-x</option></arg>
|
||||||
|
<arg><option>-z</option></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>DESCRIPTION</title>
|
||||||
|
<para><command>named-checkconf</command>
|
||||||
|
checks the syntax, but not the semantics, of a
|
||||||
|
<command>named</command> configuration file. The file is parsed
|
||||||
|
and checked for syntax errors, along with all files included by it.
|
||||||
|
If no file is specified, <filename>/etc/named.conf</filename> is read
|
||||||
|
by default.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Note: files that <command>named</command> reads in separate
|
||||||
|
parser contexts, such as <filename>rndc.key</filename> and
|
||||||
|
<filename>bind.keys</filename>, are not automatically read
|
||||||
|
by <command>named-checkconf</command>. Configuration
|
||||||
|
errors in these files may cause <command>named</command> to
|
||||||
|
fail to run, even if <command>named-checkconf</command> was
|
||||||
|
successful. <command>named-checkconf</command> can be run
|
||||||
|
on these files explicitly, however.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>OPTIONS</title>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>-h</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Print the usage summary and exit.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-t <replaceable class="parameter">directory</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Chroot to <filename>directory</filename> so that include
|
||||||
|
directives in the configuration file are processed as if
|
||||||
|
run by a similarly chrooted named.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-v</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Print the version of the <command>named-checkconf</command>
|
||||||
|
program and exit.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-p</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Print out the <filename>named.conf</filename> and included files
|
||||||
|
in canonical form if no errors were detected.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-x</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
When printing the configuration files in canonical
|
||||||
|
form, obscure shared secrets by replacing them with
|
||||||
|
strings of question marks ('?'). This allows the
|
||||||
|
contents of <filename>named.conf</filename> and related
|
||||||
|
files to be shared — for example, when submitting
|
||||||
|
bug reports — without compromising private data.
|
||||||
|
This option cannot be used without <option>-p</option>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-z</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Perform a test load of all master zones found in
|
||||||
|
<filename>named.conf</filename>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-j</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
When loading a zonefile read the journal if it exists.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>filename</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The name of the configuration file to be checked. If not
|
||||||
|
specified, it defaults to <filename>/etc/named.conf</filename>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>RETURN VALUES</title>
|
||||||
|
<para><command>named-checkconf</command>
|
||||||
|
returns an exit status of 1 if
|
||||||
|
errors were detected and 0 otherwise.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>SEE ALSO</title>
|
||||||
|
<para><citerefentry>
|
||||||
|
<refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
|
||||||
|
</citerefentry>,
|
||||||
|
<citerefentry>
|
||||||
|
<refentrytitle>named-checkzone</refentrytitle><manvolnum>8</manvolnum>
|
||||||
|
</citerefentry>,
|
||||||
|
<citetitle>BIND 9 Administrator Reference Manual</citetitle>.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>AUTHOR</title>
|
||||||
|
<para><corpauthor>Internet Systems Consortium</corpauthor>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry><!--
|
||||||
|
- Local variables:
|
||||||
|
- mode: sgml
|
||||||
|
- End:
|
||||||
|
-->
|
||||||
123
external/bsd/bind/dist/bin/check/named-checkconf.html
vendored
Normal file
123
external/bsd/bind/dist/bin/check/named-checkconf.html
vendored
Normal file
|
|
@ -0,0 +1,123 @@
|
||||||
|
<!--
|
||||||
|
- Copyright (C) 2004, 2005, 2007, 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
- Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
|
-
|
||||||
|
- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
- purpose with or without fee is hereby granted, provided that the above
|
||||||
|
- copyright notice and this permission notice appear in all copies.
|
||||||
|
-
|
||||||
|
- THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
- AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
- PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
-->
|
||||||
|
<!-- Id -->
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>named-checkconf</title>
|
||||||
|
<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
|
||||||
|
<a name="man.named-checkconf"></a><div class="titlepage"></div>
|
||||||
|
<div class="refnamediv">
|
||||||
|
<h2>Name</h2>
|
||||||
|
<p><span class="application">named-checkconf</span> — named configuration file syntax checking tool</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsynopsisdiv">
|
||||||
|
<h2>Synopsis</h2>
|
||||||
|
<div class="cmdsynopsis"><p><code class="command">named-checkconf</code> [<code class="option">-h</code>] [<code class="option">-v</code>] [<code class="option">-j</code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] {filename} [<code class="option">-p</code>] [<code class="option">-x</code>] [<code class="option">-z</code>]</p></div>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543411"></a><h2>DESCRIPTION</h2>
|
||||||
|
<p><span><strong class="command">named-checkconf</strong></span>
|
||||||
|
checks the syntax, but not the semantics, of a
|
||||||
|
<span><strong class="command">named</strong></span> configuration file. The file is parsed
|
||||||
|
and checked for syntax errors, along with all files included by it.
|
||||||
|
If no file is specified, <code class="filename">/etc/named.conf</code> is read
|
||||||
|
by default.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Note: files that <span><strong class="command">named</strong></span> reads in separate
|
||||||
|
parser contexts, such as <code class="filename">rndc.key</code> and
|
||||||
|
<code class="filename">bind.keys</code>, are not automatically read
|
||||||
|
by <span><strong class="command">named-checkconf</strong></span>. Configuration
|
||||||
|
errors in these files may cause <span><strong class="command">named</strong></span> to
|
||||||
|
fail to run, even if <span><strong class="command">named-checkconf</strong></span> was
|
||||||
|
successful. <span><strong class="command">named-checkconf</strong></span> can be run
|
||||||
|
on these files explicitly, however.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543460"></a><h2>OPTIONS</h2>
|
||||||
|
<div class="variablelist"><dl>
|
||||||
|
<dt><span class="term">-h</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Print the usage summary and exit.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Chroot to <code class="filename">directory</code> so that include
|
||||||
|
directives in the configuration file are processed as if
|
||||||
|
run by a similarly chrooted named.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-v</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Print the version of the <span><strong class="command">named-checkconf</strong></span>
|
||||||
|
program and exit.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-p</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Print out the <code class="filename">named.conf</code> and included files
|
||||||
|
in canonical form if no errors were detected.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-x</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
When printing the configuration files in canonical
|
||||||
|
form, obscure shared secrets by replacing them with
|
||||||
|
strings of question marks ('?'). This allows the
|
||||||
|
contents of <code class="filename">named.conf</code> and related
|
||||||
|
files to be shared — for example, when submitting
|
||||||
|
bug reports — without compromising private data.
|
||||||
|
This option cannot be used without <code class="option">-p</code>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-z</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Perform a test load of all master zones found in
|
||||||
|
<code class="filename">named.conf</code>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-j</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
When loading a zonefile read the journal if it exists.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">filename</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
The name of the configuration file to be checked. If not
|
||||||
|
specified, it defaults to <code class="filename">/etc/named.conf</code>.
|
||||||
|
</p></dd>
|
||||||
|
</dl></div>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543604"></a><h2>RETURN VALUES</h2>
|
||||||
|
<p><span><strong class="command">named-checkconf</strong></span>
|
||||||
|
returns an exit status of 1 if
|
||||||
|
errors were detected and 0 otherwise.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543616"></a><h2>SEE ALSO</h2>
|
||||||
|
<p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
|
||||||
|
<span class="citerefentry"><span class="refentrytitle">named-checkzone</span>(8)</span>,
|
||||||
|
<em class="citetitle">BIND 9 Administrator Reference Manual</em>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543645"></a><h2>AUTHOR</h2>
|
||||||
|
<p><span class="corpauthor">Internet Systems Consortium</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div></body>
|
||||||
|
</html>
|
||||||
325
external/bsd/bind/dist/bin/check/named-checkzone.8
vendored
Normal file
325
external/bsd/bind/dist/bin/check/named-checkzone.8
vendored
Normal file
|
|
@ -0,0 +1,325 @@
|
||||||
|
.\" $NetBSD: named-checkzone.8,v 1.7 2014/12/10 04:37:51 christos Exp $
|
||||||
|
.\"
|
||||||
|
.\" Copyright (C) 2004-2007, 2009-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
.\" Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
|
.\"
|
||||||
|
.\" Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
.\" purpose with or without fee is hereby granted, provided that the above
|
||||||
|
.\" copyright notice and this permission notice appear in all copies.
|
||||||
|
.\"
|
||||||
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
.\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
.\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
.\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
.\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
.\" PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
.\"
|
||||||
|
.\" Id
|
||||||
|
.\"
|
||||||
|
.hy 0
|
||||||
|
.ad l
|
||||||
|
.\" Title: named\-checkzone
|
||||||
|
.\" Author:
|
||||||
|
.\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
|
||||||
|
.\" Date: February 19, 2014
|
||||||
|
.\" Manual: BIND9
|
||||||
|
.\" Source: BIND9
|
||||||
|
.\"
|
||||||
|
.TH "NAMED\-CHECKZONE" "8" "February 19, 2014" "BIND9" "BIND9"
|
||||||
|
.\" disable hyphenation
|
||||||
|
.nh
|
||||||
|
.\" disable justification (adjust text to left margin only)
|
||||||
|
.ad l
|
||||||
|
.SH "NAME"
|
||||||
|
named\-checkzone, named\-compilezone \- zone file validity checking or converting tool
|
||||||
|
.SH "SYNOPSIS"
|
||||||
|
.HP 16
|
||||||
|
\fBnamed\-checkzone\fR [\fB\-d\fR] [\fB\-h\fR] [\fB\-j\fR] [\fB\-q\fR] [\fB\-v\fR] [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-f\ \fR\fB\fIformat\fR\fR] [\fB\-F\ \fR\fB\fIformat\fR\fR] [\fB\-J\ \fR\fB\fIfilename\fR\fR] [\fB\-i\ \fR\fB\fImode\fR\fR] [\fB\-k\ \fR\fB\fImode\fR\fR] [\fB\-m\ \fR\fB\fImode\fR\fR] [\fB\-M\ \fR\fB\fImode\fR\fR] [\fB\-n\ \fR\fB\fImode\fR\fR] [\fB\-l\ \fR\fB\fIttl\fR\fR] [\fB\-L\ \fR\fB\fIserial\fR\fR] [\fB\-o\ \fR\fB\fIfilename\fR\fR] [\fB\-r\ \fR\fB\fImode\fR\fR] [\fB\-s\ \fR\fB\fIstyle\fR\fR] [\fB\-S\ \fR\fB\fImode\fR\fR] [\fB\-t\ \fR\fB\fIdirectory\fR\fR] [\fB\-T\ \fR\fB\fImode\fR\fR] [\fB\-w\ \fR\fB\fIdirectory\fR\fR] [\fB\-D\fR] [\fB\-W\ \fR\fB\fImode\fR\fR] {zonename} {filename}
|
||||||
|
.HP 18
|
||||||
|
\fBnamed\-compilezone\fR [\fB\-d\fR] [\fB\-j\fR] [\fB\-q\fR] [\fB\-v\fR] [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-C\ \fR\fB\fImode\fR\fR] [\fB\-f\ \fR\fB\fIformat\fR\fR] [\fB\-F\ \fR\fB\fIformat\fR\fR] [\fB\-J\ \fR\fB\fIfilename\fR\fR] [\fB\-i\ \fR\fB\fImode\fR\fR] [\fB\-k\ \fR\fB\fImode\fR\fR] [\fB\-m\ \fR\fB\fImode\fR\fR] [\fB\-n\ \fR\fB\fImode\fR\fR] [\fB\-l\ \fR\fB\fIttl\fR\fR] [\fB\-L\ \fR\fB\fIserial\fR\fR] [\fB\-r\ \fR\fB\fImode\fR\fR] [\fB\-s\ \fR\fB\fIstyle\fR\fR] [\fB\-t\ \fR\fB\fIdirectory\fR\fR] [\fB\-T\ \fR\fB\fImode\fR\fR] [\fB\-w\ \fR\fB\fIdirectory\fR\fR] [\fB\-D\fR] [\fB\-W\ \fR\fB\fImode\fR\fR] {\fB\-o\ \fR\fB\fIfilename\fR\fR} {zonename} {filename}
|
||||||
|
.SH "DESCRIPTION"
|
||||||
|
.PP
|
||||||
|
\fBnamed\-checkzone\fR
|
||||||
|
checks the syntax and integrity of a zone file. It performs the same checks as
|
||||||
|
\fBnamed\fR
|
||||||
|
does when loading a zone. This makes
|
||||||
|
\fBnamed\-checkzone\fR
|
||||||
|
useful for checking zone files before configuring them into a name server.
|
||||||
|
.PP
|
||||||
|
\fBnamed\-compilezone\fR
|
||||||
|
is similar to
|
||||||
|
\fBnamed\-checkzone\fR, but it always dumps the zone contents to a specified file in a specified format. Additionally, it applies stricter check levels by default, since the dump output will be used as an actual zone file loaded by
|
||||||
|
\fBnamed\fR. When manually specified otherwise, the check levels must at least be as strict as those specified in the
|
||||||
|
\fBnamed\fR
|
||||||
|
configuration file.
|
||||||
|
.SH "OPTIONS"
|
||||||
|
.PP
|
||||||
|
\-d
|
||||||
|
.RS 4
|
||||||
|
Enable debugging.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-h
|
||||||
|
.RS 4
|
||||||
|
Print the usage summary and exit.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-q
|
||||||
|
.RS 4
|
||||||
|
Quiet mode \- exit code only.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-v
|
||||||
|
.RS 4
|
||||||
|
Print the version of the
|
||||||
|
\fBnamed\-checkzone\fR
|
||||||
|
program and exit.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-j
|
||||||
|
.RS 4
|
||||||
|
When loading a zone file, read the journal if it exists. The journal file name is assumed to be the zone file name appended with the string
|
||||||
|
\fI.jnl\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-J \fIfilename\fR
|
||||||
|
.RS 4
|
||||||
|
When loading the zone file read the journal from the given file, if it exists. (Implies \-j.)
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-c \fIclass\fR
|
||||||
|
.RS 4
|
||||||
|
Specify the class of the zone. If not specified, "IN" is assumed.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-i \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Perform post\-load zone integrity checks. Possible modes are
|
||||||
|
\fB"full"\fR
|
||||||
|
(default),
|
||||||
|
\fB"full\-sibling"\fR,
|
||||||
|
\fB"local"\fR,
|
||||||
|
\fB"local\-sibling"\fR
|
||||||
|
and
|
||||||
|
\fB"none"\fR.
|
||||||
|
.sp
|
||||||
|
Mode
|
||||||
|
\fB"full"\fR
|
||||||
|
checks that MX records refer to A or AAAA record (both in\-zone and out\-of\-zone hostnames). Mode
|
||||||
|
\fB"local"\fR
|
||||||
|
only checks MX records which refer to in\-zone hostnames.
|
||||||
|
.sp
|
||||||
|
Mode
|
||||||
|
\fB"full"\fR
|
||||||
|
checks that SRV records refer to A or AAAA record (both in\-zone and out\-of\-zone hostnames). Mode
|
||||||
|
\fB"local"\fR
|
||||||
|
only checks SRV records which refer to in\-zone hostnames.
|
||||||
|
.sp
|
||||||
|
Mode
|
||||||
|
\fB"full"\fR
|
||||||
|
checks that delegation NS records refer to A or AAAA record (both in\-zone and out\-of\-zone hostnames). It also checks that glue address records in the zone match those advertised by the child. Mode
|
||||||
|
\fB"local"\fR
|
||||||
|
only checks NS records which refer to in\-zone hostnames or that some required glue exists, that is when the nameserver is in a child zone.
|
||||||
|
.sp
|
||||||
|
Mode
|
||||||
|
\fB"full\-sibling"\fR
|
||||||
|
and
|
||||||
|
\fB"local\-sibling"\fR
|
||||||
|
disable sibling glue checks but are otherwise the same as
|
||||||
|
\fB"full"\fR
|
||||||
|
and
|
||||||
|
\fB"local"\fR
|
||||||
|
respectively.
|
||||||
|
.sp
|
||||||
|
Mode
|
||||||
|
\fB"none"\fR
|
||||||
|
disables the checks.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-f \fIformat\fR
|
||||||
|
.RS 4
|
||||||
|
Specify the format of the zone file. Possible formats are
|
||||||
|
\fB"text"\fR
|
||||||
|
(default),
|
||||||
|
\fB"raw"\fR, and
|
||||||
|
\fB"map"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-F \fIformat\fR
|
||||||
|
.RS 4
|
||||||
|
Specify the format of the output file specified. For
|
||||||
|
\fBnamed\-checkzone\fR, this does not cause any effects unless it dumps the zone contents.
|
||||||
|
.sp
|
||||||
|
Possible formats are
|
||||||
|
\fB"text"\fR
|
||||||
|
(default), which is the standard textual representation of the zone, and
|
||||||
|
\fB"map"\fR,
|
||||||
|
\fB"raw"\fR, and
|
||||||
|
\fB"raw=N"\fR, which store the zone in a binary format for rapid loading by
|
||||||
|
\fBnamed\fR.
|
||||||
|
\fB"raw=N"\fR
|
||||||
|
specifies the format version of the raw zone file: if N is 0, the raw file can be read by any version of
|
||||||
|
\fBnamed\fR; if N is 1, the file can be read by release 9.9.0 or higher; the default is 1.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-k \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Perform
|
||||||
|
\fB"check\-names"\fR
|
||||||
|
checks with the specified failure mode. Possible modes are
|
||||||
|
\fB"fail"\fR
|
||||||
|
(default for
|
||||||
|
\fBnamed\-compilezone\fR),
|
||||||
|
\fB"warn"\fR
|
||||||
|
(default for
|
||||||
|
\fBnamed\-checkzone\fR) and
|
||||||
|
\fB"ignore"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-l \fIttl\fR
|
||||||
|
.RS 4
|
||||||
|
Sets a maximum permissible TTL for the input file. Any record with a TTL higher than this value will cause the zone to be rejected. This is similar to using the
|
||||||
|
\fBmax\-zone\-ttl\fR
|
||||||
|
option in
|
||||||
|
\fInamed.conf\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-L \fIserial\fR
|
||||||
|
.RS 4
|
||||||
|
When compiling a zone to "raw" or "map" format, set the "source serial" value in the header to the specified serial number. (This is expected to be used primarily for testing purposes.)
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-m \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Specify whether MX records should be checked to see if they are addresses. Possible modes are
|
||||||
|
\fB"fail"\fR,
|
||||||
|
\fB"warn"\fR
|
||||||
|
(default) and
|
||||||
|
\fB"ignore"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-M \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Check if a MX record refers to a CNAME. Possible modes are
|
||||||
|
\fB"fail"\fR,
|
||||||
|
\fB"warn"\fR
|
||||||
|
(default) and
|
||||||
|
\fB"ignore"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-n \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Specify whether NS records should be checked to see if they are addresses. Possible modes are
|
||||||
|
\fB"fail"\fR
|
||||||
|
(default for
|
||||||
|
\fBnamed\-compilezone\fR),
|
||||||
|
\fB"warn"\fR
|
||||||
|
(default for
|
||||||
|
\fBnamed\-checkzone\fR) and
|
||||||
|
\fB"ignore"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-o \fIfilename\fR
|
||||||
|
.RS 4
|
||||||
|
Write zone output to
|
||||||
|
\fIfilename\fR. If
|
||||||
|
\fIfilename\fR
|
||||||
|
is
|
||||||
|
\fI\-\fR
|
||||||
|
then write to standard out. This is mandatory for
|
||||||
|
\fBnamed\-compilezone\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-r \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Check for records that are treated as different by DNSSEC but are semantically equal in plain DNS. Possible modes are
|
||||||
|
\fB"fail"\fR,
|
||||||
|
\fB"warn"\fR
|
||||||
|
(default) and
|
||||||
|
\fB"ignore"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-s \fIstyle\fR
|
||||||
|
.RS 4
|
||||||
|
Specify the style of the dumped zone file. Possible styles are
|
||||||
|
\fB"full"\fR
|
||||||
|
(default) and
|
||||||
|
\fB"relative"\fR. The full format is most suitable for processing automatically by a separate script. On the other hand, the relative format is more human\-readable and is thus suitable for editing by hand. For
|
||||||
|
\fBnamed\-checkzone\fR
|
||||||
|
this does not cause any effects unless it dumps the zone contents. It also does not have any meaning if the output format is not text.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-S \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Check if a SRV record refers to a CNAME. Possible modes are
|
||||||
|
\fB"fail"\fR,
|
||||||
|
\fB"warn"\fR
|
||||||
|
(default) and
|
||||||
|
\fB"ignore"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-t \fIdirectory\fR
|
||||||
|
.RS 4
|
||||||
|
Chroot to
|
||||||
|
\fIdirectory\fR
|
||||||
|
so that include directives in the configuration file are processed as if run by a similarly chrooted named.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-T \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Check if Sender Policy Framework (SPF) records exist and issues a warning if an SPF\-formatted TXT record is not also present. Possible modes are
|
||||||
|
\fB"warn"\fR
|
||||||
|
(default),
|
||||||
|
\fB"ignore"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-w \fIdirectory\fR
|
||||||
|
.RS 4
|
||||||
|
chdir to
|
||||||
|
\fIdirectory\fR
|
||||||
|
so that relative filenames in master file $INCLUDE directives work. This is similar to the directory clause in
|
||||||
|
\fInamed.conf\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-D
|
||||||
|
.RS 4
|
||||||
|
Dump zone file in canonical format. This is always enabled for
|
||||||
|
\fBnamed\-compilezone\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-W \fImode\fR
|
||||||
|
.RS 4
|
||||||
|
Specify whether to check for non\-terminal wildcards. Non\-terminal wildcards are almost always the result of a failure to understand the wildcard matching algorithm (RFC 1034). Possible modes are
|
||||||
|
\fB"warn"\fR
|
||||||
|
(default) and
|
||||||
|
\fB"ignore"\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
zonename
|
||||||
|
.RS 4
|
||||||
|
The domain name of the zone being checked.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
filename
|
||||||
|
.RS 4
|
||||||
|
The name of the zone file.
|
||||||
|
.RE
|
||||||
|
.SH "RETURN VALUES"
|
||||||
|
.PP
|
||||||
|
\fBnamed\-checkzone\fR
|
||||||
|
returns an exit status of 1 if errors were detected and 0 otherwise.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.PP
|
||||||
|
\fBnamed\fR(8),
|
||||||
|
\fBnamed\-checkconf\fR(8),
|
||||||
|
RFC 1035,
|
||||||
|
BIND 9 Administrator Reference Manual.
|
||||||
|
.SH "AUTHOR"
|
||||||
|
.PP
|
||||||
|
Internet Systems Consortium
|
||||||
|
.SH "COPYRIGHT"
|
||||||
|
Copyright \(co 2004\-2007, 2009\-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
.br
|
||||||
|
Copyright \(co 2000\-2002 Internet Software Consortium.
|
||||||
|
.br
|
||||||
573
external/bsd/bind/dist/bin/check/named-checkzone.c
vendored
Normal file
573
external/bsd/bind/dist/bin/check/named-checkzone.c
vendored
Normal file
|
|
@ -0,0 +1,573 @@
|
||||||
|
/* $NetBSD: named-checkzone.c,v 1.7 2014/12/10 04:37:51 christos Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2004-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
* Copyright (C) 1999-2003 Internet Software Consortium.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Id: named-checkzone.c,v 1.65.32.2 2012/02/07 02:45:21 each Exp */
|
||||||
|
|
||||||
|
/*! \file */
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include <isc/app.h>
|
||||||
|
#include <isc/commandline.h>
|
||||||
|
#include <isc/dir.h>
|
||||||
|
#include <isc/entropy.h>
|
||||||
|
#include <isc/hash.h>
|
||||||
|
#include <isc/log.h>
|
||||||
|
#include <isc/mem.h>
|
||||||
|
#include <isc/socket.h>
|
||||||
|
#include <isc/string.h>
|
||||||
|
#include <isc/task.h>
|
||||||
|
#include <isc/timer.h>
|
||||||
|
#include <isc/util.h>
|
||||||
|
|
||||||
|
#include <dns/db.h>
|
||||||
|
#include <dns/fixedname.h>
|
||||||
|
#include <dns/log.h>
|
||||||
|
#include <dns/master.h>
|
||||||
|
#include <dns/masterdump.h>
|
||||||
|
#include <dns/name.h>
|
||||||
|
#include <dns/rdataclass.h>
|
||||||
|
#include <dns/rdataset.h>
|
||||||
|
#include <dns/result.h>
|
||||||
|
#include <dns/types.h>
|
||||||
|
#include <dns/zone.h>
|
||||||
|
|
||||||
|
#include "check-tool.h"
|
||||||
|
|
||||||
|
static int quiet = 0;
|
||||||
|
static isc_mem_t *mctx = NULL;
|
||||||
|
static isc_entropy_t *ectx = NULL;
|
||||||
|
dns_zone_t *zone = NULL;
|
||||||
|
dns_zonetype_t zonetype = dns_zone_master;
|
||||||
|
static int dumpzone = 0;
|
||||||
|
static const char *output_filename;
|
||||||
|
static char *prog_name = NULL;
|
||||||
|
static const dns_master_style_t *outputstyle = NULL;
|
||||||
|
static enum { progmode_check, progmode_compile } progmode;
|
||||||
|
|
||||||
|
#define ERRRET(result, function) \
|
||||||
|
do { \
|
||||||
|
if (result != ISC_R_SUCCESS) { \
|
||||||
|
if (!quiet) \
|
||||||
|
fprintf(stderr, "%s() returned %s\n", \
|
||||||
|
function, dns_result_totext(result)); \
|
||||||
|
return (result); \
|
||||||
|
} \
|
||||||
|
} while (/*CONSTCOND*/0)
|
||||||
|
|
||||||
|
ISC_PLATFORM_NORETURN_PRE static void
|
||||||
|
usage(void) ISC_PLATFORM_NORETURN_POST;
|
||||||
|
|
||||||
|
static void
|
||||||
|
usage(void) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"usage: %s [-djqvD] [-c class] "
|
||||||
|
"[-f inputformat] [-F outputformat] [-J filename] "
|
||||||
|
"[-t directory] [-w directory] [-k (ignore|warn|fail)] "
|
||||||
|
"[-n (ignore|warn|fail)] [-m (ignore|warn|fail)] "
|
||||||
|
"[-r (ignore|warn|fail)] "
|
||||||
|
"[-i (full|full-sibling|local|local-sibling|none)] "
|
||||||
|
"[-M (ignore|warn|fail)] [-S (ignore|warn|fail)] "
|
||||||
|
"[-W (ignore|warn)] "
|
||||||
|
"%s zonename filename\n",
|
||||||
|
prog_name,
|
||||||
|
progmode == progmode_check ? "[-o filename]" : "-o filename");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
destroy(void) {
|
||||||
|
if (zone != NULL)
|
||||||
|
dns_zone_detach(&zone);
|
||||||
|
dns_name_destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*% main processing routine */
|
||||||
|
int
|
||||||
|
main(int argc, char **argv) {
|
||||||
|
int c;
|
||||||
|
char *origin = NULL;
|
||||||
|
char *filename = NULL;
|
||||||
|
isc_log_t *lctx = NULL;
|
||||||
|
isc_result_t result;
|
||||||
|
char classname_in[] = "IN";
|
||||||
|
char *classname = classname_in;
|
||||||
|
const char *workdir = NULL;
|
||||||
|
const char *inputformatstr = NULL;
|
||||||
|
const char *outputformatstr = NULL;
|
||||||
|
dns_masterformat_t inputformat = dns_masterformat_text;
|
||||||
|
dns_masterformat_t outputformat = dns_masterformat_text;
|
||||||
|
dns_masterrawheader_t header;
|
||||||
|
isc_uint32_t rawversion = 1, serialnum = 0;
|
||||||
|
dns_ttl_t maxttl = 0;
|
||||||
|
isc_boolean_t snset = ISC_FALSE;
|
||||||
|
isc_boolean_t logdump = ISC_FALSE;
|
||||||
|
FILE *errout = stdout;
|
||||||
|
char *endp;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Uncomment the following line if memory debugging is needed:
|
||||||
|
* isc_mem_debugging |= ISC_MEM_DEBUGRECORD;
|
||||||
|
*/
|
||||||
|
|
||||||
|
outputstyle = &dns_master_style_full;
|
||||||
|
|
||||||
|
prog_name = strrchr(argv[0], '/');
|
||||||
|
if (prog_name == NULL)
|
||||||
|
prog_name = strrchr(argv[0], '\\');
|
||||||
|
if (prog_name != NULL)
|
||||||
|
prog_name++;
|
||||||
|
else
|
||||||
|
prog_name = argv[0];
|
||||||
|
/*
|
||||||
|
* Libtool doesn't preserve the program name prior to final
|
||||||
|
* installation. Remove the libtool prefix ("lt-").
|
||||||
|
*/
|
||||||
|
if (strncmp(prog_name, "lt-", 3) == 0)
|
||||||
|
prog_name += 3;
|
||||||
|
|
||||||
|
#define PROGCMP(X) \
|
||||||
|
(strcasecmp(prog_name, X) == 0 || strcasecmp(prog_name, X ".exe") == 0)
|
||||||
|
|
||||||
|
if (PROGCMP("named-checkzone"))
|
||||||
|
progmode = progmode_check;
|
||||||
|
else if (PROGCMP("named-compilezone"))
|
||||||
|
progmode = progmode_compile;
|
||||||
|
else
|
||||||
|
INSIST(0);
|
||||||
|
|
||||||
|
/* Compilation specific defaults */
|
||||||
|
if (progmode == progmode_compile) {
|
||||||
|
zone_options |= (DNS_ZONEOPT_CHECKNS |
|
||||||
|
DNS_ZONEOPT_FATALNS |
|
||||||
|
DNS_ZONEOPT_CHECKSPF |
|
||||||
|
DNS_ZONEOPT_CHECKDUPRR |
|
||||||
|
DNS_ZONEOPT_CHECKNAMES |
|
||||||
|
DNS_ZONEOPT_CHECKNAMESFAIL |
|
||||||
|
DNS_ZONEOPT_CHECKWILDCARD);
|
||||||
|
} else
|
||||||
|
zone_options |= (DNS_ZONEOPT_CHECKDUPRR |
|
||||||
|
DNS_ZONEOPT_CHECKSPF);
|
||||||
|
|
||||||
|
#define ARGCMP(X) (strcmp(isc_commandline_argument, X) == 0)
|
||||||
|
|
||||||
|
isc_commandline_errprint = ISC_FALSE;
|
||||||
|
|
||||||
|
while ((c = isc_commandline_parse(argc, argv,
|
||||||
|
"c:df:hi:jJ:k:L:l:m:n:qr:s:t:o:vw:DF:M:S:T:W:"))
|
||||||
|
!= EOF) {
|
||||||
|
switch (c) {
|
||||||
|
case 'c':
|
||||||
|
classname = isc_commandline_argument;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'd':
|
||||||
|
debug++;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'i':
|
||||||
|
if (ARGCMP("full")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKINTEGRITY |
|
||||||
|
DNS_ZONEOPT_CHECKSIBLING;
|
||||||
|
docheckmx = ISC_TRUE;
|
||||||
|
docheckns = ISC_TRUE;
|
||||||
|
dochecksrv = ISC_TRUE;
|
||||||
|
} else if (ARGCMP("full-sibling")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKINTEGRITY;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKSIBLING;
|
||||||
|
docheckmx = ISC_TRUE;
|
||||||
|
docheckns = ISC_TRUE;
|
||||||
|
dochecksrv = ISC_TRUE;
|
||||||
|
} else if (ARGCMP("local")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKINTEGRITY;
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKSIBLING;
|
||||||
|
docheckmx = ISC_FALSE;
|
||||||
|
docheckns = ISC_FALSE;
|
||||||
|
dochecksrv = ISC_FALSE;
|
||||||
|
} else if (ARGCMP("local-sibling")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKINTEGRITY;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKSIBLING;
|
||||||
|
docheckmx = ISC_FALSE;
|
||||||
|
docheckns = ISC_FALSE;
|
||||||
|
dochecksrv = ISC_FALSE;
|
||||||
|
} else if (ARGCMP("none")) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKINTEGRITY;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKSIBLING;
|
||||||
|
docheckmx = ISC_FALSE;
|
||||||
|
docheckns = ISC_FALSE;
|
||||||
|
dochecksrv = ISC_FALSE;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "invalid argument to -i: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'f':
|
||||||
|
inputformatstr = isc_commandline_argument;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'F':
|
||||||
|
outputformatstr = isc_commandline_argument;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'j':
|
||||||
|
nomerge = ISC_FALSE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'J':
|
||||||
|
journal = isc_commandline_argument;
|
||||||
|
nomerge = ISC_FALSE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'k':
|
||||||
|
if (ARGCMP("warn")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNAMES;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKNAMESFAIL;
|
||||||
|
} else if (ARGCMP("fail")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNAMES |
|
||||||
|
DNS_ZONEOPT_CHECKNAMESFAIL;
|
||||||
|
} else if (ARGCMP("ignore")) {
|
||||||
|
zone_options &= ~(DNS_ZONEOPT_CHECKNAMES |
|
||||||
|
DNS_ZONEOPT_CHECKNAMESFAIL);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "invalid argument to -k: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'L':
|
||||||
|
snset = ISC_TRUE;
|
||||||
|
endp = NULL;
|
||||||
|
serialnum = strtol(isc_commandline_argument, &endp, 0);
|
||||||
|
if (*endp != '\0') {
|
||||||
|
fprintf(stderr, "source serial number "
|
||||||
|
"must be numeric");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'l':
|
||||||
|
zone_options2 |= DNS_ZONEOPT2_CHECKTTL;
|
||||||
|
endp = NULL;
|
||||||
|
maxttl = strtol(isc_commandline_argument, &endp, 0);
|
||||||
|
if (*endp != '\0') {
|
||||||
|
fprintf(stderr, "maximum TTL "
|
||||||
|
"must be numeric");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
case 'n':
|
||||||
|
if (ARGCMP("ignore")) {
|
||||||
|
zone_options &= ~(DNS_ZONEOPT_CHECKNS|
|
||||||
|
DNS_ZONEOPT_FATALNS);
|
||||||
|
} else if (ARGCMP("warn")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNS;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_FATALNS;
|
||||||
|
} else if (ARGCMP("fail")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKNS|
|
||||||
|
DNS_ZONEOPT_FATALNS;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "invalid argument to -n: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'm':
|
||||||
|
if (ARGCMP("warn")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKMX;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKMXFAIL;
|
||||||
|
} else if (ARGCMP("fail")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKMX |
|
||||||
|
DNS_ZONEOPT_CHECKMXFAIL;
|
||||||
|
} else if (ARGCMP("ignore")) {
|
||||||
|
zone_options &= ~(DNS_ZONEOPT_CHECKMX |
|
||||||
|
DNS_ZONEOPT_CHECKMXFAIL);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "invalid argument to -m: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'o':
|
||||||
|
output_filename = isc_commandline_argument;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'q':
|
||||||
|
quiet++;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'r':
|
||||||
|
if (ARGCMP("warn")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKDUPRR;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKDUPRRFAIL;
|
||||||
|
} else if (ARGCMP("fail")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKDUPRR |
|
||||||
|
DNS_ZONEOPT_CHECKDUPRRFAIL;
|
||||||
|
} else if (ARGCMP("ignore")) {
|
||||||
|
zone_options &= ~(DNS_ZONEOPT_CHECKDUPRR |
|
||||||
|
DNS_ZONEOPT_CHECKDUPRRFAIL);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "invalid argument to -r: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 's':
|
||||||
|
if (ARGCMP("full"))
|
||||||
|
outputstyle = &dns_master_style_full;
|
||||||
|
else if (ARGCMP("relative")) {
|
||||||
|
outputstyle = &dns_master_style_default;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr,
|
||||||
|
"unknown or unsupported style: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 't':
|
||||||
|
result = isc_dir_chroot(isc_commandline_argument);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
fprintf(stderr, "isc_dir_chroot: %s: %s\n",
|
||||||
|
isc_commandline_argument,
|
||||||
|
isc_result_totext(result));
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'v':
|
||||||
|
printf(VERSION "\n");
|
||||||
|
exit(0);
|
||||||
|
|
||||||
|
case 'w':
|
||||||
|
workdir = isc_commandline_argument;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'D':
|
||||||
|
dumpzone++;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'M':
|
||||||
|
if (ARGCMP("fail")) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_WARNMXCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNOREMXCNAME;
|
||||||
|
} else if (ARGCMP("warn")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNMXCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNOREMXCNAME;
|
||||||
|
} else if (ARGCMP("ignore")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNMXCNAME;
|
||||||
|
zone_options |= DNS_ZONEOPT_IGNOREMXCNAME;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "invalid argument to -M: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'S':
|
||||||
|
if (ARGCMP("fail")) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_WARNSRVCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNORESRVCNAME;
|
||||||
|
} else if (ARGCMP("warn")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNSRVCNAME;
|
||||||
|
zone_options &= ~DNS_ZONEOPT_IGNORESRVCNAME;
|
||||||
|
} else if (ARGCMP("ignore")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_WARNSRVCNAME;
|
||||||
|
zone_options |= DNS_ZONEOPT_IGNORESRVCNAME;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "invalid argument to -S: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'T':
|
||||||
|
if (ARGCMP("warn")) {
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKSPF;
|
||||||
|
} else if (ARGCMP("ignore")) {
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKSPF;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "invalid argument to -T: %s\n",
|
||||||
|
isc_commandline_argument);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'W':
|
||||||
|
if (ARGCMP("warn"))
|
||||||
|
zone_options |= DNS_ZONEOPT_CHECKWILDCARD;
|
||||||
|
else if (ARGCMP("ignore"))
|
||||||
|
zone_options &= ~DNS_ZONEOPT_CHECKWILDCARD;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '?':
|
||||||
|
if (isc_commandline_option != '?')
|
||||||
|
fprintf(stderr, "%s: invalid argument -%c\n",
|
||||||
|
prog_name, isc_commandline_option);
|
||||||
|
/* FALLTHROUGH */
|
||||||
|
case 'h':
|
||||||
|
usage();
|
||||||
|
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "%s: unhandled option -%c\n",
|
||||||
|
prog_name, isc_commandline_option);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (workdir != NULL) {
|
||||||
|
result = isc_dir_chdir(workdir);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
fprintf(stderr, "isc_dir_chdir: %s: %s\n",
|
||||||
|
workdir, isc_result_totext(result));
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (inputformatstr != NULL) {
|
||||||
|
if (strcasecmp(inputformatstr, "text") == 0)
|
||||||
|
inputformat = dns_masterformat_text;
|
||||||
|
else if (strcasecmp(inputformatstr, "raw") == 0)
|
||||||
|
inputformat = dns_masterformat_raw;
|
||||||
|
else if (strncasecmp(inputformatstr, "raw=", 4) == 0) {
|
||||||
|
inputformat = dns_masterformat_raw;
|
||||||
|
fprintf(stderr,
|
||||||
|
"WARNING: input format raw, version ignored\n");
|
||||||
|
} else if (strcasecmp(inputformatstr, "map") == 0) {
|
||||||
|
inputformat = dns_masterformat_map;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "unknown file format: %s\n",
|
||||||
|
inputformatstr);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (outputformatstr != NULL) {
|
||||||
|
if (strcasecmp(outputformatstr, "text") == 0) {
|
||||||
|
outputformat = dns_masterformat_text;
|
||||||
|
} else if (strcasecmp(outputformatstr, "raw") == 0) {
|
||||||
|
outputformat = dns_masterformat_raw;
|
||||||
|
} else if (strncasecmp(outputformatstr, "raw=", 4) == 0) {
|
||||||
|
char *end;
|
||||||
|
|
||||||
|
outputformat = dns_masterformat_raw;
|
||||||
|
rawversion = strtol(outputformatstr + 4, &end, 10);
|
||||||
|
if (end == outputformatstr + 4 || *end != '\0' ||
|
||||||
|
rawversion > 1U) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"unknown raw format version\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
} else if (strcasecmp(outputformatstr, "map") == 0) {
|
||||||
|
outputformat = dns_masterformat_map;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "unknown file format: %s\n",
|
||||||
|
outputformatstr);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (progmode == progmode_compile) {
|
||||||
|
dumpzone = 1; /* always dump */
|
||||||
|
logdump = !quiet;
|
||||||
|
if (output_filename == NULL) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"output file required, but not specified\n");
|
||||||
|
usage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (output_filename != NULL)
|
||||||
|
dumpzone = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If we are outputing to stdout then send the informational
|
||||||
|
* output to stderr.
|
||||||
|
*/
|
||||||
|
if (dumpzone &&
|
||||||
|
(output_filename == NULL ||
|
||||||
|
strcmp(output_filename, "-") == 0 ||
|
||||||
|
strcmp(output_filename, "/dev/fd/1") == 0 ||
|
||||||
|
strcmp(output_filename, "/dev/stdout") == 0)) {
|
||||||
|
errout = stderr;
|
||||||
|
logdump = ISC_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isc_commandline_index + 2 != argc)
|
||||||
|
usage();
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
InitSockets();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS);
|
||||||
|
if (!quiet)
|
||||||
|
RUNTIME_CHECK(setup_logging(mctx, errout, &lctx)
|
||||||
|
== ISC_R_SUCCESS);
|
||||||
|
RUNTIME_CHECK(isc_entropy_create(mctx, &ectx) == ISC_R_SUCCESS);
|
||||||
|
RUNTIME_CHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE)
|
||||||
|
== ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
dns_result_register();
|
||||||
|
|
||||||
|
origin = argv[isc_commandline_index++];
|
||||||
|
filename = argv[isc_commandline_index++];
|
||||||
|
result = load_zone(mctx, origin, filename, inputformat, classname,
|
||||||
|
maxttl, &zone);
|
||||||
|
|
||||||
|
if (snset) {
|
||||||
|
dns_master_initrawheader(&header);
|
||||||
|
header.flags = DNS_MASTERRAW_SOURCESERIALSET;
|
||||||
|
header.sourceserial = serialnum;
|
||||||
|
dns_zone_setrawdata(zone, &header);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result == ISC_R_SUCCESS && dumpzone) {
|
||||||
|
if (logdump) {
|
||||||
|
fprintf(errout, "dump zone to %s...", output_filename);
|
||||||
|
fflush(errout);
|
||||||
|
}
|
||||||
|
result = dump_zone(origin, zone, output_filename,
|
||||||
|
outputformat, outputstyle, rawversion);
|
||||||
|
if (logdump)
|
||||||
|
fprintf(errout, "done\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!quiet && result == ISC_R_SUCCESS)
|
||||||
|
fprintf(errout, "OK\n");
|
||||||
|
destroy();
|
||||||
|
if (lctx != NULL)
|
||||||
|
isc_log_destroy(&lctx);
|
||||||
|
isc_hash_destroy();
|
||||||
|
isc_entropy_detach(&ectx);
|
||||||
|
isc_mem_destroy(&mctx);
|
||||||
|
#ifdef _WIN32
|
||||||
|
DestroySockets();
|
||||||
|
#endif
|
||||||
|
return ((result == ISC_R_SUCCESS) ? 0 : 1);
|
||||||
|
}
|
||||||
541
external/bsd/bind/dist/bin/check/named-checkzone.docbook
vendored
Normal file
541
external/bsd/bind/dist/bin/check/named-checkzone.docbook
vendored
Normal file
|
|
@ -0,0 +1,541 @@
|
||||||
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
|
||||||
|
[<!ENTITY mdash "—">]>
|
||||||
|
<!--
|
||||||
|
- Copyright (C) 2004-2007, 2009-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
- Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
|
-
|
||||||
|
- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
- purpose with or without fee is hereby granted, provided that the above
|
||||||
|
- copyright notice and this permission notice appear in all copies.
|
||||||
|
-
|
||||||
|
- THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
- AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
- PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<refentry id="man.named-checkzone">
|
||||||
|
<refentryinfo>
|
||||||
|
<date>February 19, 2014</date>
|
||||||
|
</refentryinfo>
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle><application>named-checkzone</application></refentrytitle>
|
||||||
|
<manvolnum>8</manvolnum>
|
||||||
|
<refmiscinfo>BIND9</refmiscinfo>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<docinfo>
|
||||||
|
<copyright>
|
||||||
|
<year>2004</year>
|
||||||
|
<year>2005</year>
|
||||||
|
<year>2006</year>
|
||||||
|
<year>2007</year>
|
||||||
|
<year>2009</year>
|
||||||
|
<year>2010</year>
|
||||||
|
<year>2011</year>
|
||||||
|
<year>2012</year>
|
||||||
|
<year>2013</year>
|
||||||
|
<year>2014</year>
|
||||||
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
|
</copyright>
|
||||||
|
<copyright>
|
||||||
|
<year>2000</year>
|
||||||
|
<year>2001</year>
|
||||||
|
<year>2002</year>
|
||||||
|
<holder>Internet Software Consortium.</holder>
|
||||||
|
</copyright>
|
||||||
|
</docinfo>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname><application>named-checkzone</application></refname>
|
||||||
|
<refname><application>named-compilezone</application></refname>
|
||||||
|
<refpurpose>zone file validity checking or converting tool</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>named-checkzone</command>
|
||||||
|
<arg><option>-d</option></arg>
|
||||||
|
<arg><option>-h</option></arg>
|
||||||
|
<arg><option>-j</option></arg>
|
||||||
|
<arg><option>-q</option></arg>
|
||||||
|
<arg><option>-v</option></arg>
|
||||||
|
<arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
|
||||||
|
<arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
|
||||||
|
<arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
|
||||||
|
<arg><option>-J <replaceable class="parameter">filename</replaceable></option></arg>
|
||||||
|
<arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-M <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-l <replaceable class="parameter">ttl</replaceable></option></arg>
|
||||||
|
<arg><option>-L <replaceable class="parameter">serial</replaceable></option></arg>
|
||||||
|
<arg><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
|
||||||
|
<arg><option>-r <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
|
||||||
|
<arg><option>-S <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
|
||||||
|
<arg><option>-T <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
|
||||||
|
<arg><option>-D</option></arg>
|
||||||
|
<arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg choice="req">zonename</arg>
|
||||||
|
<arg choice="req">filename</arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>named-compilezone</command>
|
||||||
|
<arg><option>-d</option></arg>
|
||||||
|
<arg><option>-j</option></arg>
|
||||||
|
<arg><option>-q</option></arg>
|
||||||
|
<arg><option>-v</option></arg>
|
||||||
|
<arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
|
||||||
|
<arg><option>-C <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
|
||||||
|
<arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
|
||||||
|
<arg><option>-J <replaceable class="parameter">filename</replaceable></option></arg>
|
||||||
|
<arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-l <replaceable class="parameter">ttl</replaceable></option></arg>
|
||||||
|
<arg><option>-L <replaceable class="parameter">serial</replaceable></option></arg>
|
||||||
|
<arg><option>-r <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
|
||||||
|
<arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
|
||||||
|
<arg><option>-T <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
|
||||||
|
<arg><option>-D</option></arg>
|
||||||
|
<arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
|
||||||
|
<arg choice="req"><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
|
||||||
|
<arg choice="req">zonename</arg>
|
||||||
|
<arg choice="req">filename</arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>DESCRIPTION</title>
|
||||||
|
<para><command>named-checkzone</command>
|
||||||
|
checks the syntax and integrity of a zone file. It performs the
|
||||||
|
same checks as <command>named</command> does when loading a
|
||||||
|
zone. This makes <command>named-checkzone</command> useful for
|
||||||
|
checking zone files before configuring them into a name server.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
<command>named-compilezone</command> is similar to
|
||||||
|
<command>named-checkzone</command>, but it always dumps the
|
||||||
|
zone contents to a specified file in a specified format.
|
||||||
|
Additionally, it applies stricter check levels by default,
|
||||||
|
since the dump output will be used as an actual zone file
|
||||||
|
loaded by <command>named</command>.
|
||||||
|
When manually specified otherwise, the check levels must at
|
||||||
|
least be as strict as those specified in the
|
||||||
|
<command>named</command> configuration file.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>OPTIONS</title>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>-d</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Enable debugging.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-h</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Print the usage summary and exit.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-q</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Quiet mode - exit code only.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-v</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Print the version of the <command>named-checkzone</command>
|
||||||
|
program and exit.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-j</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
When loading a zone file, read the journal if it exists.
|
||||||
|
The journal file name is assumed to be the zone file name
|
||||||
|
appended with the string <filename>.jnl</filename>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-J <replaceable class="parameter">filename</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
When loading the zone file read the journal from the given
|
||||||
|
file, if it exists. (Implies -j.)
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-c <replaceable class="parameter">class</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specify the class of the zone. If not specified, "IN" is assumed.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-i <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Perform post-load zone integrity checks. Possible modes are
|
||||||
|
<command>"full"</command> (default),
|
||||||
|
<command>"full-sibling"</command>,
|
||||||
|
<command>"local"</command>,
|
||||||
|
<command>"local-sibling"</command> and
|
||||||
|
<command>"none"</command>.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Mode <command>"full"</command> checks that MX records
|
||||||
|
refer to A or AAAA record (both in-zone and out-of-zone
|
||||||
|
hostnames). Mode <command>"local"</command> only
|
||||||
|
checks MX records which refer to in-zone hostnames.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Mode <command>"full"</command> checks that SRV records
|
||||||
|
refer to A or AAAA record (both in-zone and out-of-zone
|
||||||
|
hostnames). Mode <command>"local"</command> only
|
||||||
|
checks SRV records which refer to in-zone hostnames.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Mode <command>"full"</command> checks that delegation NS
|
||||||
|
records refer to A or AAAA record (both in-zone and out-of-zone
|
||||||
|
hostnames). It also checks that glue address records
|
||||||
|
in the zone match those advertised by the child.
|
||||||
|
Mode <command>"local"</command> only checks NS records which
|
||||||
|
refer to in-zone hostnames or that some required glue exists,
|
||||||
|
that is when the nameserver is in a child zone.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Mode <command>"full-sibling"</command> and
|
||||||
|
<command>"local-sibling"</command> disable sibling glue
|
||||||
|
checks but are otherwise the same as <command>"full"</command>
|
||||||
|
and <command>"local"</command> respectively.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Mode <command>"none"</command> disables the checks.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-f <replaceable class="parameter">format</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specify the format of the zone file.
|
||||||
|
Possible formats are <command>"text"</command> (default),
|
||||||
|
<command>"raw"</command>, and <command>"map"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-F <replaceable class="parameter">format</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specify the format of the output file specified.
|
||||||
|
For <command>named-checkzone</command>,
|
||||||
|
this does not cause any effects unless it dumps the zone
|
||||||
|
contents.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Possible formats are <command>"text"</command> (default),
|
||||||
|
which is the standard textual representation of the zone,
|
||||||
|
and <command>"map"</command>, <command>"raw"</command>,
|
||||||
|
and <command>"raw=N"</command>, which store the zone in a
|
||||||
|
binary format for rapid loading by <command>named</command>.
|
||||||
|
<command>"raw=N"</command> specifies the format version of
|
||||||
|
the raw zone file: if N is 0, the raw file can be read by
|
||||||
|
any version of <command>named</command>; if N is 1, the file
|
||||||
|
can be read by release 9.9.0 or higher; the default is 1.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-k <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Perform <command>"check-names"</command> checks with the
|
||||||
|
specified failure mode.
|
||||||
|
Possible modes are <command>"fail"</command>
|
||||||
|
(default for <command>named-compilezone</command>),
|
||||||
|
<command>"warn"</command>
|
||||||
|
(default for <command>named-checkzone</command>) and
|
||||||
|
<command>"ignore"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-l <replaceable class="parameter">ttl</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Sets a maximum permissible TTL for the input file.
|
||||||
|
Any record with a TTL higher than this value will cause
|
||||||
|
the zone to be rejected. This is similar to using the
|
||||||
|
<command>max-zone-ttl</command> option in
|
||||||
|
<filename>named.conf</filename>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-L <replaceable class="parameter">serial</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
When compiling a zone to "raw" or "map" format, set the
|
||||||
|
"source serial" value in the header to the specified serial
|
||||||
|
number. (This is expected to be used primarily for testing
|
||||||
|
purposes.)
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-m <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specify whether MX records should be checked to see if they
|
||||||
|
are addresses. Possible modes are <command>"fail"</command>,
|
||||||
|
<command>"warn"</command> (default) and
|
||||||
|
<command>"ignore"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-M <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Check if a MX record refers to a CNAME.
|
||||||
|
Possible modes are <command>"fail"</command>,
|
||||||
|
<command>"warn"</command> (default) and
|
||||||
|
<command>"ignore"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-n <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specify whether NS records should be checked to see if they
|
||||||
|
are addresses.
|
||||||
|
Possible modes are <command>"fail"</command>
|
||||||
|
(default for <command>named-compilezone</command>),
|
||||||
|
<command>"warn"</command>
|
||||||
|
(default for <command>named-checkzone</command>) and
|
||||||
|
<command>"ignore"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-o <replaceable class="parameter">filename</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Write zone output to <filename>filename</filename>.
|
||||||
|
If <filename>filename</filename> is <filename>-</filename> then
|
||||||
|
write to standard out.
|
||||||
|
This is mandatory for <command>named-compilezone</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-r <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Check for records that are treated as different by DNSSEC but
|
||||||
|
are semantically equal in plain DNS.
|
||||||
|
Possible modes are <command>"fail"</command>,
|
||||||
|
<command>"warn"</command> (default) and
|
||||||
|
<command>"ignore"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-s <replaceable class="parameter">style</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specify the style of the dumped zone file.
|
||||||
|
Possible styles are <command>"full"</command> (default)
|
||||||
|
and <command>"relative"</command>.
|
||||||
|
The full format is most suitable for processing
|
||||||
|
automatically by a separate script.
|
||||||
|
On the other hand, the relative format is more
|
||||||
|
human-readable and is thus suitable for editing by hand.
|
||||||
|
For <command>named-checkzone</command>
|
||||||
|
this does not cause any effects unless it dumps the zone
|
||||||
|
contents.
|
||||||
|
It also does not have any meaning if the output format
|
||||||
|
is not text.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-S <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Check if a SRV record refers to a CNAME.
|
||||||
|
Possible modes are <command>"fail"</command>,
|
||||||
|
<command>"warn"</command> (default) and
|
||||||
|
<command>"ignore"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-t <replaceable class="parameter">directory</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Chroot to <filename>directory</filename> so that
|
||||||
|
include
|
||||||
|
directives in the configuration file are processed as if
|
||||||
|
run by a similarly chrooted named.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-T <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Check if Sender Policy Framework (SPF) records exist
|
||||||
|
and issues a warning if an SPF-formatted TXT record is
|
||||||
|
not also present. Possible modes are <command>"warn"</command>
|
||||||
|
(default), <command>"ignore"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-w <replaceable class="parameter">directory</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
chdir to <filename>directory</filename> so that
|
||||||
|
relative
|
||||||
|
filenames in master file $INCLUDE directives work. This
|
||||||
|
is similar to the directory clause in
|
||||||
|
<filename>named.conf</filename>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-D</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Dump zone file in canonical format.
|
||||||
|
This is always enabled for <command>named-compilezone</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-W <replaceable class="parameter">mode</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specify whether to check for non-terminal wildcards.
|
||||||
|
Non-terminal wildcards are almost always the result of a
|
||||||
|
failure to understand the wildcard matching algorithm (RFC 1034).
|
||||||
|
Possible modes are <command>"warn"</command> (default)
|
||||||
|
and
|
||||||
|
<command>"ignore"</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>zonename</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The domain name of the zone being checked.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>filename</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The name of the zone file.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>RETURN VALUES</title>
|
||||||
|
<para><command>named-checkzone</command>
|
||||||
|
returns an exit status of 1 if
|
||||||
|
errors were detected and 0 otherwise.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>SEE ALSO</title>
|
||||||
|
<para><citerefentry>
|
||||||
|
<refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
|
||||||
|
</citerefentry>,
|
||||||
|
<citerefentry>
|
||||||
|
<refentrytitle>named-checkconf</refentrytitle><manvolnum>8</manvolnum>
|
||||||
|
</citerefentry>,
|
||||||
|
<citetitle>RFC 1035</citetitle>,
|
||||||
|
<citetitle>BIND 9 Administrator Reference Manual</citetitle>.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>AUTHOR</title>
|
||||||
|
<para><corpauthor>Internet Systems Consortium</corpauthor>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry><!--
|
||||||
|
- Local variables:
|
||||||
|
- mode: sgml
|
||||||
|
- End:
|
||||||
|
-->
|
||||||
310
external/bsd/bind/dist/bin/check/named-checkzone.html
vendored
Normal file
310
external/bsd/bind/dist/bin/check/named-checkzone.html
vendored
Normal file
|
|
@ -0,0 +1,310 @@
|
||||||
|
<!--
|
||||||
|
- Copyright (C) 2004-2007, 2009-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
- Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
|
-
|
||||||
|
- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
- purpose with or without fee is hereby granted, provided that the above
|
||||||
|
- copyright notice and this permission notice appear in all copies.
|
||||||
|
-
|
||||||
|
- THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
- AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
- PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
-->
|
||||||
|
<!-- Id -->
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>named-checkzone</title>
|
||||||
|
<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
|
||||||
|
<a name="man.named-checkzone"></a><div class="titlepage"></div>
|
||||||
|
<div class="refnamediv">
|
||||||
|
<h2>Name</h2>
|
||||||
|
<p><span class="application">named-checkzone</span>, <span class="application">named-compilezone</span> — zone file validity checking or converting tool</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsynopsisdiv">
|
||||||
|
<h2>Synopsis</h2>
|
||||||
|
<div class="cmdsynopsis"><p><code class="command">named-checkzone</code> [<code class="option">-d</code>] [<code class="option">-h</code>] [<code class="option">-j</code>] [<code class="option">-q</code>] [<code class="option">-v</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-f <em class="replaceable"><code>format</code></em></code>] [<code class="option">-F <em class="replaceable"><code>format</code></em></code>] [<code class="option">-J <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-i <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-k <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-m <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-M <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-n <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-l <em class="replaceable"><code>ttl</code></em></code>] [<code class="option">-L <em class="replaceable"><code>serial</code></em></code>] [<code class="option">-o <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-r <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-s <em class="replaceable"><code>style</code></em></code>] [<code class="option">-S <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-T <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-w <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-D</code>] [<code class="option">-W <em class="replaceable"><code>mode</code></em></code>] {zonename} {filename}</p></div>
|
||||||
|
<div class="cmdsynopsis"><p><code class="command">named-compilezone</code> [<code class="option">-d</code>] [<code class="option">-j</code>] [<code class="option">-q</code>] [<code class="option">-v</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-C <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-f <em class="replaceable"><code>format</code></em></code>] [<code class="option">-F <em class="replaceable"><code>format</code></em></code>] [<code class="option">-J <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-i <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-k <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-m <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-n <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-l <em class="replaceable"><code>ttl</code></em></code>] [<code class="option">-L <em class="replaceable"><code>serial</code></em></code>] [<code class="option">-r <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-s <em class="replaceable"><code>style</code></em></code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-T <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-w <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-D</code>] [<code class="option">-W <em class="replaceable"><code>mode</code></em></code>] {<code class="option">-o <em class="replaceable"><code>filename</code></em></code>} {zonename} {filename}</p></div>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543784"></a><h2>DESCRIPTION</h2>
|
||||||
|
<p><span><strong class="command">named-checkzone</strong></span>
|
||||||
|
checks the syntax and integrity of a zone file. It performs the
|
||||||
|
same checks as <span><strong class="command">named</strong></span> does when loading a
|
||||||
|
zone. This makes <span><strong class="command">named-checkzone</strong></span> useful for
|
||||||
|
checking zone files before configuring them into a name server.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<span><strong class="command">named-compilezone</strong></span> is similar to
|
||||||
|
<span><strong class="command">named-checkzone</strong></span>, but it always dumps the
|
||||||
|
zone contents to a specified file in a specified format.
|
||||||
|
Additionally, it applies stricter check levels by default,
|
||||||
|
since the dump output will be used as an actual zone file
|
||||||
|
loaded by <span><strong class="command">named</strong></span>.
|
||||||
|
When manually specified otherwise, the check levels must at
|
||||||
|
least be as strict as those specified in the
|
||||||
|
<span><strong class="command">named</strong></span> configuration file.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543819"></a><h2>OPTIONS</h2>
|
||||||
|
<div class="variablelist"><dl>
|
||||||
|
<dt><span class="term">-d</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Enable debugging.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-h</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Print the usage summary and exit.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-q</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Quiet mode - exit code only.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-v</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Print the version of the <span><strong class="command">named-checkzone</strong></span>
|
||||||
|
program and exit.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-j</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
When loading a zone file, read the journal if it exists.
|
||||||
|
The journal file name is assumed to be the zone file name
|
||||||
|
appended with the string <code class="filename">.jnl</code>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-J <em class="replaceable"><code>filename</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
When loading the zone file read the journal from the given
|
||||||
|
file, if it exists. (Implies -j.)
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specify the class of the zone. If not specified, "IN" is assumed.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd>
|
||||||
|
<p>
|
||||||
|
Perform post-load zone integrity checks. Possible modes are
|
||||||
|
<span><strong class="command">"full"</strong></span> (default),
|
||||||
|
<span><strong class="command">"full-sibling"</strong></span>,
|
||||||
|
<span><strong class="command">"local"</strong></span>,
|
||||||
|
<span><strong class="command">"local-sibling"</strong></span> and
|
||||||
|
<span><strong class="command">"none"</strong></span>.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Mode <span><strong class="command">"full"</strong></span> checks that MX records
|
||||||
|
refer to A or AAAA record (both in-zone and out-of-zone
|
||||||
|
hostnames). Mode <span><strong class="command">"local"</strong></span> only
|
||||||
|
checks MX records which refer to in-zone hostnames.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Mode <span><strong class="command">"full"</strong></span> checks that SRV records
|
||||||
|
refer to A or AAAA record (both in-zone and out-of-zone
|
||||||
|
hostnames). Mode <span><strong class="command">"local"</strong></span> only
|
||||||
|
checks SRV records which refer to in-zone hostnames.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Mode <span><strong class="command">"full"</strong></span> checks that delegation NS
|
||||||
|
records refer to A or AAAA record (both in-zone and out-of-zone
|
||||||
|
hostnames). It also checks that glue address records
|
||||||
|
in the zone match those advertised by the child.
|
||||||
|
Mode <span><strong class="command">"local"</strong></span> only checks NS records which
|
||||||
|
refer to in-zone hostnames or that some required glue exists,
|
||||||
|
that is when the nameserver is in a child zone.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Mode <span><strong class="command">"full-sibling"</strong></span> and
|
||||||
|
<span><strong class="command">"local-sibling"</strong></span> disable sibling glue
|
||||||
|
checks but are otherwise the same as <span><strong class="command">"full"</strong></span>
|
||||||
|
and <span><strong class="command">"local"</strong></span> respectively.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Mode <span><strong class="command">"none"</strong></span> disables the checks.
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="term">-f <em class="replaceable"><code>format</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specify the format of the zone file.
|
||||||
|
Possible formats are <span><strong class="command">"text"</strong></span> (default),
|
||||||
|
<span><strong class="command">"raw"</strong></span>, and <span><strong class="command">"map"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-F <em class="replaceable"><code>format</code></em></span></dt>
|
||||||
|
<dd>
|
||||||
|
<p>
|
||||||
|
Specify the format of the output file specified.
|
||||||
|
For <span><strong class="command">named-checkzone</strong></span>,
|
||||||
|
this does not cause any effects unless it dumps the zone
|
||||||
|
contents.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Possible formats are <span><strong class="command">"text"</strong></span> (default),
|
||||||
|
which is the standard textual representation of the zone,
|
||||||
|
and <span><strong class="command">"map"</strong></span>, <span><strong class="command">"raw"</strong></span>,
|
||||||
|
and <span><strong class="command">"raw=N"</strong></span>, which store the zone in a
|
||||||
|
binary format for rapid loading by <span><strong class="command">named</strong></span>.
|
||||||
|
<span><strong class="command">"raw=N"</strong></span> specifies the format version of
|
||||||
|
the raw zone file: if N is 0, the raw file can be read by
|
||||||
|
any version of <span><strong class="command">named</strong></span>; if N is 1, the file
|
||||||
|
can be read by release 9.9.0 or higher; the default is 1.
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Perform <span><strong class="command">"check-names"</strong></span> checks with the
|
||||||
|
specified failure mode.
|
||||||
|
Possible modes are <span><strong class="command">"fail"</strong></span>
|
||||||
|
(default for <span><strong class="command">named-compilezone</strong></span>),
|
||||||
|
<span><strong class="command">"warn"</strong></span>
|
||||||
|
(default for <span><strong class="command">named-checkzone</strong></span>) and
|
||||||
|
<span><strong class="command">"ignore"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-l <em class="replaceable"><code>ttl</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Sets a maximum permissible TTL for the input file.
|
||||||
|
Any record with a TTL higher than this value will cause
|
||||||
|
the zone to be rejected. This is similar to using the
|
||||||
|
<span><strong class="command">max-zone-ttl</strong></span> option in
|
||||||
|
<code class="filename">named.conf</code>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-L <em class="replaceable"><code>serial</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
When compiling a zone to "raw" or "map" format, set the
|
||||||
|
"source serial" value in the header to the specified serial
|
||||||
|
number. (This is expected to be used primarily for testing
|
||||||
|
purposes.)
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-m <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specify whether MX records should be checked to see if they
|
||||||
|
are addresses. Possible modes are <span><strong class="command">"fail"</strong></span>,
|
||||||
|
<span><strong class="command">"warn"</strong></span> (default) and
|
||||||
|
<span><strong class="command">"ignore"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-M <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Check if a MX record refers to a CNAME.
|
||||||
|
Possible modes are <span><strong class="command">"fail"</strong></span>,
|
||||||
|
<span><strong class="command">"warn"</strong></span> (default) and
|
||||||
|
<span><strong class="command">"ignore"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specify whether NS records should be checked to see if they
|
||||||
|
are addresses.
|
||||||
|
Possible modes are <span><strong class="command">"fail"</strong></span>
|
||||||
|
(default for <span><strong class="command">named-compilezone</strong></span>),
|
||||||
|
<span><strong class="command">"warn"</strong></span>
|
||||||
|
(default for <span><strong class="command">named-checkzone</strong></span>) and
|
||||||
|
<span><strong class="command">"ignore"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Write zone output to <code class="filename">filename</code>.
|
||||||
|
If <code class="filename">filename</code> is <code class="filename">-</code> then
|
||||||
|
write to standard out.
|
||||||
|
This is mandatory for <span><strong class="command">named-compilezone</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-r <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Check for records that are treated as different by DNSSEC but
|
||||||
|
are semantically equal in plain DNS.
|
||||||
|
Possible modes are <span><strong class="command">"fail"</strong></span>,
|
||||||
|
<span><strong class="command">"warn"</strong></span> (default) and
|
||||||
|
<span><strong class="command">"ignore"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-s <em class="replaceable"><code>style</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specify the style of the dumped zone file.
|
||||||
|
Possible styles are <span><strong class="command">"full"</strong></span> (default)
|
||||||
|
and <span><strong class="command">"relative"</strong></span>.
|
||||||
|
The full format is most suitable for processing
|
||||||
|
automatically by a separate script.
|
||||||
|
On the other hand, the relative format is more
|
||||||
|
human-readable and is thus suitable for editing by hand.
|
||||||
|
For <span><strong class="command">named-checkzone</strong></span>
|
||||||
|
this does not cause any effects unless it dumps the zone
|
||||||
|
contents.
|
||||||
|
It also does not have any meaning if the output format
|
||||||
|
is not text.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-S <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Check if a SRV record refers to a CNAME.
|
||||||
|
Possible modes are <span><strong class="command">"fail"</strong></span>,
|
||||||
|
<span><strong class="command">"warn"</strong></span> (default) and
|
||||||
|
<span><strong class="command">"ignore"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Chroot to <code class="filename">directory</code> so that
|
||||||
|
include
|
||||||
|
directives in the configuration file are processed as if
|
||||||
|
run by a similarly chrooted named.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-T <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Check if Sender Policy Framework (SPF) records exist
|
||||||
|
and issues a warning if an SPF-formatted TXT record is
|
||||||
|
not also present. Possible modes are <span><strong class="command">"warn"</strong></span>
|
||||||
|
(default), <span><strong class="command">"ignore"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-w <em class="replaceable"><code>directory</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
chdir to <code class="filename">directory</code> so that
|
||||||
|
relative
|
||||||
|
filenames in master file $INCLUDE directives work. This
|
||||||
|
is similar to the directory clause in
|
||||||
|
<code class="filename">named.conf</code>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-D</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Dump zone file in canonical format.
|
||||||
|
This is always enabled for <span><strong class="command">named-compilezone</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-W <em class="replaceable"><code>mode</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specify whether to check for non-terminal wildcards.
|
||||||
|
Non-terminal wildcards are almost always the result of a
|
||||||
|
failure to understand the wildcard matching algorithm (RFC 1034).
|
||||||
|
Possible modes are <span><strong class="command">"warn"</strong></span> (default)
|
||||||
|
and
|
||||||
|
<span><strong class="command">"ignore"</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">zonename</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
The domain name of the zone being checked.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">filename</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
The name of the zone file.
|
||||||
|
</p></dd>
|
||||||
|
</dl></div>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2544710"></a><h2>RETURN VALUES</h2>
|
||||||
|
<p><span><strong class="command">named-checkzone</strong></span>
|
||||||
|
returns an exit status of 1 if
|
||||||
|
errors were detected and 0 otherwise.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2544722"></a><h2>SEE ALSO</h2>
|
||||||
|
<p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
|
||||||
|
<span class="citerefentry"><span class="refentrytitle">named-checkconf</span>(8)</span>,
|
||||||
|
<em class="citetitle">RFC 1035</em>,
|
||||||
|
<em class="citetitle">BIND 9 Administrator Reference Manual</em>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2544755"></a><h2>AUTHOR</h2>
|
||||||
|
<p><span class="corpauthor">Internet Systems Consortium</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div></body>
|
||||||
|
</html>
|
||||||
107
external/bsd/bind/dist/bin/check/win32/checkconf.dsp.in
vendored
Normal file
107
external/bsd/bind/dist/bin/check/win32/checkconf.dsp.in
vendored
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
# Microsoft Developer Studio Project File - Name="checkconf" - Package Owner=<4>
|
||||||
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
|
# TARGTYPE "@PLATFORM@ (x86) Console Application" 0x0103
|
||||||
|
|
||||||
|
CFG=checkconf - @PLATFORM@ Debug
|
||||||
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
|
!MESSAGE use the Export Makefile command and run
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "checkconf.mak".
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "checkconf.mak" CFG="checkconf - @PLATFORM@ Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "checkconf - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
|
||||||
|
!MESSAGE "checkconf - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
|
||||||
|
!MESSAGE
|
||||||
|
|
||||||
|
# Begin Project
|
||||||
|
# PROP AllowPerConfigDependencies 0
|
||||||
|
# PROP Scc_ProjName ""
|
||||||
|
# PROP Scc_LocalPath ""
|
||||||
|
CPP=cl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkconf - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "Release"
|
||||||
|
# PROP BASE Intermediate_Dir "Release"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "Release"
|
||||||
|
# PROP Intermediate_Dir "Release"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
|
||||||
|
# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/dns/include" /I "../../../lib/bind9/include" /I "../../../lib/isccfg/include" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__STDC__" /FR @COPTY@ /FD /c
|
||||||
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||||
|
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console @MACHINE@
|
||||||
|
# ADD LINK32 user32.lib advapi32.lib ws2_32.lib Release/checktool.lib ../../../lib/isc/win32/Release/libisc.lib ../../../lib/dns/win32/Release/libdns.lib ../../../lib/isccfg/win32/Release/libisccfg.lib ../../../lib/bind9/win32/Release/libbind9.lib /nologo /subsystem:console @MACHINE@ /out:"../../../Build/Release/named-checkconf.exe"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkconf - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "Debug"
|
||||||
|
# PROP BASE Intermediate_Dir "Debug"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "Debug"
|
||||||
|
# PROP Intermediate_Dir "Debug"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /GZ /c
|
||||||
|
# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/dns/include" /I "../../../lib/bind9/include" /I "../../../lib/isccfg/include" /D "_DEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
|
||||||
|
# SUBTRACT CPP /X @COPTY@
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug @MACHINE@ /pdbtype:sept
|
||||||
|
# ADD LINK32 user32.lib advapi32.lib ws2_32.lib Debug/checktool.lib ../../../lib/isc/win32/Debug/libisc.lib ../../../lib/dns/win32/Debug/libdns.lib ../../../lib/isccfg/win32/Debug/libisccfg.lib ../../../lib/bind9/win32/Debug/libbind9.lib ../../../lib/bind9/win32/Debug/libbind9.lib /nologo /subsystem:console /debug @MACHINE@ /out:"../../../Build/Debug/named-checkconf.exe" /pdbtype:sept
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# Begin Target
|
||||||
|
|
||||||
|
# Name "checkconf - @PLATFORM@ Release"
|
||||||
|
# Name "checkconf - @PLATFORM@ Debug"
|
||||||
|
# Begin Group "Source Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE="..\named-checkconf.c"
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Header Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE="..\check-tool.h"
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Resource Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||||
|
# End Group
|
||||||
|
# End Target
|
||||||
|
# End Project
|
||||||
29
external/bsd/bind/dist/bin/check/win32/checkconf.dsw
vendored
Normal file
29
external/bsd/bind/dist/bin/check/win32/checkconf.dsw
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||||
|
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Project: "checkconf"=".\checkconf.dsp" - Package Owner=<4>
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<4>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Global:
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<3>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
404
external/bsd/bind/dist/bin/check/win32/checkconf.mak.in
vendored
Normal file
404
external/bsd/bind/dist/bin/check/win32/checkconf.mak.in
vendored
Normal file
|
|
@ -0,0 +1,404 @@
|
||||||
|
# Microsoft Developer Studio Generated NMAKE File, Based on checkconf.dsp
|
||||||
|
!IF "$(CFG)" == ""
|
||||||
|
CFG=checkconf - @PLATFORM@ Debug
|
||||||
|
!MESSAGE No configuration specified. Defaulting to checkconf - @PLATFORM@ Debug.
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(CFG)" != "checkconf - @PLATFORM@ Release" && "$(CFG)" != "checkconf - @PLATFORM@ Debug"
|
||||||
|
!MESSAGE Invalid configuration "$(CFG)" specified.
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "checkconf.mak" CFG="checkconf - @PLATFORM@ Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "checkconf - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
|
||||||
|
!MESSAGE "checkconf - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
|
||||||
|
!MESSAGE
|
||||||
|
!ERROR An invalid configuration is specified.
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(OS)" == "Windows_NT"
|
||||||
|
NULL=
|
||||||
|
!ELSE
|
||||||
|
NULL=nul
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
CPP=cl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkconf - @PLATFORM@ Release"
|
||||||
|
_VC_MANIFEST_INC=0
|
||||||
|
_VC_MANIFEST_BASENAME=__VC80
|
||||||
|
!ELSE
|
||||||
|
_VC_MANIFEST_INC=1
|
||||||
|
_VC_MANIFEST_BASENAME=__VC80.Debug
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# Specifying name of temporary resource file used only in incremental builds:
|
||||||
|
|
||||||
|
!if "$(_VC_MANIFEST_INC)" == "1"
|
||||||
|
_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
|
||||||
|
!else
|
||||||
|
_VC_MANIFEST_AUTO_RES=
|
||||||
|
!endif
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
|
||||||
|
|
||||||
|
!if "$(_VC_MANIFEST_INC)" == "1"
|
||||||
|
|
||||||
|
#MT_SPECIAL_RETURN=1090650113
|
||||||
|
#MT_SPECIAL_SWITCH=-notify_resource_update
|
||||||
|
MT_SPECIAL_RETURN=0
|
||||||
|
MT_SPECIAL_SWITCH=
|
||||||
|
_VC_MANIFEST_EMBED_EXE= \
|
||||||
|
if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
|
||||||
|
if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
|
||||||
|
rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
|
||||||
|
link $** /out:$@ $(LFLAGS)
|
||||||
|
|
||||||
|
!else
|
||||||
|
|
||||||
|
_VC_MANIFEST_EMBED_EXE= \
|
||||||
|
if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
|
||||||
|
|
||||||
|
!endif
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
|
||||||
|
|
||||||
|
!if "$(_VC_MANIFEST_INC)" == "1"
|
||||||
|
|
||||||
|
#MT_SPECIAL_RETURN=1090650113
|
||||||
|
#MT_SPECIAL_SWITCH=-notify_resource_update
|
||||||
|
MT_SPECIAL_RETURN=0
|
||||||
|
MT_SPECIAL_SWITCH=
|
||||||
|
_VC_MANIFEST_EMBED_EXE= \
|
||||||
|
if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
|
||||||
|
if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
|
||||||
|
rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
|
||||||
|
link $** /out:$@ $(LFLAGS)
|
||||||
|
|
||||||
|
!else
|
||||||
|
|
||||||
|
_VC_MANIFEST_EMBED_EXE= \
|
||||||
|
if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
|
||||||
|
|
||||||
|
!endif
|
||||||
|
####################################################
|
||||||
|
# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
|
||||||
|
|
||||||
|
!if "$(_VC_MANIFEST_INC)" == "1"
|
||||||
|
|
||||||
|
_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.rc \
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.manifest
|
||||||
|
|
||||||
|
!else
|
||||||
|
|
||||||
|
_VC_MANIFEST_CLEAN=
|
||||||
|
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkconf - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
OUTDIR=.\Release
|
||||||
|
INTDIR=.\Release
|
||||||
|
# Begin Custom Macros
|
||||||
|
OutDir=.\Release
|
||||||
|
# End Custom Macros
|
||||||
|
|
||||||
|
!IF "$(RECURSE)" == "0"
|
||||||
|
|
||||||
|
ALL : "..\..\..\Build\Release\named-checkconf.exe" "$(OUTDIR)\checkconf.bsc"
|
||||||
|
|
||||||
|
!ELSE
|
||||||
|
|
||||||
|
ALL : "libdns - @PLATFORM@ Release" "libisccfg - @PLATFORM@ Release" "libisc - @PLATFORM@ Release" "..\..\..\Build\Release\named-checkconf.exe" "$(OUTDIR)\checkconf.bsc"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(RECURSE)" == "1"
|
||||||
|
CLEAN :"libisc - @PLATFORM@ ReleaseCLEAN" "libisccfg - @PLATFORM@ ReleaseCLEAN" "libdns - @PLATFORM@ ReleaseCLEAN"
|
||||||
|
!ELSE
|
||||||
|
CLEAN :
|
||||||
|
!ENDIF
|
||||||
|
-@erase "$(INTDIR)\check-tool.obj"
|
||||||
|
-@erase "$(INTDIR)\check-tool.sbr"
|
||||||
|
-@erase "$(INTDIR)\named-checkconf.obj"
|
||||||
|
-@erase "$(INTDIR)\named-checkconf.sbr"
|
||||||
|
-@erase "$(INTDIR)\vc60.idb"
|
||||||
|
-@erase "$(OUTDIR)\checkconf.bsc"
|
||||||
|
-@erase "..\..\..\Build\Release\named-checkconf.exe"
|
||||||
|
-@$(_VC_MANIFEST_CLEAN)
|
||||||
|
|
||||||
|
"$(OUTDIR)" :
|
||||||
|
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||||
|
|
||||||
|
CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/dns/include" /I "../../../lib/bind9/include" /I "../../../lib/isccfg/include" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__STDC__" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\checkconf.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
BSC32_FLAGS=/nologo /o"$(OUTDIR)\checkconf.bsc"
|
||||||
|
BSC32_SBRS= \
|
||||||
|
"$(INTDIR)\check-tool.sbr" \
|
||||||
|
"$(INTDIR)\named-checkconf.sbr"
|
||||||
|
|
||||||
|
"$(OUTDIR)\checkconf.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
|
||||||
|
$(BSC32) @<<
|
||||||
|
$(BSC32_FLAGS) $(BSC32_SBRS)
|
||||||
|
<<
|
||||||
|
|
||||||
|
LINK32=link.exe
|
||||||
|
LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../../lib/isc/win32/Release/libisc.lib ../../../lib/dns/win32/Release/libdns.lib ../../../lib/isccfg/win32/Release/libisccfg.lib ../../../lib/bind9/win32/Release/libbind9.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\named-checkconf.pdb" @MACHINE@ /out:"../../../Build/Release/named-checkconf.exe"
|
||||||
|
LINK32_OBJS= \
|
||||||
|
"$(INTDIR)\check-tool.obj" \
|
||||||
|
"$(INTDIR)\named-checkconf.obj" \
|
||||||
|
"..\..\..\lib\isc\win32\Release\libisc.lib" \
|
||||||
|
"..\..\..\lib\isccfg\win32\Release\libisccfg.lib" \
|
||||||
|
"..\..\..\lib\dns\win32\Release\libdns.lib"
|
||||||
|
|
||||||
|
"..\..\..\Build\Release\named-checkconf.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||||
|
$(LINK32) @<<
|
||||||
|
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||||
|
<<
|
||||||
|
$(_VC_MANIFEST_EMBED_EXE)
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkconf - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
OUTDIR=.\Debug
|
||||||
|
INTDIR=.\Debug
|
||||||
|
# Begin Custom Macros
|
||||||
|
OutDir=.\Debug
|
||||||
|
# End Custom Macros
|
||||||
|
|
||||||
|
!IF "$(RECURSE)" == "0"
|
||||||
|
|
||||||
|
ALL : "..\..\..\Build\Debug\named-checkconf.exe" "$(OUTDIR)\checkconf.bsc"
|
||||||
|
|
||||||
|
!ELSE
|
||||||
|
|
||||||
|
ALL : "libdns - @PLATFORM@ Debug" "libisccfg - @PLATFORM@ Debug" "libisc - @PLATFORM@ Debug" "..\..\..\Build\Debug\named-checkconf.exe" "$(OUTDIR)\checkconf.bsc"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(RECURSE)" == "1"
|
||||||
|
CLEAN :"libisc - @PLATFORM@ DebugCLEAN" "libisccfg - @PLATFORM@ DebugCLEAN" "libdns - @PLATFORM@ DebugCLEAN"
|
||||||
|
!ELSE
|
||||||
|
CLEAN :
|
||||||
|
!ENDIF
|
||||||
|
-@erase "$(INTDIR)\check-tool.obj"
|
||||||
|
-@erase "$(INTDIR)\check-tool.sbr"
|
||||||
|
-@erase "$(INTDIR)\named-checkconf.obj"
|
||||||
|
-@erase "$(INTDIR)\named-checkconf.sbr"
|
||||||
|
-@erase "$(INTDIR)\vc60.idb"
|
||||||
|
-@erase "$(INTDIR)\vc60.pdb"
|
||||||
|
-@erase "$(OUTDIR)\named-checkconf.pdb"
|
||||||
|
-@erase "$(OUTDIR)\checkconf.bsc"
|
||||||
|
-@erase "..\..\..\Build\Debug\named-checkconf.exe"
|
||||||
|
-@erase "..\..\..\Build\Debug\named-checkconf.ilk"
|
||||||
|
-@$(_VC_MANIFEST_CLEAN)
|
||||||
|
|
||||||
|
"$(OUTDIR)" :
|
||||||
|
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||||
|
|
||||||
|
CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/dns/include" /I "../../../lib/bind9/include" /I "../../../lib/isccfg/include" /D "_DEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
BSC32_FLAGS=/nologo /o"$(OUTDIR)\checkconf.bsc"
|
||||||
|
BSC32_SBRS= \
|
||||||
|
"$(INTDIR)\check-tool.sbr" \
|
||||||
|
"$(INTDIR)\named-checkconf.sbr"
|
||||||
|
|
||||||
|
"$(OUTDIR)\checkconf.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
|
||||||
|
$(BSC32) @<<
|
||||||
|
$(BSC32_FLAGS) $(BSC32_SBRS)
|
||||||
|
<<
|
||||||
|
|
||||||
|
LINK32=link.exe
|
||||||
|
LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../../lib/isc/win32/Debug/libisc.lib ../../../lib/dns/win32/Debug/libdns.lib ../../../lib/isccfg/win32/Debug/libisccfg.lib ../../../lib/bind9/win32/Debug/libbind9.lib ../../../lib/bind9/win32/Debug/libbind9.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\named-checkconf.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/named-checkconf.exe" /pdbtype:sept
|
||||||
|
LINK32_OBJS= \
|
||||||
|
"$(INTDIR)\check-tool.obj" \
|
||||||
|
"$(INTDIR)\named-checkconf.obj" \
|
||||||
|
"..\..\..\lib\isc\win32\Debug\libisc.lib" \
|
||||||
|
"..\..\..\lib\isccfg\win32\Debug\libisccfg.lib" \
|
||||||
|
"..\..\..\lib\dns\win32\Debug\libdns.lib"
|
||||||
|
|
||||||
|
"..\..\..\Build\Debug\named-checkconf.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||||
|
$(LINK32) @<<
|
||||||
|
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||||
|
<<
|
||||||
|
$(_VC_MANIFEST_EMBED_EXE)
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
.c{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cpp{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cxx{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.c{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cpp{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cxx{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
|
||||||
|
!IF "$(NO_EXTERNAL_DEPS)" != "1"
|
||||||
|
!IF EXISTS("checkconf.dep")
|
||||||
|
!INCLUDE "checkconf.dep"
|
||||||
|
!ELSE
|
||||||
|
!MESSAGE Warning: cannot find "checkconf.dep"
|
||||||
|
!ENDIF
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkconf - @PLATFORM@ Release" || "$(CFG)" == "checkconf - @PLATFORM@ Debug"
|
||||||
|
SOURCE="..\check-tool.c"
|
||||||
|
|
||||||
|
"$(INTDIR)\check-tool.obj" "$(INTDIR)\check-tool.sbr" : $(SOURCE) "$(INTDIR)"
|
||||||
|
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||||
|
|
||||||
|
|
||||||
|
SOURCE="..\named-checkconf.c"
|
||||||
|
|
||||||
|
"$(INTDIR)\named-checkconf.obj" "$(INTDIR)\named-checkconf.sbr" : $(SOURCE) "$(INTDIR)"
|
||||||
|
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||||
|
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkconf - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
"libisc - @PLATFORM@ Release" :
|
||||||
|
cd "..\..\..\lib\isc\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libisc - @PLATFORM@ ReleaseCLEAN" :
|
||||||
|
cd "..\..\..\lib\isc\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkconf - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
"libisc - @PLATFORM@ Debug" :
|
||||||
|
cd "..\..\..\lib\isc\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libisc - @PLATFORM@ DebugCLEAN" :
|
||||||
|
cd "..\..\..\lib\isc\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkconf - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
"libisccfg - @PLATFORM@ Release" :
|
||||||
|
cd "..\..\..\lib\isccfg\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libisccfg - @PLATFORM@ ReleaseCLEAN" :
|
||||||
|
cd "..\..\..\lib\isccfg\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkconf - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
"libisccfg - @PLATFORM@ Debug" :
|
||||||
|
cd "..\..\..\lib\isccfg\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libisccfg - @PLATFORM@ DebugCLEAN" :
|
||||||
|
cd "..\..\..\lib\isccfg\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkconf - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
"libdns - @PLATFORM@ Release" :
|
||||||
|
cd "..\..\..\lib\dns\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libdns - @PLATFORM@ ReleaseCLEAN" :
|
||||||
|
cd "..\..\..\lib\dns\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkconf - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
"libdns - @PLATFORM@ Debug" :
|
||||||
|
cd "..\..\..\lib\dns\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libdns - @PLATFORM@ DebugCLEAN" :
|
||||||
|
cd "..\..\..\lib\dns\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# Commands to generate initial empty manifest file and the RC file
|
||||||
|
# that references it, and for generating the .res file:
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
|
||||||
|
type <<$@
|
||||||
|
#include <winuser.h>
|
||||||
|
1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
|
||||||
|
<< KEEP
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.manifest :
|
||||||
|
type <<$@
|
||||||
|
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||||
|
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
|
||||||
|
</assembly>
|
||||||
|
<< KEEP
|
||||||
|
####################################################
|
||||||
|
# Commands to generate initial empty manifest file and the RC file
|
||||||
|
# that references it, and for generating the .res file:
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
|
||||||
|
type <<$@
|
||||||
|
#include <winuser.h>
|
||||||
|
1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
|
||||||
|
<< KEEP
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.manifest :
|
||||||
|
type <<$@
|
||||||
|
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||||
|
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
|
||||||
|
</assembly>
|
||||||
|
<< KEEP
|
||||||
27
external/bsd/bind/dist/bin/check/win32/checkconf.vcxproj.filters.in
vendored
Normal file
27
external/bsd/bind/dist/bin/check/win32/checkconf.vcxproj.filters.in
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\check-tool.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\named-checkconf.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
113
external/bsd/bind/dist/bin/check/win32/checkconf.vcxproj.in
vendored
Normal file
113
external/bsd/bind/dist/bin/check/win32/checkconf.vcxproj.in
vendored
Normal file
|
|
@ -0,0 +1,113 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|@PLATFORM@">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>@PLATFORM@</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|@PLATFORM@">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>@PLATFORM@</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{03A96113-CB14-43AA-AEB2-48950E3915C5}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>checkconf</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<OutDir>..\..\..\Build\$(Configuration)\</OutDir>
|
||||||
|
<IntDir>.\$(Configuration)\</IntDir>
|
||||||
|
<TargetName>named-$(ProjectName)</TargetName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<OutDir>..\..\..\Build\$(Configuration)\</OutDir>
|
||||||
|
<IntDir>.\$(Configuration)\</IntDir>
|
||||||
|
<TargetName>named-$(ProjectName)</TargetName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||||
|
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(ProjectName).pch</PrecompiledHeaderOutputFile>
|
||||||
|
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||||
|
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||||
|
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
|
<BrowseInformation>true</BrowseInformation>
|
||||||
|
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\dns\include;..\..\..\lib\bind9\include;..\..\..\lib\isccfg\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||||
|
<AdditionalLibraryDirectories>$(Configuration);..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\lib\isccc\win32\$(Configuration);..\..\..\lib\bind9\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>checktool.lib;libisc.lib;libdns.lib;libisccfg.lib;libisccc.lib;libbind9.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||||
|
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(ProjectName).pch</PrecompiledHeaderOutputFile>
|
||||||
|
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||||
|
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||||
|
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
|
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\dns\include;..\..\..\lib\bind9\include;..\..\..\lib\isccfg\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||||
|
<AdditionalLibraryDirectories>$(Configuration);..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\lib\isccc\win32\$(Configuration);..\..\..\lib\bind9\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>checktool.lib;libisc.lib;libdns.lib;libisccfg.lib;libisccc.lib;libbind9.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\check-tool.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\named-checkconf.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
3
external/bsd/bind/dist/bin/check/win32/checkconf.vcxproj.user
vendored
Normal file
3
external/bsd/bind/dist/bin/check/win32/checkconf.vcxproj.user
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
</Project>
|
||||||
113
external/bsd/bind/dist/bin/check/win32/checktool.dsp.in
vendored
Normal file
113
external/bsd/bind/dist/bin/check/win32/checktool.dsp.in
vendored
Normal file
|
|
@ -0,0 +1,113 @@
|
||||||
|
# Microsoft Developer Studio Project File - Name="checktool" - Package Owner=<4>
|
||||||
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
|
# TARGTYPE "@PLATFORM@ (x86) Static-Link Library" 0x0104
|
||||||
|
|
||||||
|
CFG=checktool - @PLATFORM@ Debug
|
||||||
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
|
!MESSAGE use the Export Makefile command and run
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "checktool.mak".
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "checktool.mak" CFG="checktool - @PLATFORM@ Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "checktool - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Static-Link Library")
|
||||||
|
!MESSAGE "checktool - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Static-Link Library")
|
||||||
|
!MESSAGE
|
||||||
|
|
||||||
|
# Begin Project
|
||||||
|
# PROP AllowPerConfigDependencies 0
|
||||||
|
# PROP Scc_ProjName ""
|
||||||
|
# PROP Scc_LocalPath ""
|
||||||
|
CPP=cl.exe
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checktool - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "Release"
|
||||||
|
# PROP BASE Intermediate_Dir "Release"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "Release"
|
||||||
|
# PROP Intermediate_Dir "Release"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /MT /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" @COPTY@ /FD /c
|
||||||
|
# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__STDC__" /D "_MBCS" @COPTY@ /FD /c /Fdchecktool
|
||||||
|
# SUBTRACT CPP /X
|
||||||
|
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||||
|
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32
|
||||||
|
# ADD LINK32 /out:"Release/checktool.lib"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checktool - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "Debug"
|
||||||
|
# PROP BASE Intermediate_Dir "Debug"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "Debug"
|
||||||
|
# PROP Intermediate_Dir "Debug"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /MTd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" @COPTY@ /FD /GZ /c
|
||||||
|
# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "__STDC__" /D "_MBCS" /FR @COPTY@ /FD /GZ /c /Fdchecktool
|
||||||
|
# SUBTRACT CPP /X
|
||||||
|
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32
|
||||||
|
# ADD LINK32 /debug out:"Debug/checktool.lib"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# Begin Target
|
||||||
|
|
||||||
|
# Name "checktool - @PLATFORM@ Release"
|
||||||
|
# Name "checktool - @PLATFORM@ Debug"
|
||||||
|
# Begin Group "Source Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Header Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Resource Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Main Dns Lib"
|
||||||
|
|
||||||
|
# PROP Default_Filter "c"
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\check-tool.c
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# End Target
|
||||||
|
# End Project
|
||||||
29
external/bsd/bind/dist/bin/check/win32/checktool.dsw
vendored
Normal file
29
external/bsd/bind/dist/bin/check/win32/checktool.dsw
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||||
|
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Project: "checktool"=".\checktool.dsp" - Package Owner=<4>
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<4>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Global:
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<3>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
18
external/bsd/bind/dist/bin/check/win32/checktool.vcxproj.filters.in
vendored
Normal file
18
external/bsd/bind/dist/bin/check/win32/checktool.vcxproj.filters.in
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\check-tool.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
99
external/bsd/bind/dist/bin/check/win32/checktool.vcxproj.in
vendored
Normal file
99
external/bsd/bind/dist/bin/check/win32/checktool.vcxproj.in
vendored
Normal file
|
|
@ -0,0 +1,99 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|@PLATFORM@">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>@PLATFORM@</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|@PLATFORM@">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>@PLATFORM@</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\check-tool.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{2C1F7096-C5B5-48D4-846F-A7ACA454335D}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>checktool</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<OutDir>.\$(Configuration)\</OutDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<IntDir>.\$(Configuration)\</IntDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<OutDir>.\$(Configuration)\</OutDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<IntDir>.\$(Configuration)\</IntDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||||
|
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||||
|
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||||
|
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||||
|
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
|
<BrowseInformation>true</BrowseInformation>
|
||||||
|
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\include;..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\isccfg\include;..\..\..\lib\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<OutputFile>.\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||||
|
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||||
|
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||||
|
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||||
|
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
|
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\include;..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\isccfg\include;..\..\..\lib\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<OutputFile>.\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
3
external/bsd/bind/dist/bin/check/win32/checktool.vcxproj.user
vendored
Normal file
3
external/bsd/bind/dist/bin/check/win32/checktool.vcxproj.user
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
</Project>
|
||||||
108
external/bsd/bind/dist/bin/check/win32/checkzone.dsp.in
vendored
Normal file
108
external/bsd/bind/dist/bin/check/win32/checkzone.dsp.in
vendored
Normal file
|
|
@ -0,0 +1,108 @@
|
||||||
|
# Microsoft Developer Studio Project File - Name="checkzone" - Package Owner=<4>
|
||||||
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
|
# TARGTYPE "@PLATFORM@ (x86) Console Application" 0x0103
|
||||||
|
|
||||||
|
CFG=checkzone - @PLATFORM@ Debug
|
||||||
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
|
!MESSAGE use the Export Makefile command and run
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "checkzone.mak".
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "checkzone.mak" CFG="checkzone - @PLATFORM@ Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "checkzone - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
|
||||||
|
!MESSAGE "checkzone - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
|
||||||
|
!MESSAGE
|
||||||
|
|
||||||
|
# Begin Project
|
||||||
|
# PROP AllowPerConfigDependencies 0
|
||||||
|
# PROP Scc_ProjName ""
|
||||||
|
# PROP Scc_LocalPath ""
|
||||||
|
CPP=cl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkzone - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "Release"
|
||||||
|
# PROP BASE Intermediate_Dir "Release"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "Release"
|
||||||
|
# PROP Intermediate_Dir "Release"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
|
||||||
|
# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/dns/include" /I "../../../lib/isccfg/include" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__STDC__" @COPTY@ /FD /c
|
||||||
|
# SUBTRACT CPP /Fr
|
||||||
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||||
|
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console @MACHINE@
|
||||||
|
# ADD LINK32 user32.lib advapi32.lib ws2_32.lib Release/checktool.lib ../../../lib/isc/win32/Release/libisc.lib ../../../lib/isccfg/win32/Release/libisccfg.lib ../../../lib/dns/win32/Release/libdns.lib /nologo /subsystem:console @MACHINE@ /out:"../../../Build/Release/named-checkzone.exe"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkzone - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "Debug"
|
||||||
|
# PROP BASE Intermediate_Dir "Debug"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "Debug"
|
||||||
|
# PROP Intermediate_Dir "Debug"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /GZ /c
|
||||||
|
# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/dns/include" /I "../../../lib/isccfg/include" /D "_DEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
|
||||||
|
# SUBTRACT CPP /X @COPTY@
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug @MACHINE@ /pdbtype:sept
|
||||||
|
# ADD LINK32 user32.lib advapi32.lib ws2_32.lib Debug/checktool.lib ../../../lib/isc/win32/Debug/libisc.lib ../../../lib/isccfg/win32/Debug/libisccfg.lib ../../../lib/dns/win32/Debug/libdns.lib /nologo /subsystem:console /debug @MACHINE@ /out:"../../../Build/Debug/named-checkzone.exe" /pdbtype:sept
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# Begin Target
|
||||||
|
|
||||||
|
# Name "checkzone - @PLATFORM@ Release"
|
||||||
|
# Name "checkzone - @PLATFORM@ Debug"
|
||||||
|
# Begin Group "Source Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE="..\named-checkzone.c"
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Header Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE="..\check-tool.h"
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Resource Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||||
|
# End Group
|
||||||
|
# End Target
|
||||||
|
# End Project
|
||||||
29
external/bsd/bind/dist/bin/check/win32/checkzone.dsw
vendored
Normal file
29
external/bsd/bind/dist/bin/check/win32/checkzone.dsw
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||||
|
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Project: "checkzone"=".\checkzone.dsp" - Package Owner=<4>
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<4>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Global:
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<3>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
404
external/bsd/bind/dist/bin/check/win32/checkzone.mak.in
vendored
Normal file
404
external/bsd/bind/dist/bin/check/win32/checkzone.mak.in
vendored
Normal file
|
|
@ -0,0 +1,404 @@
|
||||||
|
# Microsoft Developer Studio Generated NMAKE File, Based on checkzone.dsp
|
||||||
|
!IF "$(CFG)" == ""
|
||||||
|
CFG=checkzone - @PLATFORM@ Debug
|
||||||
|
!MESSAGE No configuration specified. Defaulting to checkzone - @PLATFORM@ Debug.
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(CFG)" != "checkzone - @PLATFORM@ Release" && "$(CFG)" != "checkzone - @PLATFORM@ Debug"
|
||||||
|
!MESSAGE Invalid configuration "$(CFG)" specified.
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "checkzone.mak" CFG="checkzone - @PLATFORM@ Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "checkzone - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
|
||||||
|
!MESSAGE "checkzone - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
|
||||||
|
!MESSAGE
|
||||||
|
!ERROR An invalid configuration is specified.
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(OS)" == "Windows_NT"
|
||||||
|
NULL=
|
||||||
|
!ELSE
|
||||||
|
NULL=nul
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkzone - @PLATFORM@ Release"
|
||||||
|
_VC_MANIFEST_INC=0
|
||||||
|
_VC_MANIFEST_BASENAME=__VC80
|
||||||
|
!ELSE
|
||||||
|
_VC_MANIFEST_INC=1
|
||||||
|
_VC_MANIFEST_BASENAME=__VC80.Debug
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# Specifying name of temporary resource file used only in incremental builds:
|
||||||
|
|
||||||
|
!if "$(_VC_MANIFEST_INC)" == "1"
|
||||||
|
_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
|
||||||
|
!else
|
||||||
|
_VC_MANIFEST_AUTO_RES=
|
||||||
|
!endif
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
|
||||||
|
|
||||||
|
!if "$(_VC_MANIFEST_INC)" == "1"
|
||||||
|
|
||||||
|
#MT_SPECIAL_RETURN=1090650113
|
||||||
|
#MT_SPECIAL_SWITCH=-notify_resource_update
|
||||||
|
MT_SPECIAL_RETURN=0
|
||||||
|
MT_SPECIAL_SWITCH=
|
||||||
|
_VC_MANIFEST_EMBED_EXE= \
|
||||||
|
if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
|
||||||
|
if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
|
||||||
|
rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
|
||||||
|
link $** /out:$@ $(LFLAGS)
|
||||||
|
|
||||||
|
!else
|
||||||
|
|
||||||
|
_VC_MANIFEST_EMBED_EXE= \
|
||||||
|
if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
|
||||||
|
|
||||||
|
!endif
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
|
||||||
|
|
||||||
|
!if "$(_VC_MANIFEST_INC)" == "1"
|
||||||
|
|
||||||
|
#MT_SPECIAL_RETURN=1090650113
|
||||||
|
#MT_SPECIAL_SWITCH=-notify_resource_update
|
||||||
|
MT_SPECIAL_RETURN=0
|
||||||
|
MT_SPECIAL_SWITCH=
|
||||||
|
_VC_MANIFEST_EMBED_EXE= \
|
||||||
|
if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
|
||||||
|
if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
|
||||||
|
rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
|
||||||
|
link $** /out:$@ $(LFLAGS)
|
||||||
|
|
||||||
|
!else
|
||||||
|
|
||||||
|
_VC_MANIFEST_EMBED_EXE= \
|
||||||
|
if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
|
||||||
|
|
||||||
|
!endif
|
||||||
|
####################################################
|
||||||
|
# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
|
||||||
|
|
||||||
|
!if "$(_VC_MANIFEST_INC)" == "1"
|
||||||
|
|
||||||
|
_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.rc \
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.manifest
|
||||||
|
|
||||||
|
!else
|
||||||
|
|
||||||
|
_VC_MANIFEST_CLEAN=
|
||||||
|
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkzone - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
OUTDIR=.\Release
|
||||||
|
INTDIR=.\Release
|
||||||
|
|
||||||
|
!IF "$(RECURSE)" == "0"
|
||||||
|
|
||||||
|
ALL : "..\..\..\Build\Release\named-checkzone.exe"
|
||||||
|
|
||||||
|
!ELSE
|
||||||
|
|
||||||
|
ALL : "libisc - @PLATFORM@ Release" "libdns - @PLATFORM@ Release" "..\..\..\Build\Release\named-checkzone.exe"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(RECURSE)" == "1"
|
||||||
|
CLEAN :"libdns - @PLATFORM@ ReleaseCLEAN" "libisc - @PLATFORM@ ReleaseCLEAN"
|
||||||
|
!ELSE
|
||||||
|
CLEAN :
|
||||||
|
!ENDIF
|
||||||
|
-@erase "$(INTDIR)\check-tool.obj"
|
||||||
|
-@erase "$(INTDIR)\named-checkzone.obj"
|
||||||
|
-@erase "$(INTDIR)\vc60.idb"
|
||||||
|
-@erase "..\..\..\Build\Release\named-checkzone.exe"
|
||||||
|
-@$(_VC_MANIFEST_CLEAN)
|
||||||
|
|
||||||
|
"$(OUTDIR)" :
|
||||||
|
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||||
|
|
||||||
|
CPP=cl.exe
|
||||||
|
CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/dns/include" /I "../../../lib/isccfg/include" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__STDC__" /Fp"$(INTDIR)\checkzone.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||||
|
|
||||||
|
.c{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cpp{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cxx{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.c{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cpp{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cxx{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
RSC=rc.exe
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
BSC32_FLAGS=/nologo /o"$(OUTDIR)\checkzone.bsc"
|
||||||
|
BSC32_SBRS= \
|
||||||
|
|
||||||
|
LINK32=link.exe
|
||||||
|
LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../../lib/isc/win32/Release/libisc.lib ../../../lib/isccfg/win32/Release/libisccfg.lib ../../../lib/dns/win32/Release/libdns.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\named-checkzone.pdb" @MACHINE@ /out:"../../../Build/Release/named-checkzone.exe"
|
||||||
|
LINK32_OBJS= \
|
||||||
|
"$(INTDIR)\check-tool.obj" \
|
||||||
|
"$(INTDIR)\named-checkzone.obj" \
|
||||||
|
"..\..\..\lib\dns\win32\Release\libdns.lib" \
|
||||||
|
"..\..\..\lib\isccfg\win32\Release\libisccfg.lib" \
|
||||||
|
"..\..\..\lib\isc\win32\Release\libisc.lib"
|
||||||
|
|
||||||
|
"..\..\..\Build\Release\named-checkzone.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||||
|
$(LINK32) @<<
|
||||||
|
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||||
|
<<
|
||||||
|
$(_VC_MANIFEST_EMBED_EXE)
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkzone - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
OUTDIR=.\Debug
|
||||||
|
INTDIR=.\Debug
|
||||||
|
# Begin Custom Macros
|
||||||
|
OutDir=.\Debug
|
||||||
|
# End Custom Macros
|
||||||
|
|
||||||
|
!IF "$(RECURSE)" == "0"
|
||||||
|
|
||||||
|
ALL : "..\..\..\Build\Debug\named-checkzone.exe" "$(OUTDIR)\checkzone.bsc"
|
||||||
|
|
||||||
|
!ELSE
|
||||||
|
|
||||||
|
ALL : "libisc - @PLATFORM@ Debug" "libdns - @PLATFORM@ Debug" "..\..\..\Build\Debug\named-checkzone.exe" "$(OUTDIR)\checkzone.bsc"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(RECURSE)" == "1"
|
||||||
|
CLEAN :"libdns - @PLATFORM@ DebugCLEAN" "libisc - @PLATFORM@ DebugCLEAN"
|
||||||
|
!ELSE
|
||||||
|
CLEAN :
|
||||||
|
!ENDIF
|
||||||
|
-@erase "$(INTDIR)\check-tool.obj"
|
||||||
|
-@erase "$(INTDIR)\check-tool.sbr"
|
||||||
|
-@erase "$(INTDIR)\named-checkzone.obj"
|
||||||
|
-@erase "$(INTDIR)\named-checkzone.sbr"
|
||||||
|
-@erase "$(INTDIR)\vc60.idb"
|
||||||
|
-@erase "$(INTDIR)\vc60.pdb"
|
||||||
|
-@erase "$(OUTDIR)\named-checkzone.pdb"
|
||||||
|
-@erase "$(OUTDIR)\checkzone.bsc"
|
||||||
|
-@erase "..\..\..\Build\Debug\named-checkzone.exe"
|
||||||
|
-@erase "..\..\..\Build\Debug\named-checkzone.ilk"
|
||||||
|
-@$(_VC_MANIFEST_CLEAN)
|
||||||
|
|
||||||
|
"$(OUTDIR)" :
|
||||||
|
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||||
|
|
||||||
|
CPP=cl.exe
|
||||||
|
CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /I "../../../lib/dns/include" /I "../../../lib/isccfg/include" /D "_DEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
|
||||||
|
|
||||||
|
.c{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cpp{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cxx{$(INTDIR)}.obj::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.c{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cpp{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
.cxx{$(INTDIR)}.sbr::
|
||||||
|
$(CPP) @<<
|
||||||
|
$(CPP_PROJ) $<
|
||||||
|
<<
|
||||||
|
|
||||||
|
RSC=rc.exe
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
BSC32_FLAGS=/nologo /o"$(OUTDIR)\checkzone.bsc"
|
||||||
|
BSC32_SBRS= \
|
||||||
|
"$(INTDIR)\check-tool.sbr" \
|
||||||
|
"$(INTDIR)\named-checkzone.sbr"
|
||||||
|
|
||||||
|
"$(OUTDIR)\checkzone.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
|
||||||
|
$(BSC32) @<<
|
||||||
|
$(BSC32_FLAGS) $(BSC32_SBRS)
|
||||||
|
<<
|
||||||
|
|
||||||
|
LINK32=link.exe
|
||||||
|
LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../../lib/isc/win32/Debug/libisc.lib ../../../lib/isccfg/win32/Debug/libisccfg.lib ../../../lib/dns/win32/Debug/libdns.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\named-checkzone.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/named-checkzone.exe" /pdbtype:sept
|
||||||
|
LINK32_OBJS= \
|
||||||
|
"$(INTDIR)\check-tool.obj" \
|
||||||
|
"$(INTDIR)\named-checkzone.obj" \
|
||||||
|
"..\..\..\lib\dns\win32\Debug\libdns.lib" \
|
||||||
|
"..\..\..\lib\isccfg\win32\Debug\libisccfg.lib" \
|
||||||
|
"..\..\..\lib\isc\win32\Debug\libisc.lib"
|
||||||
|
|
||||||
|
"..\..\..\Build\Debug\named-checkzone.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||||
|
$(LINK32) @<<
|
||||||
|
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||||
|
<<
|
||||||
|
$(_VC_MANIFEST_EMBED_EXE)
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
|
||||||
|
!IF "$(NO_EXTERNAL_DEPS)" != "1"
|
||||||
|
!IF EXISTS("checkzone.dep")
|
||||||
|
!INCLUDE "checkzone.dep"
|
||||||
|
!ELSE
|
||||||
|
!MESSAGE Warning: cannot find "checkzone.dep"
|
||||||
|
!ENDIF
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkzone - @PLATFORM@ Release" || "$(CFG)" == "checkzone - @PLATFORM@ Debug"
|
||||||
|
SOURCE="..\check-tool.c"
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkzone - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
|
||||||
|
"$(INTDIR)\check-tool.obj" : $(SOURCE) "$(INTDIR)"
|
||||||
|
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||||
|
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkzone - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
|
||||||
|
"$(INTDIR)\check-tool.obj" "$(INTDIR)\check-tool.sbr" : $(SOURCE) "$(INTDIR)"
|
||||||
|
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||||
|
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
SOURCE="..\named-checkzone.c"
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkzone - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
|
||||||
|
"$(INTDIR)\named-checkzone.obj" : $(SOURCE) "$(INTDIR)"
|
||||||
|
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||||
|
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkzone - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
|
||||||
|
"$(INTDIR)\named-checkzone.obj" "$(INTDIR)\named-checkzone.sbr" : $(SOURCE) "$(INTDIR)"
|
||||||
|
$(CPP) $(CPP_PROJ) $(SOURCE)
|
||||||
|
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkzone - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
"libdns - @PLATFORM@ Release" :
|
||||||
|
cd "..\..\..\lib\dns\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libdns - @PLATFORM@ ReleaseCLEAN" :
|
||||||
|
cd "..\..\..\lib\dns\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkzone - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
"libdns - @PLATFORM@ Debug" :
|
||||||
|
cd "..\..\..\lib\dns\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libdns - @PLATFORM@ DebugCLEAN" :
|
||||||
|
cd "..\..\..\lib\dns\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "checkzone - @PLATFORM@ Release"
|
||||||
|
|
||||||
|
"libisc - @PLATFORM@ Release" :
|
||||||
|
cd "..\..\..\lib\isc\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libisc - @PLATFORM@ ReleaseCLEAN" :
|
||||||
|
cd "..\..\..\lib\isc\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "checkzone - @PLATFORM@ Debug"
|
||||||
|
|
||||||
|
"libisc - @PLATFORM@ Debug" :
|
||||||
|
cd "..\..\..\lib\isc\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug"
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
"libisc - @PLATFORM@ DebugCLEAN" :
|
||||||
|
cd "..\..\..\lib\isc\win32"
|
||||||
|
$(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug" RECURSE=1 CLEAN
|
||||||
|
cd "..\..\..\bin\check\win32"
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# Commands to generate initial empty manifest file and the RC file
|
||||||
|
# that references it, and for generating the .res file:
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
|
||||||
|
type <<$@
|
||||||
|
#include <winuser.h>
|
||||||
|
1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
|
||||||
|
<< KEEP
|
||||||
|
|
||||||
|
$(_VC_MANIFEST_BASENAME).auto.manifest :
|
||||||
|
type <<$@
|
||||||
|
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||||
|
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
|
||||||
|
</assembly>
|
||||||
|
<< KEEP
|
||||||
27
external/bsd/bind/dist/bin/check/win32/checkzone.vcxproj.filters.in
vendored
Normal file
27
external/bsd/bind/dist/bin/check/win32/checkzone.vcxproj.filters.in
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\check-tool.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\named-checkzone.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
124
external/bsd/bind/dist/bin/check/win32/checkzone.vcxproj.in
vendored
Normal file
124
external/bsd/bind/dist/bin/check/win32/checkzone.vcxproj.in
vendored
Normal file
|
|
@ -0,0 +1,124 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|@PLATFORM@">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>@PLATFORM@</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|@PLATFORM@">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>@PLATFORM@</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{66028555-7DD5-4016-B601-9EF9A1EE8BFA}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>checkzone</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<OutDir>..\..\..\Build\$(Configuration)\</OutDir>
|
||||||
|
<IntDir>.\$(Configuration)\</IntDir>
|
||||||
|
<TargetName>named-$(ProjectName)</TargetName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<OutDir>..\..\..\Build\$(Configuration)\</OutDir>
|
||||||
|
<IntDir>.\$(Configuration)\</IntDir>
|
||||||
|
<TargetName>named-$(ProjectName)</TargetName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||||
|
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(ProjectName).pch</PrecompiledHeaderOutputFile>
|
||||||
|
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||||
|
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||||
|
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
|
<BrowseInformation>true</BrowseInformation>
|
||||||
|
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\dns\include;..\..\..\lib\bind9\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||||
|
<AdditionalLibraryDirectories>$(Configuration);..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\lib\bind9\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>checktool.lib;libisc.lib;libdns.lib;libisccfg.lib;libbind9.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>cd ..\..\..\Build\$(Configuration)
|
||||||
|
copy /Y named-checkzone.exe named-compilezone.exe
|
||||||
|
copy /Y named-checkzone.ilk named-compilezone.ilk
|
||||||
|
</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||||
|
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(ProjectName).pch</PrecompiledHeaderOutputFile>
|
||||||
|
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||||
|
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||||
|
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
|
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\dns\include;..\..\..\lib\bind9\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||||
|
<AdditionalLibraryDirectories>$(Configuration);..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\lib\bind9\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>checktool.lib;libisc.lib;libdns.lib;libisccfg.lib;libbind9.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>cd ..\..\..\Build\$(Configuration)
|
||||||
|
copy /Y named-checkzone.exe named-compilezone.exe
|
||||||
|
</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\check-tool.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\named-checkzone.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
3
external/bsd/bind/dist/bin/check/win32/checkzone.vcxproj.user
vendored
Normal file
3
external/bsd/bind/dist/bin/check/win32/checkzone.vcxproj.user
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
</Project>
|
||||||
108
external/bsd/bind/dist/bin/confgen/Makefile.in
vendored
Normal file
108
external/bsd/bind/dist/bin/confgen/Makefile.in
vendored
Normal file
|
|
@ -0,0 +1,108 @@
|
||||||
|
# Copyright (C) 2009, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
# copyright notice and this permission notice appear in all copies.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
# Id: Makefile.in,v 1.8 2009/12/05 23:31:40 each Exp
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
|
||||||
|
@BIND9_VERSION@
|
||||||
|
|
||||||
|
@BIND9_MAKE_INCLUDES@
|
||||||
|
|
||||||
|
CINCLUDES = -I${srcdir}/include ${ISC_INCLUDES} ${ISCCC_INCLUDES} \
|
||||||
|
${ISCCFG_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES}
|
||||||
|
|
||||||
|
CDEFINES =
|
||||||
|
CWARNINGS =
|
||||||
|
|
||||||
|
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
|
||||||
|
ISCCCLIBS = ../../lib/isccc/libisccc.@A@
|
||||||
|
ISCLIBS = ../../lib/isc/libisc.@A@
|
||||||
|
ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@
|
||||||
|
DNSLIBS = ../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
|
||||||
|
BIND9LIBS = ../../lib/bind9/libbind9.@A@
|
||||||
|
|
||||||
|
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
|
||||||
|
ISCCCDEPLIBS = ../../lib/isccc/libisccc.@A@
|
||||||
|
ISCDEPLIBS = ../../lib/isc/libisc.@A@
|
||||||
|
DNSDEPLIBS = ../../lib/dns/libdns.@A@
|
||||||
|
BIND9DEPLIBS = ../../lib/bind9/libbind9.@A@
|
||||||
|
|
||||||
|
RNDCLIBS = ${ISCCFGLIBS} ${ISCCCLIBS} ${BIND9LIBS} ${DNSLIBS} ${ISCLIBS} @LIBS@
|
||||||
|
RNDCDEPLIBS = ${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${BIND9DEPLIBS} ${DNSDEPLIBS} ${ISCDEPLIBS}
|
||||||
|
|
||||||
|
LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@
|
||||||
|
|
||||||
|
NOSYMLIBS = ${DNSLIBS} ${ISCNOSYMLIBS} @LIBS@
|
||||||
|
|
||||||
|
CONFDEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
|
||||||
|
|
||||||
|
SRCS= rndc-confgen.c ddns-confgen.c
|
||||||
|
|
||||||
|
SUBDIRS = unix
|
||||||
|
|
||||||
|
TARGETS = rndc-confgen@EXEEXT@ ddns-confgen@EXEEXT@ tsig-keygen@EXEEXT@
|
||||||
|
|
||||||
|
MANPAGES = rndc-confgen.8 ddns-confgen.8
|
||||||
|
|
||||||
|
HTMLPAGES = rndc-confgen.html ddns-confgen.html
|
||||||
|
|
||||||
|
MANOBJS = ${MANPAGES} ${HTMLPAGES}
|
||||||
|
|
||||||
|
UOBJS = unix/os.@O@
|
||||||
|
|
||||||
|
@BIND9_MAKE_RULES@
|
||||||
|
|
||||||
|
rndc-confgen.@O@: rndc-confgen.c
|
||||||
|
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
||||||
|
-DRNDC_KEYFILE=\"${sysconfdir}/rndc.key\" \
|
||||||
|
-c ${srcdir}/rndc-confgen.c
|
||||||
|
|
||||||
|
ddns-confgen.@O@: ddns-confgen.c
|
||||||
|
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c ${srcdir}/ddns-confgen.c
|
||||||
|
|
||||||
|
rndc-confgen@EXEEXT@: rndc-confgen.@O@ util.@O@ keygen.@O@ ${UOBJS} ${CONFDEPLIBS}
|
||||||
|
export BASEOBJS="rndc-confgen.@O@ util.@O@ keygen.@O@ ${UOBJS}"; \
|
||||||
|
${FINALBUILDCMD}
|
||||||
|
|
||||||
|
ddns-confgen@EXEEXT@: ddns-confgen.@O@ util.@O@ keygen.@O@ ${UOBJS} ${CONFDEPLIBS}
|
||||||
|
export BASEOBJS="ddns-confgen.@O@ util.@O@ keygen.@O@ ${UOBJS}"; \
|
||||||
|
${FINALBUILDCMD}
|
||||||
|
|
||||||
|
# make a link in the build directory to assist with testing
|
||||||
|
tsig-keygen@EXEEXT@: ddns-confgen@EXEEXT@
|
||||||
|
rm -f tsig-keygen@EXEEXT@
|
||||||
|
${LINK_PROGRAM} ddns-confgen@EXEEXT@ tsig-keygen@EXEEXT@
|
||||||
|
|
||||||
|
doc man:: ${MANOBJS}
|
||||||
|
|
||||||
|
docclean manclean maintainer-clean::
|
||||||
|
rm -f ${MANOBJS}
|
||||||
|
|
||||||
|
installdirs:
|
||||||
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
|
||||||
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
|
||||||
|
|
||||||
|
install:: rndc-confgen@EXEEXT@ ddns-confgen@EXEEXT@ installdirs
|
||||||
|
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} rndc-confgen@EXEEXT@ ${DESTDIR}${sbindir}
|
||||||
|
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} ddns-confgen@EXEEXT@ ${DESTDIR}${sbindir}
|
||||||
|
${INSTALL_DATA} ${srcdir}/rndc-confgen.8 ${DESTDIR}${mandir}/man8
|
||||||
|
${INSTALL_DATA} ${srcdir}/ddns-confgen.8 ${DESTDIR}${mandir}/man8
|
||||||
|
(cd ${DESTDIR}${sbindir}; rm -f tsig-keygen@EXEEXT@; ${LINK_PROGRAM} ddns-confgen@EXEEXT@ tsig-keygen@EXEEXT@)
|
||||||
|
(cd ${DESTDIR}${mandir}/man8; rm -f tsig-keygen.8; ${LINK_PROGRAM} ddns-confgen.8 tsig-keygen.8)
|
||||||
|
|
||||||
|
clean distclean maintainer-clean::
|
||||||
|
rm -f ${TARGETS}
|
||||||
153
external/bsd/bind/dist/bin/confgen/ddns-confgen.8
vendored
Normal file
153
external/bsd/bind/dist/bin/confgen/ddns-confgen.8
vendored
Normal file
|
|
@ -0,0 +1,153 @@
|
||||||
|
.\" $NetBSD: ddns-confgen.8,v 1.5 2014/12/10 04:37:51 christos Exp $
|
||||||
|
.\"
|
||||||
|
.\" Copyright (C) 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
.\"
|
||||||
|
.\" Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
.\" purpose with or without fee is hereby granted, provided that the above
|
||||||
|
.\" copyright notice and this permission notice appear in all copies.
|
||||||
|
.\"
|
||||||
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
.\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
.\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
.\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
.\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
.\" PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
.\"
|
||||||
|
.\" Id
|
||||||
|
.\"
|
||||||
|
.hy 0
|
||||||
|
.ad l
|
||||||
|
.\" Title: ddns\-confgen
|
||||||
|
.\" Author:
|
||||||
|
.\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
|
||||||
|
.\" Date: March 6, 2014
|
||||||
|
.\" Manual: BIND9
|
||||||
|
.\" Source: BIND9
|
||||||
|
.\"
|
||||||
|
.TH "DDNS\-CONFGEN" "8" "March 6, 2014" "BIND9" "BIND9"
|
||||||
|
.\" disable hyphenation
|
||||||
|
.nh
|
||||||
|
.\" disable justification (adjust text to left margin only)
|
||||||
|
.ad l
|
||||||
|
.SH "NAME"
|
||||||
|
ddns\-confgen \- ddns key generation tool
|
||||||
|
.SH "SYNOPSIS"
|
||||||
|
.HP 12
|
||||||
|
\fBtsig\-keygen\fR [\fB\-a\ \fR\fB\fIalgorithm\fR\fR] [\fB\-h\fR] [\fB\-r\ \fR\fB\fIrandomfile\fR\fR] [name]
|
||||||
|
.HP 13
|
||||||
|
\fBddns\-confgen\fR [\fB\-a\ \fR\fB\fIalgorithm\fR\fR] [\fB\-h\fR] [\fB\-k\ \fR\fB\fIkeyname\fR\fR] [\fB\-q\fR] [\fB\-r\ \fR\fB\fIrandomfile\fR\fR] [\-s\ \fIname\fR | \-z\ \fIzone\fR]
|
||||||
|
.SH "DESCRIPTION"
|
||||||
|
.PP
|
||||||
|
\fBtsig\-keygen\fR
|
||||||
|
and
|
||||||
|
\fBddns\-confgen\fR
|
||||||
|
are invocation methods for a utility that generates keys for use in TSIG signing. The resulting keys can be used, for example, to secure dynamic DNS updates to a zone or for the
|
||||||
|
\fBrndc\fR
|
||||||
|
command channel.
|
||||||
|
.PP
|
||||||
|
When run as
|
||||||
|
\fBtsig\-keygen\fR, a domain name can be specified on the command line which will be used as the name of the generated key. If no name is specified, the default is
|
||||||
|
\fBtsig\-key\fR.
|
||||||
|
.PP
|
||||||
|
When run as
|
||||||
|
\fBddns\-confgen\fR, the generated key is accompanied by configuration text and instructions that can be used with
|
||||||
|
\fBnsupdate\fR
|
||||||
|
and
|
||||||
|
\fBnamed\fR
|
||||||
|
when setting up dynamic DNS, including an example
|
||||||
|
\fBupdate\-policy\fR
|
||||||
|
statement. (This usage similar to the
|
||||||
|
\fBrndc\-confgen\fR
|
||||||
|
command for setting up command channel security.)
|
||||||
|
.PP
|
||||||
|
Note that
|
||||||
|
\fBnamed\fR
|
||||||
|
itself can configure a local DDNS key for use with
|
||||||
|
\fBnsupdate \-l\fR: it does this when a zone is configured with
|
||||||
|
\fBupdate\-policy local;\fR.
|
||||||
|
\fBddns\-confgen\fR
|
||||||
|
is only needed when a more elaborate configuration is required: for instance, if
|
||||||
|
\fBnsupdate\fR
|
||||||
|
is to be used from a remote system.
|
||||||
|
.SH "OPTIONS"
|
||||||
|
.PP
|
||||||
|
\-a \fIalgorithm\fR
|
||||||
|
.RS 4
|
||||||
|
Specifies the algorithm to use for the TSIG key. Available choices are: hmac\-md5, hmac\-sha1, hmac\-sha224, hmac\-sha256, hmac\-sha384 and hmac\-sha512. The default is hmac\-sha256. Options are case\-insensitive, and the "hmac\-" prefix may be omitted.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-h
|
||||||
|
.RS 4
|
||||||
|
Prints a short summary of options and arguments.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-k \fIkeyname\fR
|
||||||
|
.RS 4
|
||||||
|
Specifies the key name of the DDNS authentication key. The default is
|
||||||
|
\fBddns\-key\fR
|
||||||
|
when neither the
|
||||||
|
\fB\-s\fR
|
||||||
|
nor
|
||||||
|
\fB\-z\fR
|
||||||
|
option is specified; otherwise, the default is
|
||||||
|
\fBddns\-key\fR
|
||||||
|
as a separate label followed by the argument of the option, e.g.,
|
||||||
|
\fBddns\-key.example.com.\fR
|
||||||
|
The key name must have the format of a valid domain name, consisting of letters, digits, hyphens and periods.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-q
|
||||||
|
.RS 4
|
||||||
|
(\fBddns\-confgen\fR
|
||||||
|
only.) Quiet mode: Print only the key, with no explanatory text or usage examples; This is essentially identical to
|
||||||
|
\fBtsig\-keygen\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-r \fIrandomfile\fR
|
||||||
|
.RS 4
|
||||||
|
Specifies a source of random data for generating the authorization. If the operating system does not provide a
|
||||||
|
\fI/dev/random\fR
|
||||||
|
or equivalent device, the default source of randomness is keyboard input.
|
||||||
|
\fIrandomdev\fR
|
||||||
|
specifies the name of a character device or file containing random data to be used instead of the default. The special value
|
||||||
|
\fIkeyboard\fR
|
||||||
|
indicates that keyboard input should be used.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-s \fIname\fR
|
||||||
|
.RS 4
|
||||||
|
(\fBddns\-confgen\fR
|
||||||
|
only.) Generate configuration example to allow dynamic updates of a single hostname. The example
|
||||||
|
\fBnamed.conf\fR
|
||||||
|
text shows how to set an update policy for the specified
|
||||||
|
\fIname\fR
|
||||||
|
using the "name" nametype. The default key name is ddns\-key.\fIname\fR. Note that the "self" nametype cannot be used, since the name to be updated may differ from the key name. This option cannot be used with the
|
||||||
|
\fB\-z\fR
|
||||||
|
option.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
\-z \fIzone\fR
|
||||||
|
.RS 4
|
||||||
|
(\fBddns\-confgen\fR
|
||||||
|
only.) Generate configuration example to allow dynamic updates of a zone: The example
|
||||||
|
\fBnamed.conf\fR
|
||||||
|
text shows how to set an update policy for the specified
|
||||||
|
\fIzone\fR
|
||||||
|
using the "zonesub" nametype, allowing updates to all subdomain names within that
|
||||||
|
\fIzone\fR. This option cannot be used with the
|
||||||
|
\fB\-s\fR
|
||||||
|
option.
|
||||||
|
.RE
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.PP
|
||||||
|
\fBnsupdate\fR(1),
|
||||||
|
\fBnamed.conf\fR(5),
|
||||||
|
\fBnamed\fR(8),
|
||||||
|
BIND 9 Administrator Reference Manual.
|
||||||
|
.SH "AUTHOR"
|
||||||
|
.PP
|
||||||
|
Internet Systems Consortium
|
||||||
|
.SH "COPYRIGHT"
|
||||||
|
Copyright \(co 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
.br
|
||||||
310
external/bsd/bind/dist/bin/confgen/ddns-confgen.c
vendored
Normal file
310
external/bsd/bind/dist/bin/confgen/ddns-confgen.c
vendored
Normal file
|
|
@ -0,0 +1,310 @@
|
||||||
|
/* $NetBSD: ddns-confgen.c,v 1.8 2014/12/10 04:37:51 christos Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2009, 2011, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*! \file */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ddns-confgen generates configuration files for dynamic DNS. It can
|
||||||
|
* be used as a convenient alternative to writing the ddns.key file
|
||||||
|
* and the corresponding key and update-policy statements in named.conf.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include <isc/assertions.h>
|
||||||
|
#include <isc/base64.h>
|
||||||
|
#include <isc/buffer.h>
|
||||||
|
#include <isc/commandline.h>
|
||||||
|
#include <isc/entropy.h>
|
||||||
|
#include <isc/file.h>
|
||||||
|
#include <isc/keyboard.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>
|
||||||
|
|
||||||
|
#ifdef PKCS11CRYPTO
|
||||||
|
#include <pk11/result.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <dns/keyvalues.h>
|
||||||
|
#include <dns/name.h>
|
||||||
|
#include <dns/result.h>
|
||||||
|
|
||||||
|
#include <dst/dst.h>
|
||||||
|
#include <confgen/os.h>
|
||||||
|
|
||||||
|
#include "util.h"
|
||||||
|
#include "keygen.h"
|
||||||
|
|
||||||
|
#define KEYGEN_DEFAULT "tsig-key"
|
||||||
|
#define CONFGEN_DEFAULT "ddns-key"
|
||||||
|
|
||||||
|
static char program[256];
|
||||||
|
const char *progname;
|
||||||
|
static enum { progmode_keygen, progmode_confgen} progmode;
|
||||||
|
isc_boolean_t verbose = ISC_FALSE; /* needed by util.c but not used here */
|
||||||
|
|
||||||
|
ISC_PLATFORM_NORETURN_PRE static void
|
||||||
|
usage(int status) ISC_PLATFORM_NORETURN_POST;
|
||||||
|
|
||||||
|
static void
|
||||||
|
usage(int status) {
|
||||||
|
if (progmode == progmode_confgen) {
|
||||||
|
fprintf(stderr, "\
|
||||||
|
Usage:\n\
|
||||||
|
%s [-a alg] [-k keyname] [-r randomfile] [-q] [-s name | -z zone]\n\
|
||||||
|
-a alg: algorithm (default hmac-sha256)\n\
|
||||||
|
-k keyname: name of the key as it will be used in named.conf\n\
|
||||||
|
-r randomfile: source of random data (use \"keyboard\" for key timing)\n\
|
||||||
|
-s name: domain name to be updated using the created key\n\
|
||||||
|
-z zone: name of the zone as it will be used in named.conf\n\
|
||||||
|
-q: quiet mode: print the key, with no explanatory text\n",
|
||||||
|
progname);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "\
|
||||||
|
Usage:\n\
|
||||||
|
%s [-a alg] [-r randomfile] [keyname]\n\
|
||||||
|
-a alg: algorithm (default hmac-sha256)\n\
|
||||||
|
-r randomfile: source of random data (use \"keyboard\" for key timing)\n",
|
||||||
|
progname);
|
||||||
|
}
|
||||||
|
|
||||||
|
exit (status);
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
main(int argc, char **argv) {
|
||||||
|
isc_result_t result = ISC_R_SUCCESS;
|
||||||
|
isc_boolean_t show_final_mem = ISC_FALSE;
|
||||||
|
isc_boolean_t quiet = ISC_FALSE;
|
||||||
|
isc_buffer_t key_txtbuffer;
|
||||||
|
char key_txtsecret[256];
|
||||||
|
isc_mem_t *mctx = NULL;
|
||||||
|
const char *randomfile = NULL;
|
||||||
|
const char *keyname = NULL;
|
||||||
|
const char *zone = NULL;
|
||||||
|
const char *self_domain = NULL;
|
||||||
|
char *keybuf = NULL;
|
||||||
|
dns_secalg_t alg = DST_ALG_HMACSHA256;
|
||||||
|
const char *algname;
|
||||||
|
int keysize = 256;
|
||||||
|
int len = 0;
|
||||||
|
int ch;
|
||||||
|
|
||||||
|
#ifdef PKCS11CRYPTO
|
||||||
|
pk11_result_register();
|
||||||
|
#endif
|
||||||
|
dns_result_register();
|
||||||
|
|
||||||
|
result = isc_file_progname(*argv, program, sizeof(program));
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
memmove(program, "tsig-keygen", 11);
|
||||||
|
progname = program;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Libtool doesn't preserve the program name prior to final
|
||||||
|
* installation. Remove the libtool prefix ("lt-").
|
||||||
|
*/
|
||||||
|
if (strncmp(progname, "lt-", 3) == 0)
|
||||||
|
progname += 3;
|
||||||
|
|
||||||
|
#define PROGCMP(X) \
|
||||||
|
(strcasecmp(progname, X) == 0 || strcasecmp(progname, X ".exe") == 0)
|
||||||
|
|
||||||
|
if (PROGCMP("tsig-keygen")) {
|
||||||
|
progmode = progmode_keygen;
|
||||||
|
quiet = ISC_TRUE;
|
||||||
|
} else if (PROGCMP("ddns-confgen"))
|
||||||
|
progmode = progmode_confgen;
|
||||||
|
else
|
||||||
|
INSIST(0);
|
||||||
|
|
||||||
|
isc_commandline_errprint = ISC_FALSE;
|
||||||
|
|
||||||
|
while ((ch = isc_commandline_parse(argc, argv,
|
||||||
|
"a:hk:Mmr:qs:y:z:")) != -1) {
|
||||||
|
switch (ch) {
|
||||||
|
case 'a':
|
||||||
|
algname = isc_commandline_argument;
|
||||||
|
alg = alg_fromtext(algname);
|
||||||
|
if (alg == DST_ALG_UNKNOWN)
|
||||||
|
fatal("Unsupported algorithm '%s'", algname);
|
||||||
|
keysize = alg_bits(alg);
|
||||||
|
break;
|
||||||
|
case 'h':
|
||||||
|
usage(0);
|
||||||
|
case 'k':
|
||||||
|
case 'y':
|
||||||
|
if (progmode == progmode_confgen)
|
||||||
|
keyname = isc_commandline_argument;
|
||||||
|
else
|
||||||
|
usage(1);
|
||||||
|
break;
|
||||||
|
case 'M':
|
||||||
|
isc_mem_debugging = ISC_MEM_DEBUGTRACE;
|
||||||
|
break;
|
||||||
|
case 'm':
|
||||||
|
show_final_mem = ISC_TRUE;
|
||||||
|
break;
|
||||||
|
case 'q':
|
||||||
|
if (progmode == progmode_confgen)
|
||||||
|
quiet = ISC_TRUE;
|
||||||
|
else
|
||||||
|
usage(1);
|
||||||
|
break;
|
||||||
|
case 'r':
|
||||||
|
randomfile = isc_commandline_argument;
|
||||||
|
break;
|
||||||
|
case 's':
|
||||||
|
if (progmode == progmode_confgen)
|
||||||
|
self_domain = isc_commandline_argument;
|
||||||
|
else
|
||||||
|
usage(1);
|
||||||
|
break;
|
||||||
|
case 'z':
|
||||||
|
if (progmode == progmode_confgen)
|
||||||
|
zone = isc_commandline_argument;
|
||||||
|
else
|
||||||
|
usage(1);
|
||||||
|
break;
|
||||||
|
case '?':
|
||||||
|
if (isc_commandline_option != '?') {
|
||||||
|
fprintf(stderr, "%s: invalid argument -%c\n",
|
||||||
|
program, isc_commandline_option);
|
||||||
|
usage(1);
|
||||||
|
} else
|
||||||
|
usage(0);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "%s: unhandled option -%c\n",
|
||||||
|
program, isc_commandline_option);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (progmode == progmode_keygen)
|
||||||
|
keyname = argv[isc_commandline_index++];
|
||||||
|
|
||||||
|
POST(argv);
|
||||||
|
|
||||||
|
if (self_domain != NULL && zone != NULL)
|
||||||
|
usage(1); /* -s and -z cannot coexist */
|
||||||
|
|
||||||
|
if (argc > isc_commandline_index)
|
||||||
|
usage(1);
|
||||||
|
|
||||||
|
/* Use canonical algorithm name */
|
||||||
|
algname = alg_totext(alg);
|
||||||
|
|
||||||
|
DO("create memory context", isc_mem_create(0, 0, &mctx));
|
||||||
|
|
||||||
|
if (keyname == NULL) {
|
||||||
|
const char *suffix = NULL;
|
||||||
|
|
||||||
|
keyname = ((progmode == progmode_keygen)
|
||||||
|
? KEYGEN_DEFAULT
|
||||||
|
: CONFGEN_DEFAULT);
|
||||||
|
if (self_domain != NULL)
|
||||||
|
suffix = self_domain;
|
||||||
|
else if (zone != NULL)
|
||||||
|
suffix = zone;
|
||||||
|
if (suffix != NULL) {
|
||||||
|
len = strlen(keyname) + strlen(suffix) + 2;
|
||||||
|
keybuf = isc_mem_get(mctx, len);
|
||||||
|
if (keybuf == NULL)
|
||||||
|
fatal("failed to allocate memory for keyname");
|
||||||
|
snprintf(keybuf, len, "%s.%s", keyname, suffix);
|
||||||
|
keyname = (const char *) keybuf;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
isc_buffer_init(&key_txtbuffer, &key_txtsecret, sizeof(key_txtsecret));
|
||||||
|
|
||||||
|
generate_key(mctx, randomfile, alg, keysize, &key_txtbuffer);
|
||||||
|
|
||||||
|
|
||||||
|
if (!quiet)
|
||||||
|
printf("\
|
||||||
|
# To activate this key, place the following in named.conf, and\n\
|
||||||
|
# in a separate keyfile on the system or systems from which nsupdate\n\
|
||||||
|
# will be run:\n");
|
||||||
|
|
||||||
|
printf("\
|
||||||
|
key \"%s\" {\n\
|
||||||
|
algorithm %s;\n\
|
||||||
|
secret \"%.*s\";\n\
|
||||||
|
};\n",
|
||||||
|
keyname, algname,
|
||||||
|
(int)isc_buffer_usedlength(&key_txtbuffer),
|
||||||
|
(char *)isc_buffer_base(&key_txtbuffer));
|
||||||
|
|
||||||
|
if (!quiet) {
|
||||||
|
if (self_domain != NULL) {
|
||||||
|
printf("\n\
|
||||||
|
# Then, in the \"zone\" statement for the zone containing the\n\
|
||||||
|
# name \"%s\", place an \"update-policy\" statement\n\
|
||||||
|
# like this one, adjusted as needed for your preferred permissions:\n\
|
||||||
|
update-policy {\n\
|
||||||
|
grant %s name %s ANY;\n\
|
||||||
|
};\n",
|
||||||
|
self_domain, keyname, self_domain);
|
||||||
|
} else if (zone != NULL) {
|
||||||
|
printf("\n\
|
||||||
|
# Then, in the \"zone\" definition statement for \"%s\",\n\
|
||||||
|
# place an \"update-policy\" statement like this one, adjusted as \n\
|
||||||
|
# needed for your preferred permissions:\n\
|
||||||
|
update-policy {\n\
|
||||||
|
grant %s zonesub ANY;\n\
|
||||||
|
};\n",
|
||||||
|
zone, keyname);
|
||||||
|
} else {
|
||||||
|
printf("\n\
|
||||||
|
# Then, in the \"zone\" statement for each zone you wish to dynamically\n\
|
||||||
|
# update, place an \"update-policy\" statement granting update permission\n\
|
||||||
|
# to this key. For example, the following statement grants this key\n\
|
||||||
|
# permission to update any name within the zone:\n\
|
||||||
|
update-policy {\n\
|
||||||
|
grant %s zonesub ANY;\n\
|
||||||
|
};\n",
|
||||||
|
keyname);
|
||||||
|
}
|
||||||
|
|
||||||
|
printf("\n\
|
||||||
|
# After the keyfile has been placed, the following command will\n\
|
||||||
|
# execute nsupdate using this key:\n\
|
||||||
|
nsupdate -k <keyfile>\n");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (keybuf != NULL)
|
||||||
|
isc_mem_put(mctx, keybuf, len);
|
||||||
|
|
||||||
|
if (show_final_mem)
|
||||||
|
isc_mem_stats(mctx, stderr);
|
||||||
|
|
||||||
|
isc_mem_destroy(&mctx);
|
||||||
|
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
239
external/bsd/bind/dist/bin/confgen/ddns-confgen.docbook
vendored
Normal file
239
external/bsd/bind/dist/bin/confgen/ddns-confgen.docbook
vendored
Normal file
|
|
@ -0,0 +1,239 @@
|
||||||
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
|
||||||
|
[<!ENTITY mdash "—">]>
|
||||||
|
<!--
|
||||||
|
- Copyright (C) 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
-
|
||||||
|
- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
- purpose with or without fee is hereby granted, provided that the above
|
||||||
|
- copyright notice and this permission notice appear in all copies.
|
||||||
|
-
|
||||||
|
- THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
- AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
- PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<refentry id="man.ddns-confgen">
|
||||||
|
<refentryinfo>
|
||||||
|
<date>March 6, 2014</date>
|
||||||
|
</refentryinfo>
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle><application>ddns-confgen</application></refentrytitle>
|
||||||
|
<manvolnum>8</manvolnum>
|
||||||
|
<refmiscinfo>BIND9</refmiscinfo>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname><application>ddns-confgen</application></refname>
|
||||||
|
<refpurpose>ddns key generation tool</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<docinfo>
|
||||||
|
<copyright>
|
||||||
|
<year>2009</year>
|
||||||
|
<year>2014</year>
|
||||||
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
|
</copyright>
|
||||||
|
</docinfo>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>tsig-keygen</command>
|
||||||
|
<arg><option>-a <replaceable class="parameter">algorithm</replaceable></option></arg>
|
||||||
|
<arg><option>-h</option></arg>
|
||||||
|
<arg><option>-r <replaceable class="parameter">randomfile</replaceable></option></arg>
|
||||||
|
<arg choice="opt">name</arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>ddns-confgen</command>
|
||||||
|
<arg><option>-a <replaceable class="parameter">algorithm</replaceable></option></arg>
|
||||||
|
<arg><option>-h</option></arg>
|
||||||
|
<arg><option>-k <replaceable class="parameter">keyname</replaceable></option></arg>
|
||||||
|
<arg><option>-q</option></arg>
|
||||||
|
<arg><option>-r <replaceable class="parameter">randomfile</replaceable></option></arg>
|
||||||
|
<group>
|
||||||
|
<arg choice="plain">-s <replaceable class="parameter">name</replaceable></arg>
|
||||||
|
<arg choice="plain">-z <replaceable class="parameter">zone</replaceable></arg>
|
||||||
|
</group>
|
||||||
|
</cmdsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>DESCRIPTION</title>
|
||||||
|
<para>
|
||||||
|
<command>tsig-keygen</command> and <command>ddns-confgen</command>
|
||||||
|
are invocation methods for a utility that generates keys for use
|
||||||
|
in TSIG signing. The resulting keys can be used, for example,
|
||||||
|
to secure dynamic DNS updates to a zone or for the
|
||||||
|
<command>rndc</command> command channel.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
When run as <command>tsig-keygen</command>, a domain name
|
||||||
|
can be specified on the command line which will be used as
|
||||||
|
the name of the generated key. If no name is specified,
|
||||||
|
the default is <constant>tsig-key</constant>.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
When run as <command>ddns-confgen</command>, the generated
|
||||||
|
key is accompanied by configuration text and instructions
|
||||||
|
that can be used with <command>nsupdate</command> and
|
||||||
|
<command>named</command> when setting up dynamic DNS,
|
||||||
|
including an example <command>update-policy</command>
|
||||||
|
statement. (This usage similar to the
|
||||||
|
<command>rndc-confgen</command> command for setting
|
||||||
|
up command channel security.)
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Note that <command>named</command> itself can configure a
|
||||||
|
local DDNS key for use with <command>nsupdate -l</command>:
|
||||||
|
it does this when a zone is configured with
|
||||||
|
<command>update-policy local;</command>.
|
||||||
|
<command>ddns-confgen</command> is only needed when a
|
||||||
|
more elaborate configuration is required: for instance,
|
||||||
|
if <command>nsupdate</command> is to be used from a remote
|
||||||
|
system.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>OPTIONS</title>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>-a <replaceable class="parameter">algorithm</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specifies the algorithm to use for the TSIG key. Available
|
||||||
|
choices are: hmac-md5, hmac-sha1, hmac-sha224, hmac-sha256,
|
||||||
|
hmac-sha384 and hmac-sha512. The default is hmac-sha256.
|
||||||
|
Options are case-insensitive, and the "hmac-" prefix
|
||||||
|
may be omitted.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-h</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Prints a short summary of options and arguments.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-k <replaceable class="parameter">keyname</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specifies the key name of the DDNS authentication key.
|
||||||
|
The default is <constant>ddns-key</constant> when neither
|
||||||
|
the <option>-s</option> nor <option>-z</option> option is
|
||||||
|
specified; otherwise, the default
|
||||||
|
is <constant>ddns-key</constant> as a separate label
|
||||||
|
followed by the argument of the option, e.g.,
|
||||||
|
<constant>ddns-key.example.com.</constant>
|
||||||
|
The key name must have the format of a valid domain name,
|
||||||
|
consisting of letters, digits, hyphens and periods.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-q</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
(<command>ddns-confgen</command> only.) Quiet mode: Print
|
||||||
|
only the key, with no explanatory text or usage examples;
|
||||||
|
This is essentially identical to <command>tsig-keygen</command>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-r <replaceable class="parameter">randomfile</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Specifies a source of random data for generating the
|
||||||
|
authorization. If the operating system does not provide a
|
||||||
|
<filename>/dev/random</filename> or equivalent device, the
|
||||||
|
default source of randomness is keyboard input.
|
||||||
|
<filename>randomdev</filename> specifies the name of a
|
||||||
|
character device or file containing random data to be used
|
||||||
|
instead of the default. The special value
|
||||||
|
<filename>keyboard</filename> indicates that keyboard input
|
||||||
|
should be used.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-s <replaceable class="parameter">name</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
(<command>ddns-confgen</command> only.)
|
||||||
|
Generate configuration example to allow dynamic updates
|
||||||
|
of a single hostname. The example <command>named.conf</command>
|
||||||
|
text shows how to set an update policy for the specified
|
||||||
|
<replaceable class="parameter">name</replaceable>
|
||||||
|
using the "name" nametype. The default key name is
|
||||||
|
ddns-key.<replaceable class="parameter">name</replaceable>.
|
||||||
|
Note that the "self" nametype cannot be used, since
|
||||||
|
the name to be updated may differ from the key name.
|
||||||
|
This option cannot be used with the <option>-z</option> option.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-z <replaceable class="parameter">zone</replaceable></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
(<command>ddns-confgen</command> only.)
|
||||||
|
Generate configuration example to allow dynamic updates
|
||||||
|
of a zone: The example <command>named.conf</command> text
|
||||||
|
shows how to set an update policy for the specified
|
||||||
|
<replaceable class="parameter">zone</replaceable>
|
||||||
|
using the "zonesub" nametype, allowing updates to
|
||||||
|
all subdomain names within that
|
||||||
|
<replaceable class="parameter">zone</replaceable>.
|
||||||
|
This option cannot be used with the <option>-s</option> option.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>SEE ALSO</title>
|
||||||
|
<para><citerefentry>
|
||||||
|
<refentrytitle>nsupdate</refentrytitle><manvolnum>1</manvolnum>
|
||||||
|
</citerefentry>,
|
||||||
|
<citerefentry>
|
||||||
|
<refentrytitle>named.conf</refentrytitle><manvolnum>5</manvolnum>
|
||||||
|
</citerefentry>,
|
||||||
|
<citerefentry>
|
||||||
|
<refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
|
||||||
|
</citerefentry>,
|
||||||
|
<citetitle>BIND 9 Administrator Reference Manual</citetitle>.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>AUTHOR</title>
|
||||||
|
<para><corpauthor>Internet Systems Consortium</corpauthor>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry><!--
|
||||||
|
- Local variables:
|
||||||
|
- mode: sgml
|
||||||
|
- End:
|
||||||
|
-->
|
||||||
156
external/bsd/bind/dist/bin/confgen/ddns-confgen.html
vendored
Normal file
156
external/bsd/bind/dist/bin/confgen/ddns-confgen.html
vendored
Normal file
|
|
@ -0,0 +1,156 @@
|
||||||
|
<!--
|
||||||
|
- Copyright (C) 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
-
|
||||||
|
- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
- purpose with or without fee is hereby granted, provided that the above
|
||||||
|
- copyright notice and this permission notice appear in all copies.
|
||||||
|
-
|
||||||
|
- THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
- AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
- PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
-->
|
||||||
|
<!-- Id -->
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>ddns-confgen</title>
|
||||||
|
<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
|
||||||
|
<a name="man.ddns-confgen"></a><div class="titlepage"></div>
|
||||||
|
<div class="refnamediv">
|
||||||
|
<h2>Name</h2>
|
||||||
|
<p><span class="application">ddns-confgen</span> — ddns key generation tool</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsynopsisdiv">
|
||||||
|
<h2>Synopsis</h2>
|
||||||
|
<div class="cmdsynopsis"><p><code class="command">tsig-keygen</code> [<code class="option">-a <em class="replaceable"><code>algorithm</code></em></code>] [<code class="option">-h</code>] [<code class="option">-r <em class="replaceable"><code>randomfile</code></em></code>] [name]</p></div>
|
||||||
|
<div class="cmdsynopsis"><p><code class="command">ddns-confgen</code> [<code class="option">-a <em class="replaceable"><code>algorithm</code></em></code>] [<code class="option">-h</code>] [<code class="option">-k <em class="replaceable"><code>keyname</code></em></code>] [<code class="option">-q</code>] [<code class="option">-r <em class="replaceable"><code>randomfile</code></em></code>] [ -s <em class="replaceable"><code>name</code></em> | -z <em class="replaceable"><code>zone</code></em> ]</p></div>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543434"></a><h2>DESCRIPTION</h2>
|
||||||
|
<p>
|
||||||
|
<span><strong class="command">tsig-keygen</strong></span> and <span><strong class="command">ddns-confgen</strong></span>
|
||||||
|
are invocation methods for a utility that generates keys for use
|
||||||
|
in TSIG signing. The resulting keys can be used, for example,
|
||||||
|
to secure dynamic DNS updates to a zone or for the
|
||||||
|
<span><strong class="command">rndc</strong></span> command channel.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
When run as <span><strong class="command">tsig-keygen</strong></span>, a domain name
|
||||||
|
can be specified on the command line which will be used as
|
||||||
|
the name of the generated key. If no name is specified,
|
||||||
|
the default is <code class="constant">tsig-key</code>.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
When run as <span><strong class="command">ddns-confgen</strong></span>, the generated
|
||||||
|
key is accompanied by configuration text and instructions
|
||||||
|
that can be used with <span><strong class="command">nsupdate</strong></span> and
|
||||||
|
<span><strong class="command">named</strong></span> when setting up dynamic DNS,
|
||||||
|
including an example <span><strong class="command">update-policy</strong></span>
|
||||||
|
statement. (This usage similar to the
|
||||||
|
<span><strong class="command">rndc-confgen</strong></span> command for setting
|
||||||
|
up command channel security.)
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Note that <span><strong class="command">named</strong></span> itself can configure a
|
||||||
|
local DDNS key for use with <span><strong class="command">nsupdate -l</strong></span>:
|
||||||
|
it does this when a zone is configured with
|
||||||
|
<span><strong class="command">update-policy local;</strong></span>.
|
||||||
|
<span><strong class="command">ddns-confgen</strong></span> is only needed when a
|
||||||
|
more elaborate configuration is required: for instance,
|
||||||
|
if <span><strong class="command">nsupdate</strong></span> is to be used from a remote
|
||||||
|
system.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543508"></a><h2>OPTIONS</h2>
|
||||||
|
<div class="variablelist"><dl>
|
||||||
|
<dt><span class="term">-a <em class="replaceable"><code>algorithm</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specifies the algorithm to use for the TSIG key. Available
|
||||||
|
choices are: hmac-md5, hmac-sha1, hmac-sha224, hmac-sha256,
|
||||||
|
hmac-sha384 and hmac-sha512. The default is hmac-sha256.
|
||||||
|
Options are case-insensitive, and the "hmac-" prefix
|
||||||
|
may be omitted.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-h</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Prints a short summary of options and arguments.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-k <em class="replaceable"><code>keyname</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specifies the key name of the DDNS authentication key.
|
||||||
|
The default is <code class="constant">ddns-key</code> when neither
|
||||||
|
the <code class="option">-s</code> nor <code class="option">-z</code> option is
|
||||||
|
specified; otherwise, the default
|
||||||
|
is <code class="constant">ddns-key</code> as a separate label
|
||||||
|
followed by the argument of the option, e.g.,
|
||||||
|
<code class="constant">ddns-key.example.com.</code>
|
||||||
|
The key name must have the format of a valid domain name,
|
||||||
|
consisting of letters, digits, hyphens and periods.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-q</span></dt>
|
||||||
|
<dd><p>
|
||||||
|
(<span><strong class="command">ddns-confgen</strong></span> only.) Quiet mode: Print
|
||||||
|
only the key, with no explanatory text or usage examples;
|
||||||
|
This is essentially identical to <span><strong class="command">tsig-keygen</strong></span>.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-r <em class="replaceable"><code>randomfile</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
Specifies a source of random data for generating the
|
||||||
|
authorization. If the operating system does not provide a
|
||||||
|
<code class="filename">/dev/random</code> or equivalent device, the
|
||||||
|
default source of randomness is keyboard input.
|
||||||
|
<code class="filename">randomdev</code> specifies the name of a
|
||||||
|
character device or file containing random data to be used
|
||||||
|
instead of the default. The special value
|
||||||
|
<code class="filename">keyboard</code> indicates that keyboard input
|
||||||
|
should be used.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-s <em class="replaceable"><code>name</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
(<span><strong class="command">ddns-confgen</strong></span> only.)
|
||||||
|
Generate configuration example to allow dynamic updates
|
||||||
|
of a single hostname. The example <span><strong class="command">named.conf</strong></span>
|
||||||
|
text shows how to set an update policy for the specified
|
||||||
|
<em class="replaceable"><code>name</code></em>
|
||||||
|
using the "name" nametype. The default key name is
|
||||||
|
ddns-key.<em class="replaceable"><code>name</code></em>.
|
||||||
|
Note that the "self" nametype cannot be used, since
|
||||||
|
the name to be updated may differ from the key name.
|
||||||
|
This option cannot be used with the <code class="option">-z</code> option.
|
||||||
|
</p></dd>
|
||||||
|
<dt><span class="term">-z <em class="replaceable"><code>zone</code></em></span></dt>
|
||||||
|
<dd><p>
|
||||||
|
(<span><strong class="command">ddns-confgen</strong></span> only.)
|
||||||
|
Generate configuration example to allow dynamic updates
|
||||||
|
of a zone: The example <span><strong class="command">named.conf</strong></span> text
|
||||||
|
shows how to set an update policy for the specified
|
||||||
|
<em class="replaceable"><code>zone</code></em>
|
||||||
|
using the "zonesub" nametype, allowing updates to
|
||||||
|
all subdomain names within that
|
||||||
|
<em class="replaceable"><code>zone</code></em>.
|
||||||
|
This option cannot be used with the <code class="option">-s</code> option.
|
||||||
|
</p></dd>
|
||||||
|
</dl></div>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543705"></a><h2>SEE ALSO</h2>
|
||||||
|
<p><span class="citerefentry"><span class="refentrytitle">nsupdate</span>(1)</span>,
|
||||||
|
<span class="citerefentry"><span class="refentrytitle">named.conf</span>(5)</span>,
|
||||||
|
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
|
||||||
|
<em class="citetitle">BIND 9 Administrator Reference Manual</em>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="refsect1" lang="en">
|
||||||
|
<a name="id2543744"></a><h2>AUTHOR</h2>
|
||||||
|
<p><span class="corpauthor">Internet Systems Consortium</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div></body>
|
||||||
|
</html>
|
||||||
41
external/bsd/bind/dist/bin/confgen/include/confgen/os.h
vendored
Normal file
41
external/bsd/bind/dist/bin/confgen/include/confgen/os.h
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
/* $NetBSD: os.h,v 1.4 2014/12/10 04:37:51 christos Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Id: os.h,v 1.3 2009/06/11 23:47:55 tbox Exp */
|
||||||
|
|
||||||
|
/*! \file */
|
||||||
|
|
||||||
|
#ifndef RNDC_OS_H
|
||||||
|
#define RNDC_OS_H 1
|
||||||
|
|
||||||
|
#include <isc/lang.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
ISC_LANG_BEGINDECLS
|
||||||
|
|
||||||
|
int set_user(FILE *fd, const char *user);
|
||||||
|
/*%<
|
||||||
|
* Set the owner of the file referenced by 'fd' to 'user'.
|
||||||
|
* Returns:
|
||||||
|
* 0 success
|
||||||
|
* -1 insufficient permissions, or 'user' does not exist.
|
||||||
|
*/
|
||||||
|
|
||||||
|
ISC_LANG_ENDDECLS
|
||||||
|
|
||||||
|
#endif
|
||||||
228
external/bsd/bind/dist/bin/confgen/keygen.c
vendored
Normal file
228
external/bsd/bind/dist/bin/confgen/keygen.c
vendored
Normal file
|
|
@ -0,0 +1,228 @@
|
||||||
|
/* $NetBSD: keygen.c,v 1.6 2014/12/10 04:37:51 christos Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2009, 2012-2014 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Id: keygen.c,v 1.4 2009/11/12 14:02:38 marka Exp */
|
||||||
|
|
||||||
|
/*! \file */
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include <isc/base64.h>
|
||||||
|
#include <isc/buffer.h>
|
||||||
|
#include <isc/entropy.h>
|
||||||
|
#include <isc/file.h>
|
||||||
|
#include <isc/keyboard.h>
|
||||||
|
#include <isc/mem.h>
|
||||||
|
#include <isc/result.h>
|
||||||
|
#include <isc/string.h>
|
||||||
|
|
||||||
|
#include <dns/keyvalues.h>
|
||||||
|
#include <dns/name.h>
|
||||||
|
|
||||||
|
#include <dst/dst.h>
|
||||||
|
#include <confgen/os.h>
|
||||||
|
|
||||||
|
#include "util.h"
|
||||||
|
#include "keygen.h"
|
||||||
|
|
||||||
|
/*%
|
||||||
|
* Convert algorithm type to string.
|
||||||
|
*/
|
||||||
|
const char *
|
||||||
|
alg_totext(dns_secalg_t alg) {
|
||||||
|
switch (alg) {
|
||||||
|
case DST_ALG_HMACMD5:
|
||||||
|
return "hmac-md5";
|
||||||
|
case DST_ALG_HMACSHA1:
|
||||||
|
return "hmac-sha1";
|
||||||
|
case DST_ALG_HMACSHA224:
|
||||||
|
return "hmac-sha224";
|
||||||
|
case DST_ALG_HMACSHA256:
|
||||||
|
return "hmac-sha256";
|
||||||
|
case DST_ALG_HMACSHA384:
|
||||||
|
return "hmac-sha384";
|
||||||
|
case DST_ALG_HMACSHA512:
|
||||||
|
return "hmac-sha512";
|
||||||
|
default:
|
||||||
|
return "(unknown)";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*%
|
||||||
|
* Convert string to algorithm type.
|
||||||
|
*/
|
||||||
|
dns_secalg_t
|
||||||
|
alg_fromtext(const char *name) {
|
||||||
|
const char *p = name;
|
||||||
|
if (strncasecmp(p, "hmac-", 5) == 0)
|
||||||
|
p = &name[5];
|
||||||
|
|
||||||
|
if (strcasecmp(p, "md5") == 0)
|
||||||
|
return DST_ALG_HMACMD5;
|
||||||
|
if (strcasecmp(p, "sha1") == 0)
|
||||||
|
return DST_ALG_HMACSHA1;
|
||||||
|
if (strcasecmp(p, "sha224") == 0)
|
||||||
|
return DST_ALG_HMACSHA224;
|
||||||
|
if (strcasecmp(p, "sha256") == 0)
|
||||||
|
return DST_ALG_HMACSHA256;
|
||||||
|
if (strcasecmp(p, "sha384") == 0)
|
||||||
|
return DST_ALG_HMACSHA384;
|
||||||
|
if (strcasecmp(p, "sha512") == 0)
|
||||||
|
return DST_ALG_HMACSHA512;
|
||||||
|
return DST_ALG_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*%
|
||||||
|
* Return default keysize for a given algorithm type.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
alg_bits(dns_secalg_t alg) {
|
||||||
|
switch (alg) {
|
||||||
|
case DST_ALG_HMACMD5:
|
||||||
|
return 128;
|
||||||
|
case DST_ALG_HMACSHA1:
|
||||||
|
return 160;
|
||||||
|
case DST_ALG_HMACSHA224:
|
||||||
|
return 224;
|
||||||
|
case DST_ALG_HMACSHA256:
|
||||||
|
return 256;
|
||||||
|
case DST_ALG_HMACSHA384:
|
||||||
|
return 384;
|
||||||
|
case DST_ALG_HMACSHA512:
|
||||||
|
return 512;
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*%
|
||||||
|
* Generate a key of size 'keysize' using entropy source 'randomfile',
|
||||||
|
* and place it in 'key_txtbuffer'
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
generate_key(isc_mem_t *mctx, const char *randomfile, dns_secalg_t alg,
|
||||||
|
int keysize, isc_buffer_t *key_txtbuffer) {
|
||||||
|
isc_result_t result = ISC_R_SUCCESS;
|
||||||
|
isc_entropysource_t *entropy_source = NULL;
|
||||||
|
int open_keyboard = ISC_ENTROPY_KEYBOARDMAYBE;
|
||||||
|
int entropy_flags = 0;
|
||||||
|
isc_entropy_t *ectx = NULL;
|
||||||
|
isc_buffer_t key_rawbuffer;
|
||||||
|
isc_region_t key_rawregion;
|
||||||
|
char key_rawsecret[64];
|
||||||
|
dst_key_t *key = NULL;
|
||||||
|
|
||||||
|
switch (alg) {
|
||||||
|
case DST_ALG_HMACMD5:
|
||||||
|
case DST_ALG_HMACSHA1:
|
||||||
|
case DST_ALG_HMACSHA224:
|
||||||
|
case DST_ALG_HMACSHA256:
|
||||||
|
if (keysize < 1 || keysize > 512)
|
||||||
|
fatal("keysize %d out of range (must be 1-512)\n",
|
||||||
|
keysize);
|
||||||
|
break;
|
||||||
|
case DST_ALG_HMACSHA384:
|
||||||
|
case DST_ALG_HMACSHA512:
|
||||||
|
if (keysize < 1 || keysize > 1024)
|
||||||
|
fatal("keysize %d out of range (must be 1-1024)\n",
|
||||||
|
keysize);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
fatal("unsupported algorithm %d\n", alg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DO("create entropy context", isc_entropy_create(mctx, &ectx));
|
||||||
|
|
||||||
|
if (randomfile != NULL && strcmp(randomfile, "keyboard") == 0) {
|
||||||
|
randomfile = NULL;
|
||||||
|
open_keyboard = ISC_ENTROPY_KEYBOARDYES;
|
||||||
|
}
|
||||||
|
DO("start entropy source", isc_entropy_usebestsource(ectx,
|
||||||
|
&entropy_source,
|
||||||
|
randomfile,
|
||||||
|
open_keyboard));
|
||||||
|
|
||||||
|
entropy_flags = ISC_ENTROPY_BLOCKING | ISC_ENTROPY_GOODONLY;
|
||||||
|
|
||||||
|
DO("initialize dst library", dst_lib_init(mctx, ectx, entropy_flags));
|
||||||
|
|
||||||
|
DO("generate key", dst_key_generate(dns_rootname, alg,
|
||||||
|
keysize, 0, 0,
|
||||||
|
DNS_KEYPROTO_ANY,
|
||||||
|
dns_rdataclass_in, mctx, &key));
|
||||||
|
|
||||||
|
isc_buffer_init(&key_rawbuffer, &key_rawsecret, sizeof(key_rawsecret));
|
||||||
|
|
||||||
|
DO("dump key to buffer", dst_key_tobuffer(key, &key_rawbuffer));
|
||||||
|
|
||||||
|
isc_buffer_usedregion(&key_rawbuffer, &key_rawregion);
|
||||||
|
|
||||||
|
DO("bsse64 encode secret", isc_base64_totext(&key_rawregion, -1, "",
|
||||||
|
key_txtbuffer));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Shut down the entropy source now so the "stop typing" message
|
||||||
|
* does not muck with the output.
|
||||||
|
*/
|
||||||
|
if (entropy_source != NULL)
|
||||||
|
isc_entropy_destroysource(&entropy_source);
|
||||||
|
|
||||||
|
if (key != NULL)
|
||||||
|
dst_key_free(&key);
|
||||||
|
|
||||||
|
isc_entropy_detach(&ectx);
|
||||||
|
dst_lib_destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*%
|
||||||
|
* Write a key file to 'keyfile'. If 'user' is non-NULL,
|
||||||
|
* make that user the owner of the file. The key will have
|
||||||
|
* the name 'keyname' and the secret in the buffer 'secret'.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
write_key_file(const char *keyfile, const char *user,
|
||||||
|
const char *keyname, isc_buffer_t *secret,
|
||||||
|
dns_secalg_t alg) {
|
||||||
|
isc_result_t result;
|
||||||
|
const char *algname = alg_totext(alg);
|
||||||
|
FILE *fd = NULL;
|
||||||
|
|
||||||
|
DO("create keyfile", isc_file_safecreate(keyfile, &fd));
|
||||||
|
|
||||||
|
if (user != NULL) {
|
||||||
|
if (set_user(fd, user) == -1)
|
||||||
|
fatal("unable to set file owner\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
fprintf(fd, "key \"%s\" {\n\talgorithm %s;\n"
|
||||||
|
"\tsecret \"%.*s\";\n};\n",
|
||||||
|
keyname, algname,
|
||||||
|
(int)isc_buffer_usedlength(secret),
|
||||||
|
(char *)isc_buffer_base(secret));
|
||||||
|
fflush(fd);
|
||||||
|
if (ferror(fd))
|
||||||
|
fatal("write to %s failed\n", keyfile);
|
||||||
|
if (fclose(fd))
|
||||||
|
fatal("fclose(%s) failed\n", keyfile);
|
||||||
|
fprintf(stderr, "wrote key file \"%s\"\n", keyfile);
|
||||||
|
}
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user