Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
121777d3c5 | ||
|
|
c98d4625bb | ||
|
|
06b46a6935 | ||
|
|
b47ae7cd02 | ||
|
|
298c4211b1 | ||
|
|
365cfef2b9 | ||
|
|
d9f8f054b5 |
@@ -1,10 +1,2 @@
|
|||||||
*.sln.in eol=crlf
|
*.sln.in eol=crlf
|
||||||
*.vcxproj.* eol=crlf
|
*.vcxproj.* eol=crlf
|
||||||
|
|
||||||
.gitignore export-ignore
|
|
||||||
/conftools export-ignore
|
|
||||||
/doc/design export-ignore
|
|
||||||
/doc/dev export-ignore
|
|
||||||
/util/** export-ignore
|
|
||||||
/util/bindkeys.pl -export-ignore
|
|
||||||
/util/mksymtbl.pl -export-ignore
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
*.rej
|
*.rej
|
||||||
*.so
|
*.so
|
||||||
*_test
|
*_test
|
||||||
*.ipch # vscode/intellisense precompiled header
|
|
||||||
*~
|
*~
|
||||||
.ccache/
|
.ccache/
|
||||||
.cproject
|
.cproject
|
||||||
@@ -60,4 +59,3 @@ timestamp
|
|||||||
/compile_commands.json
|
/compile_commands.json
|
||||||
/cppcheck_html/
|
/cppcheck_html/
|
||||||
/cppcheck.results
|
/cppcheck.results
|
||||||
/tsan
|
|
||||||
|
|||||||
+96
-403
@@ -16,18 +16,6 @@ variables:
|
|||||||
TEST_PARALLEL_JOBS: 6
|
TEST_PARALLEL_JOBS: 6
|
||||||
|
|
||||||
MAKE: make
|
MAKE: make
|
||||||
CONFIGURE: ./configure
|
|
||||||
SCAN_BUILD: scan-build-9
|
|
||||||
SYMBOLIZER: /usr/lib/llvm-9/bin/llvm-symbolizer
|
|
||||||
ASAN_SYMBOLIZER_PATH: "$SYMBOLIZER"
|
|
||||||
|
|
||||||
CFLAGS_COMMON: -fno-omit-frame-pointer -fno-optimize-sibling-calls -O1 -g -Wall -Wextra
|
|
||||||
|
|
||||||
# Pass run-time flags to AddressSanitizer to get core dumps on error.
|
|
||||||
ASAN_OPTIONS_COMMON: abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1
|
|
||||||
|
|
||||||
TARBALL_COMPRESSOR: xz
|
|
||||||
TARBALL_EXTENSION: xz
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- precheck
|
- precheck
|
||||||
@@ -37,7 +25,6 @@ stages:
|
|||||||
- docs
|
- docs
|
||||||
- push
|
- push
|
||||||
- postcheck
|
- postcheck
|
||||||
- release
|
|
||||||
|
|
||||||
### Runner Tag Templates
|
### Runner Tag Templates
|
||||||
|
|
||||||
@@ -67,8 +54,8 @@ stages:
|
|||||||
|
|
||||||
# Alpine Linux
|
# Alpine Linux
|
||||||
|
|
||||||
.alpine-3.11-amd64: &alpine_3_11_amd64_image
|
.alpine-3.10-amd64: &alpine_3_10_amd64_image
|
||||||
image: "$CI_REGISTRY_IMAGE:alpine-3.11-amd64"
|
image: "$CI_REGISTRY_IMAGE:alpine-3.10-amd64"
|
||||||
<<: *linux_amd64
|
<<: *linux_amd64
|
||||||
|
|
||||||
# CentOS
|
# CentOS
|
||||||
@@ -81,10 +68,6 @@ stages:
|
|||||||
image: "$CI_REGISTRY_IMAGE:centos-centos7-amd64"
|
image: "$CI_REGISTRY_IMAGE:centos-centos7-amd64"
|
||||||
<<: *linux_amd64
|
<<: *linux_amd64
|
||||||
|
|
||||||
.centos-centos8-amd64: ¢os_centos8_amd64_image
|
|
||||||
image: "$CI_REGISTRY_IMAGE:centos-centos8-amd64"
|
|
||||||
<<: *linux_amd64
|
|
||||||
|
|
||||||
# Debian
|
# Debian
|
||||||
|
|
||||||
.debian-jessie-amd64: &debian_jessie_amd64_image
|
.debian-jessie-amd64: &debian_jessie_amd64_image
|
||||||
@@ -101,7 +84,7 @@ stages:
|
|||||||
|
|
||||||
.debian-buster-amd64: &debian_buster_amd64_image
|
.debian-buster-amd64: &debian_buster_amd64_image
|
||||||
image: "$CI_REGISTRY_IMAGE:debian-buster-amd64"
|
image: "$CI_REGISTRY_IMAGE:debian-buster-amd64"
|
||||||
<<: *linux_amd64
|
<<: *linux_i386
|
||||||
|
|
||||||
.debian-sid-amd64: &debian_sid_amd64_image
|
.debian-sid-amd64: &debian_sid_amd64_image
|
||||||
image: "$CI_REGISTRY_IMAGE:debian-sid-amd64"
|
image: "$CI_REGISTRY_IMAGE:debian-sid-amd64"
|
||||||
@@ -111,16 +94,10 @@ stages:
|
|||||||
image: "$CI_REGISTRY_IMAGE:debian-sid-i386"
|
image: "$CI_REGISTRY_IMAGE:debian-sid-i386"
|
||||||
<<: *linux_i386
|
<<: *linux_i386
|
||||||
|
|
||||||
# openSUSE Tumbleweed
|
|
||||||
|
|
||||||
.tumbleweed-latest-amd64: &tumbleweed_latest_amd64_image
|
|
||||||
image: "$CI_REGISTRY_IMAGE:tumbleweed-latest-amd64"
|
|
||||||
<<: *linux_amd64
|
|
||||||
|
|
||||||
# Fedora
|
# Fedora
|
||||||
|
|
||||||
.fedora-31-amd64: &fedora_31_amd64_image
|
.fedora-30-amd64: &fedora_30_amd64_image
|
||||||
image: "$CI_REGISTRY_IMAGE:fedora-31-amd64"
|
image: "$CI_REGISTRY_IMAGE:fedora-30-amd64"
|
||||||
<<: *linux_amd64
|
<<: *linux_amd64
|
||||||
|
|
||||||
# Ubuntu
|
# Ubuntu
|
||||||
@@ -148,14 +125,12 @@ stages:
|
|||||||
- merge_requests
|
- merge_requests
|
||||||
- tags
|
- tags
|
||||||
- web
|
- web
|
||||||
- schedules
|
|
||||||
|
|
||||||
.release-branch-triggering-rules: &release_branch_triggering_rules
|
.release-branch-triggering-rules: &release_branch_triggering_rules
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
- tags
|
- tags
|
||||||
- web
|
- web
|
||||||
- schedules
|
|
||||||
- master@isc-projects/bind9
|
- master@isc-projects/bind9
|
||||||
- /^v9_[1-9][0-9]$/@isc-projects/bind9
|
- /^v9_[1-9][0-9]$/@isc-projects/bind9
|
||||||
|
|
||||||
@@ -179,7 +154,7 @@ stages:
|
|||||||
expire_in: "1 week"
|
expire_in: "1 week"
|
||||||
|
|
||||||
.configure: &configure |
|
.configure: &configure |
|
||||||
${CONFIGURE} \
|
./configure \
|
||||||
--disable-maintainer-mode \
|
--disable-maintainer-mode \
|
||||||
--enable-developer \
|
--enable-developer \
|
||||||
--with-libtool \
|
--with-libtool \
|
||||||
@@ -191,13 +166,12 @@ stages:
|
|||||||
--without-make-clean \
|
--without-make-clean \
|
||||||
$EXTRA_CONFIGURE \
|
$EXTRA_CONFIGURE \
|
||||||
|| cat config.log
|
|| cat config.log
|
||||||
|
|
||||||
.build: &build_job
|
.build: &build_job
|
||||||
<<: *default_triggering_rules
|
<<: *default_triggering_rules
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
- test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}"
|
- test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}"
|
||||||
- test -n "${OOT_BUILD_WORKSPACE}" && mkdir "${OOT_BUILD_WORKSPACE}" && cd "${OOT_BUILD_WORKSPACE}"
|
|
||||||
script:
|
script:
|
||||||
- *configure
|
- *configure
|
||||||
- ${MAKE} -j${BUILD_PARALLEL_JOBS:-1} -k all V=1
|
- ${MAKE} -j${BUILD_PARALLEL_JOBS:-1} -k all V=1
|
||||||
@@ -210,36 +184,6 @@ stages:
|
|||||||
untracked: true
|
untracked: true
|
||||||
expire_in: "1 week"
|
expire_in: "1 week"
|
||||||
|
|
||||||
.windows_build: &windows_build_job
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- windows
|
|
||||||
- amd64
|
|
||||||
script:
|
|
||||||
- 'Push-Location "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build"'
|
|
||||||
- '& cmd.exe /C "vcvarsall.bat x64 & set" | Foreach-Object { if ($_ -match "(.*?)=(.*)") { Set-Item -force -path "Env:\$($matches[1])" -value "$($matches[2])" } }'
|
|
||||||
- 'Pop-Location'
|
|
||||||
- 'Set-Location win32utils'
|
|
||||||
- '& "C:/Strawberry/perl/bin/perl.exe" Configure
|
|
||||||
"with-tools-version=15.0"
|
|
||||||
"with-platform-toolset=v141"
|
|
||||||
"with-platform-version=10.0.17763.0"
|
|
||||||
"with-vcredist=C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Redist/MSVC/14.16.27012/vcredist_x64.exe"
|
|
||||||
"with-openssl=C:/OpenSSL"
|
|
||||||
"with-libxml2=C:/libxml2"
|
|
||||||
"with-libuv=C:/libuv"
|
|
||||||
"without-python"
|
|
||||||
"with-system-tests"
|
|
||||||
x64'
|
|
||||||
- 'Set-Item -path "Env:CL" -value "/MP$([Math]::Truncate($BUILD_PARALLEL_JOBS/2))"'
|
|
||||||
- '& msbuild.exe /maxCpuCount:2 /t:Build /p:Configuration=$VSCONF bind9.sln'
|
|
||||||
dependencies: []
|
|
||||||
needs:
|
|
||||||
- autoreconf:sid:amd64
|
|
||||||
artifacts:
|
|
||||||
untracked: true
|
|
||||||
expire_in: "1 week"
|
|
||||||
|
|
||||||
.setup_interfaces: &setup_interfaces |
|
.setup_interfaces: &setup_interfaces |
|
||||||
if [ "$(id -u)" -eq "0" ]; then
|
if [ "$(id -u)" -eq "0" ]; then
|
||||||
sh -x bin/tests/system/ifconfig.sh up;
|
sh -x bin/tests/system/ifconfig.sh up;
|
||||||
@@ -248,11 +192,12 @@ stages:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
.setup_softhsm: &setup_softhsm |
|
.setup_softhsm: &setup_softhsm |
|
||||||
sh -x bin/tests/prepare-softhsm2.sh
|
sh -x util/prepare-softhsm2.sh
|
||||||
|
|
||||||
.system_test: &system_test_job
|
.system_test: &system_test_job
|
||||||
<<: *default_triggering_rules
|
<<: *default_triggering_rules
|
||||||
stage: system
|
stage: system
|
||||||
|
retry: 2
|
||||||
before_script:
|
before_script:
|
||||||
- *setup_interfaces
|
- *setup_interfaces
|
||||||
- *setup_softhsm
|
- *setup_softhsm
|
||||||
@@ -271,30 +216,6 @@ stages:
|
|||||||
--results-filter "" \
|
--results-filter "" \
|
||||||
--output kyua_html
|
--output kyua_html
|
||||||
|
|
||||||
.windows_system_test: &windows_system_test_job
|
|
||||||
stage: system
|
|
||||||
tags:
|
|
||||||
- windows
|
|
||||||
- amd64
|
|
||||||
script:
|
|
||||||
- 'Push-Location bin/tests/system'
|
|
||||||
- '$ifIndex = Get-NetIPInterface -AddressFamily IPv4 -InterfaceMetric 75 | Select-Object -ExpandProperty ifIndex'
|
|
||||||
- '& C:/tools/cygwin/bin/sed.exe -i "s/^exit.*/netsh interface ipv4 set dnsservers $ifIndex dhcp/; s/\(name\|interface\)=Loopback/$ifIndex/;" ifconfig.bat'
|
|
||||||
- '& C:/tools/cygwin/bin/sed.exe -i "s/kill -f/kill -W/;" conf.sh stop.pl'
|
|
||||||
- '& cmd.exe /C ifconfig.bat up; ""'
|
|
||||||
- 'Start-Sleep 2'
|
|
||||||
- '$Env:Path = "C:/tools/cygwin/bin;$Env:Path"'
|
|
||||||
- '& sh.exe runall.sh $TEST_PARALLEL_JOBS'
|
|
||||||
- 'If (Test-Path C:/CrashDumps/*) { dir C:/CrashDumps; Throw }'
|
|
||||||
artifacts:
|
|
||||||
untracked: true
|
|
||||||
expire_in: "1 week"
|
|
||||||
when: on_failure
|
|
||||||
only:
|
|
||||||
- schedules
|
|
||||||
- tags
|
|
||||||
- web
|
|
||||||
|
|
||||||
.unit_test: &unit_test_job
|
.unit_test: &unit_test_job
|
||||||
<<: *default_triggering_rules
|
<<: *default_triggering_rules
|
||||||
stage: unit
|
stage: unit
|
||||||
@@ -383,28 +304,10 @@ misc:sid:amd64:
|
|||||||
|
|
||||||
🐞:sid:amd64:
|
🐞:sid:amd64:
|
||||||
<<: *precheck_job
|
<<: *precheck_job
|
||||||
<<: *debian_buster_amd64_image
|
|
||||||
script:
|
script:
|
||||||
- util/check-cocci
|
- util/check-cocci
|
||||||
- if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
|
- if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
|
||||||
|
|
||||||
tarball-create:sid:amd64:
|
|
||||||
<<: *debian_sid_amd64_image
|
|
||||||
stage: precheck
|
|
||||||
script:
|
|
||||||
- source version
|
|
||||||
- export BIND_DIRECTORY="bind-${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
|
|
||||||
- git archive --prefix="${BIND_DIRECTORY}/" --output="${BIND_DIRECTORY}.tar" HEAD
|
|
||||||
- mkdir "${BIND_DIRECTORY}"
|
|
||||||
- echo "SRCID=$(git rev-list --max-count=1 HEAD | cut -b1-7)" > "${BIND_DIRECTORY}/srcid"
|
|
||||||
- tar --append --file="${BIND_DIRECTORY}.tar" "${BIND_DIRECTORY}/srcid"
|
|
||||||
- ${TARBALL_COMPRESSOR} "${BIND_DIRECTORY}.tar"
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- bind-*.tar.${TARBALL_EXTENSION}
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
# Jobs for doc builds on Debian Sid (amd64)
|
# Jobs for doc builds on Debian Sid (amd64)
|
||||||
|
|
||||||
docs:sid:amd64:
|
docs:sid:amd64:
|
||||||
@@ -434,36 +337,36 @@ push:docs:sid:amd64:
|
|||||||
- master@isc-projects/bind9
|
- master@isc-projects/bind9
|
||||||
- /^v9_[1-9][0-9]$/@isc-projects/bind9
|
- /^v9_[1-9][0-9]$/@isc-projects/bind9
|
||||||
|
|
||||||
# Jobs for regular GCC builds on Alpine Linux 3.11 (amd64)
|
# Jobs for regular GCC builds on Alpine Linux 3.10 (amd64)
|
||||||
|
|
||||||
gcc:alpine3.11:amd64:
|
gcc:alpine3.10:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--enable-dnstap"
|
EXTRA_CONFIGURE: "--enable-dnstap"
|
||||||
<<: *alpine_3_11_amd64_image
|
<<: *alpine_3_10_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
|
||||||
system:gcc:alpine3.11:amd64:
|
system:gcc:alpine3.10:amd64:
|
||||||
<<: *alpine_3_11_amd64_image
|
<<: *alpine_3_10_amd64_image
|
||||||
<<: *system_test_job
|
<<: *system_test_job
|
||||||
dependencies:
|
dependencies:
|
||||||
- gcc:alpine3.11:amd64
|
- gcc:alpine3.10:amd64
|
||||||
needs: ["gcc:alpine3.11:amd64"]
|
needs: ["gcc:alpine3.10:amd64"]
|
||||||
|
|
||||||
unit:gcc:alpine3.11:amd64:
|
unit:gcc:alpine3.10:amd64:
|
||||||
<<: *alpine_3_11_amd64_image
|
<<: *alpine_3_10_amd64_image
|
||||||
<<: *unit_test_job
|
<<: *unit_test_job
|
||||||
dependencies:
|
dependencies:
|
||||||
- gcc:alpine3.11:amd64
|
- gcc:alpine3.10:amd64
|
||||||
needs: ["gcc:alpine3.11:amd64"]
|
needs: ["gcc:alpine3.10:amd64"]
|
||||||
|
|
||||||
# Jobs for regular GCC builds on CentOS 6 (amd64)
|
# Jobs for regular GCC builds on CentOS 6 (amd64)
|
||||||
|
|
||||||
gcc:centos6:amd64:
|
gcc:centos6:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2 --disable-warn-error"
|
EXTRA_CONFIGURE: "--with-libidn2 --disable-warn-error"
|
||||||
<<: *centos_centos6_amd64_image
|
<<: *centos_centos6_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -487,7 +390,7 @@ unit:gcc:centos6:amd64:
|
|||||||
gcc:centos7:amd64:
|
gcc:centos7:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2"
|
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2"
|
||||||
<<: *centos_centos7_amd64_image
|
<<: *centos_centos7_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -506,36 +409,12 @@ unit:gcc:centos7:amd64:
|
|||||||
- gcc:centos7:amd64
|
- gcc:centos7:amd64
|
||||||
needs: ["gcc:centos7:amd64"]
|
needs: ["gcc:centos7:amd64"]
|
||||||
|
|
||||||
# Jobs for regular GCC builds on CentOS 8 (amd64)
|
|
||||||
|
|
||||||
gcc:centos8:amd64:
|
|
||||||
variables:
|
|
||||||
CC: gcc
|
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
|
||||||
EXTRA_CONFIGURE: "--with-libidn2"
|
|
||||||
<<: *centos_centos8_amd64_image
|
|
||||||
<<: *build_job
|
|
||||||
|
|
||||||
system:gcc:centos8:amd64:
|
|
||||||
<<: *centos_centos8_amd64_image
|
|
||||||
<<: *system_test_job
|
|
||||||
dependencies:
|
|
||||||
- gcc:centos8:amd64
|
|
||||||
needs: ["gcc:centos8:amd64"]
|
|
||||||
|
|
||||||
unit:gcc:centos8:amd64:
|
|
||||||
<<: *centos_centos8_amd64_image
|
|
||||||
<<: *unit_test_job
|
|
||||||
dependencies:
|
|
||||||
- gcc:centos8:amd64
|
|
||||||
needs: ["gcc:centos8:amd64"]
|
|
||||||
|
|
||||||
# Jobs for regular GCC builds on Debian 8 Jessie (amd64)
|
# Jobs for regular GCC builds on Debian 8 Jessie (amd64)
|
||||||
|
|
||||||
gcc:jessie:amd64:
|
gcc:jessie:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -O2"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--without-cmocka --with-python --disable-geoip"
|
EXTRA_CONFIGURE: "--without-cmocka --with-python --disable-geoip"
|
||||||
<<: *debian_jessie_amd64_image
|
<<: *debian_jessie_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -559,7 +438,7 @@ unit:gcc:jessie:amd64:
|
|||||||
gcc:stretch:amd64:
|
gcc:stretch:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -O2"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
<<: *debian_stretch_amd64_image
|
<<: *debian_stretch_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
|
||||||
@@ -582,7 +461,7 @@ unit:gcc:stretch:amd64:
|
|||||||
gcc:buster:amd64:
|
gcc:buster:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
<<: *debian_buster_amd64_image
|
<<: *debian_buster_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
|
||||||
@@ -600,44 +479,12 @@ unit:gcc:buster:amd64:
|
|||||||
- gcc:buster:amd64
|
- gcc:buster:amd64
|
||||||
needs: ["gcc:buster:amd64"]
|
needs: ["gcc:buster:amd64"]
|
||||||
|
|
||||||
# Jobs for scan-build builds on Debian Buster (amd64)
|
|
||||||
|
|
||||||
.scan_build: &scan_build |
|
|
||||||
${SCAN_BUILD} --html-title="BIND 9 ($CI_COMMIT_SHORT_SHA)" \
|
|
||||||
--keep-cc \
|
|
||||||
--status-bugs \
|
|
||||||
--keep-going \
|
|
||||||
-o scan-build.reports \
|
|
||||||
make -j${BUILD_PARALLEL_JOBS:-1} all V=1
|
|
||||||
|
|
||||||
scan-build:buster:amd64:
|
|
||||||
<<: *default_triggering_rules
|
|
||||||
<<: *debian_buster_amd64_image
|
|
||||||
stage: postcheck
|
|
||||||
variables:
|
|
||||||
CC: clang-9
|
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
|
||||||
CONFIGURE: "${SCAN_BUILD} ./configure"
|
|
||||||
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2"
|
|
||||||
script:
|
|
||||||
- *configure
|
|
||||||
- *scan_build
|
|
||||||
dependencies:
|
|
||||||
- autoreconf:sid:amd64
|
|
||||||
needs:
|
|
||||||
- autoreconf:sid:amd64
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- scan-build.reports/
|
|
||||||
expire_in: "1 week"
|
|
||||||
when: on_failure
|
|
||||||
|
|
||||||
# Jobs for regular GCC builds on Debian Sid (amd64)
|
# Jobs for regular GCC builds on Debian Sid (amd64)
|
||||||
|
|
||||||
gcc:sid:amd64:
|
gcc:sid:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -O3"
|
CFLAGS: "-Wall -Wextra -O3 -g"
|
||||||
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2"
|
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2"
|
||||||
RUN_MAKE_INSTALL: 1
|
RUN_MAKE_INSTALL: 1
|
||||||
MAKE: bear make
|
MAKE: bear make
|
||||||
@@ -665,67 +512,12 @@ cppcheck:gcc:sid:amd64:
|
|||||||
- gcc:sid:amd64
|
- gcc:sid:amd64
|
||||||
needs: ["gcc:sid:amd64"]
|
needs: ["gcc:sid:amd64"]
|
||||||
|
|
||||||
# Job for out-of-tree GCC build on Debian Sid (amd64)
|
|
||||||
|
|
||||||
oot:sid:amd64:
|
|
||||||
variables:
|
|
||||||
CC: gcc
|
|
||||||
CFLAGS: "${CFLAGS_COMMON} -O3"
|
|
||||||
CONFIGURE: ../configure
|
|
||||||
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2"
|
|
||||||
RUN_MAKE_INSTALL: 1
|
|
||||||
OOT_BUILD_WORKSPACE: workspace
|
|
||||||
<<: *debian_sid_amd64_image
|
|
||||||
<<: *build_job
|
|
||||||
|
|
||||||
# Jobs for tarball GCC builds on Debian Sid (amd64)
|
|
||||||
|
|
||||||
tarball:sid:amd64:
|
|
||||||
variables:
|
|
||||||
CC: gcc
|
|
||||||
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2"
|
|
||||||
RUN_MAKE_INSTALL: 1
|
|
||||||
<<: *debian_sid_amd64_image
|
|
||||||
<<: *build_job
|
|
||||||
before_script:
|
|
||||||
- tar --extract --file bind-*.tar.${TARBALL_EXTENSION}
|
|
||||||
- rm -f bind-*.tar.${TARBALL_EXTENSION}
|
|
||||||
- cd bind-*
|
|
||||||
dependencies:
|
|
||||||
- tarball-create:sid:amd64
|
|
||||||
needs: ["tarball-create:sid:amd64"]
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
system:tarball:sid:amd64:
|
|
||||||
<<: *debian_sid_amd64_image
|
|
||||||
<<: *system_test_job
|
|
||||||
before_script:
|
|
||||||
- cd bind-*
|
|
||||||
- *setup_interfaces
|
|
||||||
dependencies:
|
|
||||||
- tarball:sid:amd64
|
|
||||||
needs: ["tarball:sid:amd64"]
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
unit:tarball:sid:amd64:
|
|
||||||
<<: *debian_sid_amd64_image
|
|
||||||
<<: *unit_test_job
|
|
||||||
before_script:
|
|
||||||
- cd bind-*
|
|
||||||
dependencies:
|
|
||||||
- tarball:sid:amd64
|
|
||||||
needs: ["tarball:sid:amd64"]
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
# Jobs for regular GCC builds on Debian Sid (i386)
|
# Jobs for regular GCC builds on Debian Sid (i386)
|
||||||
|
|
||||||
gcc:sid:i386:
|
gcc:sid:i386:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O3 -g"
|
||||||
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2 --without-python"
|
EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2 --without-python"
|
||||||
<<: *debian_sid_i386_image
|
<<: *debian_sid_i386_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -744,60 +536,36 @@ unit:gcc:sid:i386:
|
|||||||
- gcc:sid:i386
|
- gcc:sid:i386
|
||||||
needs: ["gcc:sid:i386"]
|
needs: ["gcc:sid:i386"]
|
||||||
|
|
||||||
# Jobs for regular GCC builds on openSUSE Tumbleweed (amd64)
|
# Jobs for regular GCC builds on Fedora 30 (amd64)
|
||||||
|
|
||||||
gcc:tumbleweed:amd64:
|
gcc:fedora30:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2"
|
EXTRA_CONFIGURE: "--with-libidn2"
|
||||||
<<: *tumbleweed_latest_amd64_image
|
<<: *fedora_30_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
|
||||||
system:gcc:tumbleweed:amd64:
|
system:gcc:fedora30:amd64:
|
||||||
<<: *tumbleweed_latest_amd64_image
|
<<: *fedora_30_amd64_image
|
||||||
<<: *system_test_job
|
<<: *system_test_job
|
||||||
dependencies:
|
dependencies:
|
||||||
- gcc:tumbleweed:amd64
|
- gcc:fedora30:amd64
|
||||||
needs: ["gcc:tumbleweed:amd64"]
|
needs: ["gcc:fedora30:amd64"]
|
||||||
|
|
||||||
unit:gcc:tumbleweed:amd64:
|
unit:gcc:fedora30:amd64:
|
||||||
<<: *tumbleweed_latest_amd64_image
|
<<: *fedora_30_amd64_image
|
||||||
<<: *unit_test_job
|
<<: *unit_test_job
|
||||||
dependencies:
|
dependencies:
|
||||||
- gcc:tumbleweed:amd64
|
- gcc:fedora30:amd64
|
||||||
needs: ["gcc:tumbleweed:amd64"]
|
needs: ["gcc:fedora30:amd64"]
|
||||||
|
|
||||||
# Jobs for regular GCC builds on Fedora 31 (amd64)
|
|
||||||
|
|
||||||
gcc:fedora31:amd64:
|
|
||||||
variables:
|
|
||||||
CC: gcc
|
|
||||||
CFLAGS: "${CFLAGS_COMMON} -O1"
|
|
||||||
EXTRA_CONFIGURE: "--with-libidn2"
|
|
||||||
<<: *fedora_31_amd64_image
|
|
||||||
<<: *build_job
|
|
||||||
|
|
||||||
system:gcc:fedora31:amd64:
|
|
||||||
<<: *fedora_31_amd64_image
|
|
||||||
<<: *system_test_job
|
|
||||||
dependencies:
|
|
||||||
- gcc:fedora31:amd64
|
|
||||||
needs: ["gcc:fedora31:amd64"]
|
|
||||||
|
|
||||||
unit:gcc:fedora31:amd64:
|
|
||||||
<<: *fedora_31_amd64_image
|
|
||||||
<<: *unit_test_job
|
|
||||||
dependencies:
|
|
||||||
- gcc:fedora31:amd64
|
|
||||||
needs: ["gcc:fedora31:amd64"]
|
|
||||||
|
|
||||||
# Jobs for regular GCC builds on Ubuntu 16.04 Xenial Xerus (amd64)
|
# Jobs for regular GCC builds on Ubuntu 16.04 Xenial Xerus (amd64)
|
||||||
|
|
||||||
gcc:xenial:amd64:
|
gcc:xenial:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -O2"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--disable-geoip"
|
EXTRA_CONFIGURE: "--disable-geoip"
|
||||||
<<: *ubuntu_xenial_amd64_image
|
<<: *ubuntu_xenial_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -821,7 +589,7 @@ unit:gcc:xenial:amd64:
|
|||||||
gcc:bionic:amd64:
|
gcc:bionic:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -Og"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2"
|
EXTRA_CONFIGURE: "--with-libidn2"
|
||||||
<<: *ubuntu_bionic_amd64_image
|
<<: *ubuntu_bionic_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -845,15 +613,13 @@ unit:gcc:bionic:amd64:
|
|||||||
asan:sid:amd64:
|
asan:sid:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -fsanitize=address,undefined -DISC_MEM_USE_INTERNAL_MALLOC=0"
|
CFLAGS: "-Wall -Wextra -O2 -g -fsanitize=address,undefined -DISC_MEM_USE_INTERNAL_MALLOC=0"
|
||||||
LDFLAGS: "-fsanitize=address,undefined"
|
LDFLAGS: "-fsanitize=address,undefined"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2"
|
EXTRA_CONFIGURE: "--with-libidn2"
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
|
||||||
system:asan:sid:amd64:
|
system:asan:sid:amd64:
|
||||||
variables:
|
|
||||||
ASAN_OPTIONS: ${ASAN_OPTIONS_COMMON}
|
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *system_test_job
|
<<: *system_test_job
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -861,75 +627,16 @@ system:asan:sid:amd64:
|
|||||||
needs: ["asan:sid:amd64"]
|
needs: ["asan:sid:amd64"]
|
||||||
|
|
||||||
unit:asan:sid:amd64:
|
unit:asan:sid:amd64:
|
||||||
variables:
|
|
||||||
ASAN_OPTIONS: ${ASAN_OPTIONS_COMMON}
|
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *unit_test_job
|
<<: *unit_test_job
|
||||||
dependencies:
|
dependencies:
|
||||||
- asan:sid:amd64
|
- asan:sid:amd64
|
||||||
needs: ["asan:sid:amd64"]
|
needs: ["asan:sid:amd64"]
|
||||||
|
|
||||||
# Jobs for GCC builds with TSAN enabled on Debian Sid (amd64)
|
|
||||||
|
|
||||||
tsan:buster:amd64:
|
|
||||||
<<: *debian_buster_amd64_image
|
|
||||||
<<: *build_job
|
|
||||||
variables:
|
|
||||||
CC: clang-9
|
|
||||||
CFLAGS: "${CFLAGS_COMMON} -fsanitize=thread -DISC_MEM_USE_INTERNAL_MALLOC=0"
|
|
||||||
LDFLAGS: "-fsanitize=thread"
|
|
||||||
EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock"
|
|
||||||
|
|
||||||
system:tsan:buster:amd64:
|
|
||||||
variables:
|
|
||||||
TSAN_OPTIONS: "second_deadlock_stack=1 history_size=7 log_exe_name=true log_path=tsan external_symbolizer_path=$SYMBOLIZER exitcode=0"
|
|
||||||
before_script:
|
|
||||||
- *setup_interfaces
|
|
||||||
- echo $TSAN_OPTIONS
|
|
||||||
<<: *debian_buster_amd64_image
|
|
||||||
<<: *system_test_job
|
|
||||||
dependencies:
|
|
||||||
- tsan:buster:amd64
|
|
||||||
needs: ["tsan:buster:amd64"]
|
|
||||||
allow_failure: true
|
|
||||||
after_script:
|
|
||||||
- find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
|
|
||||||
artifacts:
|
|
||||||
expire_in: "1 week"
|
|
||||||
paths:
|
|
||||||
- bin/tests/system/*/tsan.*
|
|
||||||
- bin/tests/system/*/*/tsan.*
|
|
||||||
- tsan/
|
|
||||||
when: on_failure
|
|
||||||
|
|
||||||
unit:tsan:buster:amd64:
|
|
||||||
variables:
|
|
||||||
TSAN_OPTIONS: "second_deadlock_stack=1 history_size=7 log_exe_name=true log_path=tsan external_symbolizer_path=$SYMBOLIZER"
|
|
||||||
before_script:
|
|
||||||
- echo $TSAN_OPTIONS
|
|
||||||
- lib/isc/tests/result_test
|
|
||||||
<<: *debian_buster_amd64_image
|
|
||||||
<<: *unit_test_job
|
|
||||||
dependencies:
|
|
||||||
- tsan:buster:amd64
|
|
||||||
needs: ["tsan:buster:amd64"]
|
|
||||||
allow_failure: true
|
|
||||||
after_script:
|
|
||||||
- find lib -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
|
|
||||||
artifacts:
|
|
||||||
expire_in: "1 week"
|
|
||||||
paths:
|
|
||||||
- lib/*/tests/tsan.*
|
|
||||||
- tsan/
|
|
||||||
- kyua.log
|
|
||||||
- kyua.results
|
|
||||||
- kyua_html/
|
|
||||||
when: on_failure
|
|
||||||
|
|
||||||
rwlock:sid:amd64:
|
rwlock:sid:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -Wall -Wextra -O2 -g -DISC_MEM_USE_INTERNAL_MALLOC=0"
|
CFLAGS: "-Wall -Wextra -O2 -g -DISC_MEM_USE_INTERNAL_MALLOC=0"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock"
|
EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock"
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -952,7 +659,7 @@ unit:rwlock:sid:amd64:
|
|||||||
mutexatomics:sid:amd64:
|
mutexatomics:sid:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -DISC_MEM_USE_INTERNAL_MALLOC=0"
|
CFLAGS: "-Wall -Wextra -O2 -g -DISC_MEM_USE_INTERNAL_MALLOC=0"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2 --enable-mutex-atomics"
|
EXTRA_CONFIGURE: "--with-libidn2 --enable-mutex-atomics"
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -977,7 +684,7 @@ mutexatomics:sid:amd64:
|
|||||||
clang:stretch:amd64:
|
clang:stretch:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: clang
|
CC: clang
|
||||||
CFLAGS: "${CFLAGS_COMMON} -Wenum-conversion"
|
CFLAGS: "-Wall -Wextra -Wenum-conversion -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--with-python=python3"
|
EXTRA_CONFIGURE: "--with-python=python3"
|
||||||
<<: *debian_stretch_amd64_image
|
<<: *debian_stretch_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -994,7 +701,7 @@ unit:clang:stretch:amd64:
|
|||||||
clang:stretch:i386:
|
clang:stretch:i386:
|
||||||
variables:
|
variables:
|
||||||
CC: clang
|
CC: clang
|
||||||
CFLAGS: "${CFLAGS_COMMON} -Wenum-conversion"
|
CFLAGS: "-Wall -Wextra -Wenum-conversion -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--with-python=python2"
|
EXTRA_CONFIGURE: "--with-python=python2"
|
||||||
<<: *debian_stretch_i386_image
|
<<: *debian_stretch_i386_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -1004,7 +711,7 @@ clang:stretch:i386:
|
|||||||
pkcs11:sid:amd64:
|
pkcs11:sid:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--enable-native-pkcs11 --with-pkcs11=/usr/lib/softhsm/libsofthsm2.so"
|
EXTRA_CONFIGURE: "--enable-native-pkcs11 --with-pkcs11=/usr/lib/softhsm/libsofthsm2.so"
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -1027,7 +734,7 @@ unit:pkcs11:sid:amd64:
|
|||||||
|
|
||||||
clang:freebsd11.3:amd64:
|
clang:freebsd11.3:amd64:
|
||||||
variables:
|
variables:
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
<<: *freebsd_amd64
|
<<: *freebsd_amd64
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
|
||||||
@@ -1049,7 +756,7 @@ unit:clang:freebsd11.3:amd64:
|
|||||||
|
|
||||||
clang:freebsd12.0:amd64:
|
clang:freebsd12.0:amd64:
|
||||||
variables:
|
variables:
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -O2 -g"
|
||||||
EXTRA_CONFIGURE: "--enable-dnstap"
|
EXTRA_CONFIGURE: "--enable-dnstap"
|
||||||
<<: *freebsd_amd64
|
<<: *freebsd_amd64
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -1083,7 +790,6 @@ system:clang:openbsd6.5:amd64:
|
|||||||
- clang:openbsd6.5:amd64
|
- clang:openbsd6.5:amd64
|
||||||
needs: ["clang:openbsd6.5:amd64"]
|
needs: ["clang:openbsd6.5:amd64"]
|
||||||
only:
|
only:
|
||||||
- schedules
|
|
||||||
- tags
|
- tags
|
||||||
- web
|
- web
|
||||||
|
|
||||||
@@ -1092,7 +798,7 @@ system:clang:openbsd6.5:amd64:
|
|||||||
nolibtool:sid:amd64:
|
nolibtool:sid:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "-Wall -Wextra -Og -g"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2 --without-libtool --with-dlopen"
|
EXTRA_CONFIGURE: "--with-libidn2 --without-libtool --with-dlopen"
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
@@ -1114,74 +820,61 @@ unit:nolibtool:sid:amd64:
|
|||||||
# Jobs for Visual Studio 2017 builds on Windows (amd64)
|
# Jobs for Visual Studio 2017 builds on Windows (amd64)
|
||||||
|
|
||||||
msvc:windows:amd64:
|
msvc:windows:amd64:
|
||||||
<<: *windows_build_job
|
|
||||||
<<: *default_triggering_rules
|
<<: *default_triggering_rules
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
- amd64
|
||||||
variables:
|
variables:
|
||||||
VSCONF: Release
|
VSCONF: Release
|
||||||
|
script:
|
||||||
|
- 'Push-Location "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build"'
|
||||||
|
- '& cmd.exe /C "vcvarsall.bat x64 & set" | Foreach-Object { if ($_ -match "(.*?)=(.*)") { Set-Item -force -path "Env:\$($matches[1])" -value "$($matches[2])" } }'
|
||||||
|
- 'Pop-Location'
|
||||||
|
- 'Set-Location win32utils'
|
||||||
|
- '& "C:/Strawberry/perl/bin/perl.exe" Configure
|
||||||
|
"with-tools-version=15.0"
|
||||||
|
"with-platform-toolset=v141"
|
||||||
|
"with-platform-version=10.0.17763.0"
|
||||||
|
"with-vcredist=C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Redist/MSVC/14.16.27012/vcredist_x64.exe"
|
||||||
|
"with-openssl=C:/OpenSSL"
|
||||||
|
"with-libxml2=C:/libxml2"
|
||||||
|
"without-python"
|
||||||
|
"with-system-tests"
|
||||||
|
x64'
|
||||||
|
- 'Set-Item -path "Env:CL" -value "/MP$([Math]::Truncate($BUILD_PARALLEL_JOBS/2))"'
|
||||||
|
- '& msbuild.exe /maxCpuCount:2 /t:Build /p:Configuration=$VSCONF bind9.sln'
|
||||||
|
dependencies: []
|
||||||
|
needs:
|
||||||
|
- autoreconf:sid:amd64
|
||||||
|
artifacts:
|
||||||
|
untracked: true
|
||||||
|
expire_in: "1 week"
|
||||||
|
|
||||||
system:msvc:windows:amd64:
|
system:msvc:windows:amd64:
|
||||||
<<: *windows_system_test_job
|
stage: system
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
- amd64
|
||||||
variables:
|
variables:
|
||||||
VSCONF: Release
|
VSCONF: Release
|
||||||
|
script:
|
||||||
|
- 'Push-Location bin/tests/system'
|
||||||
|
- '$ifIndex = Get-NetIPInterface -AddressFamily IPv4 -InterfaceMetric 75 | Select-Object -ExpandProperty ifIndex'
|
||||||
|
- '& C:/tools/cygwin/bin/sed.exe -i "s/^exit.*/netsh interface ipv4 set dnsservers $ifIndex dhcp/; s/\(name\|interface\)=Loopback/$ifIndex/;" ifconfig.bat'
|
||||||
|
- '& C:/tools/cygwin/bin/sed.exe -i "s/kill -f/kill -W/;" conf.sh stop.pl'
|
||||||
|
- '& cmd.exe /C ifconfig.bat up; ""'
|
||||||
|
- 'Start-Sleep 2'
|
||||||
|
- '$Env:Path = "C:/tools/cygwin/bin;$Env:Path"'
|
||||||
|
- '& sh.exe runall.sh $TEST_PARALLEL_JOBS'
|
||||||
|
- 'If (Test-Path C:/CrashDumps/*) { dir C:/CrashDumps; Throw }'
|
||||||
dependencies:
|
dependencies:
|
||||||
- msvc:windows:amd64
|
- msvc:windows:amd64
|
||||||
needs: ["msvc:windows:amd64"]
|
needs: ["msvc:windows:amd64"]
|
||||||
|
artifacts:
|
||||||
msvc-debug:windows:amd64:
|
untracked: true
|
||||||
<<: *windows_build_job
|
expire_in: "1 week"
|
||||||
variables:
|
when: on_failure
|
||||||
VSCONF: Debug
|
|
||||||
only:
|
only:
|
||||||
- schedules
|
|
||||||
- tags
|
- tags
|
||||||
- web
|
- web
|
||||||
|
|
||||||
system:msvc-debug:windows:amd64:
|
|
||||||
<<: *windows_system_test_job
|
|
||||||
variables:
|
|
||||||
VSCONF: Debug
|
|
||||||
dependencies:
|
|
||||||
- msvc-debug:windows:amd64
|
|
||||||
needs: ["msvc-debug:windows:amd64"]
|
|
||||||
|
|
||||||
# Job producing a release tarball
|
|
||||||
|
|
||||||
release:sid:amd64:
|
|
||||||
<<: *debian_sid_amd64_image
|
|
||||||
stage: release
|
|
||||||
script:
|
|
||||||
# Determine BIND version
|
|
||||||
- source version
|
|
||||||
- export BIND_DIRECTORY="bind-${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
|
|
||||||
# Remove redundant files and system test utilities from Windows build artifacts
|
|
||||||
- find Build/Release/ -name "*.pdb" -print -delete
|
|
||||||
- find Build/Debug/ \( -name "*.bsc" -o -name "*.idb" \) -print -delete
|
|
||||||
- find Build/ -regextype posix-extended -regex "Build/.*/($(find bin/tests/ -type f | sed -nE "s|^bin/tests(/system)?/win32/(.*)\.vcxproj$|\2|p" | paste -d"|" -s))\..*" -print -delete
|
|
||||||
# Create Windows zips
|
|
||||||
- openssl dgst -sha256 "${BIND_DIRECTORY}.tar.${TARBALL_EXTENSION}" | tee Build/Release/SHA256 Build/Debug/SHA256
|
|
||||||
- ( cd Build/Release; zip "../../BIND${BIND_DIRECTORY#bind-}.x64.zip" * )
|
|
||||||
- ( cd Build/Debug; zip "../../BIND${BIND_DIRECTORY#bind-}.debug.x64.zip" * )
|
|
||||||
# Prepare release tarball contents (tarballs + zips + documentation)
|
|
||||||
- mkdir -p release/doc/arm
|
|
||||||
- pushd release
|
|
||||||
- mv "../${BIND_DIRECTORY}.tar.${TARBALL_EXTENSION}" ../BIND*.zip .
|
|
||||||
- tar --extract --file="${BIND_DIRECTORY}.tar.${TARBALL_EXTENSION}"
|
|
||||||
- mv "${BIND_DIRECTORY}"/{CHANGES*,COPYRIGHT,LICENSE,README,srcid} .
|
|
||||||
- mv "${BIND_DIRECTORY}"/doc/arm/{Bv9ARM{*.html,.pdf},man.*,notes.{html,pdf,txt}} doc/arm/
|
|
||||||
- rm -rf "${BIND_DIRECTORY}"
|
|
||||||
- cp doc/arm/notes.html "RELEASE-NOTES-${BIND_DIRECTORY}.html"
|
|
||||||
- cp doc/arm/notes.pdf "RELEASE-NOTES-${BIND_DIRECTORY}.pdf"
|
|
||||||
- cp doc/arm/notes.txt "RELEASE-NOTES-${BIND_DIRECTORY}.txt"
|
|
||||||
- popd
|
|
||||||
# Create release tarball
|
|
||||||
- tar --create --file="${CI_COMMIT_TAG}.tar.gz" --gzip release/
|
|
||||||
dependencies:
|
|
||||||
- tarball-create:sid:amd64
|
|
||||||
- msvc:windows:amd64
|
|
||||||
- msvc-debug:windows:amd64
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "*.tar.gz"
|
|
||||||
expire_in: "1 week"
|
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
## Release Schedule
|
|
||||||
|
|
||||||
**Tagging Deadline:**
|
|
||||||
|
|
||||||
**Public Release:**
|
|
||||||
|
|
||||||
## Release Checklist
|
|
||||||
|
|
||||||
## 2 Working Days Before the Tagging Deadline
|
|
||||||
|
|
||||||
- [ ] ***(QA)*** Check whether all issues assigned to the release milestone are resolved[^1].
|
|
||||||
- [ ] ***(QA)*** Ensure that there are no outstanding merge requests in the private repository[^1] (Subscription Edition only).
|
|
||||||
- [ ] ***(QA)*** Ensure all merge requests marked for backporting have been indeed backported.
|
|
||||||
|
|
||||||
## Before the Tagging Deadline
|
|
||||||
|
|
||||||
- [ ] ***(QA)*** Inform Support/Marketing of impending release (and give estimated release dates).
|
|
||||||
- [ ] ***(QA)*** Check Perflab to ensure there has been no unexplained drop in performance for the versions being released.
|
|
||||||
- [ ] ***(SwEng)*** Update API files for libraries with new version information.
|
|
||||||
- [ ] ***(SwEng)*** Change software version and library versions in `configure.ac` (new major release only).
|
|
||||||
- [ ] ***(SwEng)*** Rebuild `configure` using Autoconf on `docs.isc.org`.
|
|
||||||
- [ ] ***(SwEng)*** Update `CHANGES`.
|
|
||||||
- [ ] ***(SwEng)*** Update `CHANGES.SE` (Subscription Edition only).
|
|
||||||
- [ ] ***(SwEng)*** Update `README.md`.
|
|
||||||
- [ ] ***(SwEng)*** Update `version`.
|
|
||||||
- [ ] ***(SwEng)*** Build documentation on `docs.isc.org`.
|
|
||||||
- [ ] ***(QA)*** Check that all the above steps were performed correctly.
|
|
||||||
- [ ] ***(QA)*** Check that the contents of release notes match the merge requests comprising the releases.
|
|
||||||
- [ ] ***(QA)*** Check that the formatting is correct for text, PDF, and HTML versions of release notes.
|
|
||||||
- [ ] ***(SwEng)*** Tag the releases[^2]. (Tags may only be pushed to the public repository for releases which are *not* security releases.)
|
|
||||||
- [ ] ***(SwEng)*** If this is the first tag for a release (e.g. beta), create a release branch named `release_v9_X_Y` to allow development to continue on the maintenance branch whilst release engineering continues.
|
|
||||||
|
|
||||||
## Before the ASN Deadline (for ASN Releases) or the Public Release Date (for Regular Releases)
|
|
||||||
|
|
||||||
- [ ] ***(QA)*** Verify GitLab CI results for the tags created and prepare a QA report for the releases to be published.
|
|
||||||
- [ ] ***(QA)*** Request signatures for the tarballs, providing their location and checksums.
|
|
||||||
- [ ] ***(Signers)*** Validate tarball checksums, sign tarballs, and upload signatures.
|
|
||||||
- [ ] ***(QA)*** Verify tarball signatures and check tarball checksums again.
|
|
||||||
- [ ] ***(Support)*** Pre-publish ASN and/or Subscription Edition tarballs so that packages can be built.
|
|
||||||
- [ ] ***(QA)*** Build and test ASN and/or Subscription Edition packages.
|
|
||||||
- [ ] ***(QA)*** Notify Support that the releases have been prepared.
|
|
||||||
- [ ] ***(Support)*** Send out ASNs (if applicable).
|
|
||||||
|
|
||||||
## On the Day of Public Release
|
|
||||||
|
|
||||||
- [ ] ***(Support)*** Wait for clearance from Security Officer to proceed with the public release (if applicable).
|
|
||||||
- [ ] ***(Support)*** Place tarballs in public location on FTP site.
|
|
||||||
- [ ] ***(Support)*** Publish links to downloads on ISC website.
|
|
||||||
- [ ] ***(Support)*** Write release email to *bind-announce*.
|
|
||||||
- [ ] ***(Support)*** Write email to *bind-users* (if a major release).
|
|
||||||
- [ ] ***(Support)*** Update tickets in case of waiting support customers.
|
|
||||||
- [ ] ***(QA)*** Build and test any outstanding private packages.
|
|
||||||
- [ ] ***(QA)*** Build public packages (`*.deb`, RPMs).
|
|
||||||
- [ ] ***(QA)*** Inform Marketing of the release.
|
|
||||||
- [ ] ***(QA)*** Update the internal [BIND release dates wiki page](https://wiki.isc.org/bin/view/Main/BindReleaseDates) when public announcement has been made.
|
|
||||||
- [ ] ***(Marketing)*** Post short note to Twitter.
|
|
||||||
- [ ] ***(Marketing)*** Update [Wikipedia entry for BIND](https://en.wikipedia.org/wiki/BIND).
|
|
||||||
- [ ] ***(Marketing)*** Write blog article (if a major release).
|
|
||||||
- [ ] ***(QA)*** Ensure all new tags are annotated and signed.
|
|
||||||
- [ ] ***(SwEng)*** Push tags for the published releases to the public repository.
|
|
||||||
- [ ] ***(SwEng)*** Merge the automatically prepared `prep 9.X.Y` commit which updates `version` and documentation on the release branch into the relevant maintenance branch (`v9_X`).
|
|
||||||
|
|
||||||
[^1]: If not, use the time remaining until the tagging deadline to ensure all outstanding issues are either resolved or moved to a different milestone.
|
|
||||||
|
|
||||||
[^2]: Preferred command line: `git tag -u <DEVELOPER_KEYID> -a -s -m "BIND 9.X.Y[alphatag]" v9_X_Y[alphatag]`, where `[alphatag]` is an optional string such as `b1`, `rc1`, etc.
|
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
## Release Checklist
|
||||||
|
|
||||||
|
- [ ] (Manager) Check for the presence of a milestone for the release:
|
||||||
|
- If there is a milestone, are all the issues for the milestone resolved? (other than this checklist).
|
||||||
|
- [ ] (Manager) Inform Support/Marketing of impending release (and give estimated release dates).
|
||||||
|
- (SwEng) Prepare the sources for tarball generation:
|
||||||
|
- [ ] Check perflab to ensure there has been no unexplained drop in performance for the version being released.
|
||||||
|
- [ ] Ensure that there are no outstanding merge requests in the private repository (subscription version only).
|
||||||
|
- [ ] Update API files for libraries with new version information.
|
||||||
|
- [ ] Change software version and library versions in configure.in (new major release only).
|
||||||
|
- [ ] Rebuild configure using autoconf on docs.isc.org.
|
||||||
|
- [ ] Update CHANGES.
|
||||||
|
- [ ] Update CHANGES.SE (subscription branch only).
|
||||||
|
- [ ] Update "version".
|
||||||
|
- [ ] Update "readme.md".
|
||||||
|
- Check the release notes are correct:
|
||||||
|
- [ ] Compare content with merge requests for the release.
|
||||||
|
- [ ] Check formatting.
|
||||||
|
- [ ] Build documentation on docs.isc.org.
|
||||||
|
- [ ] Commit changes and make sure the gitlab-ci tests are passing.
|
||||||
|
- [ ] Push the changes and tag ("alphatag" is an optional string such as "b1", "rc1" etc.). (```git tag -u <DEVELOPER_KEYID> -a -s -m "BIND 9.X.Y[alphatag]" v9_X_Y[alphatag]```)
|
||||||
|
- [ ] If this is the first tag for a release (e.g. beta), create a release branch named `release_v9_X_Y` (this allows development to continue on the release branch whilst release engineering continues).
|
||||||
|
- [ ] (SwEng) Run the "make release" Jenkins job to produce the tarballs and zips.
|
||||||
|
- [ ] (SwEng) Ask QA to sanity check the tarball and zips (passing to them the number of the Jenkins job).
|
||||||
|
- [ ] (QA) Sanity check the tarballs.
|
||||||
|
- [ ] (QA) Request the signature on the tarballs.
|
||||||
|
- [ ] (QA) Check signatures on tarballs.
|
||||||
|
- [ ] (QA) Tell Support to handle notification of release.
|
||||||
|
- [ ] (Manager) Inform Marketing of the release
|
||||||
|
- [ ] (Manager) Update the internal [BIND release dates wiki page](https://wiki.isc.org/bin/view/Main/BindReleaseDates) when public announcement has been made.
|
||||||
|
- [ ] (SwEng) Push tags for the published releases to the public repository.
|
||||||
|
- [ ] (SwEng) Update DEB and RPM packages.
|
||||||
|
- [ ] (SwEng) Merge the automatically prepared `prep 9.X.Y` commit which updates `version` and documentation on the release branch into the relevant maintenance branch (`v9_X`).
|
||||||
|
|
||||||
|
## Support
|
||||||
|
- [ ] Make tarballs and signatures available to download.
|
||||||
|
- [ ] Write release email to bind9-announce.
|
||||||
|
- [ ] Write email to bind9-users (if a major release).
|
||||||
|
- [ ] Update tickets in case of waiting support customers.
|
||||||
|
|
||||||
|
## Marketing
|
||||||
|
- [ ] Post short note to Twitter.
|
||||||
|
- [ ] Update [Wikipedia entry for BIND](http://en.wikipedia.org/wiki/BIND).
|
||||||
|
- [ ] Write blog article (if a major release).
|
||||||
@@ -1,168 +1,5 @@
|
|||||||
5345. [func] Key-style trust anchors and DS-style trust anchors
|
|
||||||
can now both be used for the same name. [GL !2892]
|
|
||||||
|
|
||||||
5344. [bug] Handle accept() errors properly in netmgr. [GL !2880]
|
|
||||||
|
|
||||||
5343. [func] Add statistics counters to the netmgr. [GL #1311]
|
|
||||||
|
|
||||||
5342. [bug] Disable pktinfo for ipv6 - bind to all interfaces
|
|
||||||
explicitly as libuv doesn't pass us pktinfo structure,
|
|
||||||
[GL #1558]
|
|
||||||
|
|
||||||
5341. [func] Simplify passing the bound TCP socket to child
|
|
||||||
threads by using isc_uv_export/import functions.
|
|
||||||
[GL !2825]
|
|
||||||
|
|
||||||
5340. [bug] Don't deadlock when binding to a TCP socket fails.
|
|
||||||
[GL #1499]
|
|
||||||
|
|
||||||
5339. [bug] With some libmaxminddb versions, named could erroneously
|
|
||||||
match an IP address not belonging to any subnet defined
|
|
||||||
in a given GeoIP2 database to one of the existing
|
|
||||||
entries in that database. [GL #1552]
|
|
||||||
|
|
||||||
5338. [bug] Fix line spacing in `rndc secroots`.
|
|
||||||
Thanks to Tony Finch. [GL !2478]
|
|
||||||
|
|
||||||
5337. [func] 'named -V' now reports maxminddb and protobuf-c
|
|
||||||
versions. [GL !2686]
|
|
||||||
|
|
||||||
--- 9.15.7 released ---
|
|
||||||
|
|
||||||
5336. [bug] The TCP high-water statistic could report an
|
|
||||||
incorrect value on startup. [GL #1392]
|
|
||||||
|
|
||||||
5335. [func] Make TCP listening code multithreaded. [GL !2659]
|
|
||||||
|
|
||||||
5334. [doc] Update documentation with dnssec-policy clarifications.
|
|
||||||
Also change some defaults. [GL !2711]
|
|
||||||
|
|
||||||
5333. [bug] Fix duration printing on Solaris when value is not
|
|
||||||
an ISO 8601 duration. [GL #1460]
|
|
||||||
|
|
||||||
5332. [func] Renamed "dnssec-keys" configuration statement
|
|
||||||
to the more descriptive "trust-anchors". [GL !2702]
|
|
||||||
|
|
||||||
5331. [func] Use compiler-provided mechanisms for thread local
|
|
||||||
storage, and make the requirement for such mechanisms
|
|
||||||
explicit in configure. [GL #1444]
|
|
||||||
|
|
||||||
5330. [bug] 'configure --without-python' was ineffective if
|
|
||||||
PYTHON was set in the environment. [GL #1434]
|
|
||||||
|
|
||||||
5329. [bug] Reconfiguring named caused memory to be leaked when any
|
|
||||||
GeoIP2 database was in use. [GL #1445]
|
|
||||||
|
|
||||||
5328. [bug] rbtdb.c:rdataset_{get,set}ownercase failed to obtain
|
|
||||||
a node lock. [GL #1417]
|
|
||||||
|
|
||||||
5327. [func] Added a statistics counter to track queries
|
|
||||||
dropped because the recursive-clients quota was
|
|
||||||
exceeded. [GL #1399]
|
|
||||||
|
|
||||||
5326. [bug] Add Python dependency on 'distutils.core' to configure.
|
|
||||||
'distutils.core' is required for installation.
|
|
||||||
[GL #1397]
|
|
||||||
|
|
||||||
5325. [bug] Addressed several issues with TCP connections in
|
|
||||||
the netmgr: restored support for TCP connection
|
|
||||||
timeouts, restored TCP backlog support, actively
|
|
||||||
close all open sockets during shutdown. [GL #1312]
|
|
||||||
|
|
||||||
5324. [bug] Change the category of some log messages from general
|
|
||||||
to the more appopriate catergory of xfer-in. [GL #1394]
|
|
||||||
|
|
||||||
5323. [bug] Fix a bug in DNSSEC trust anchor verification.
|
|
||||||
[GL !2609]
|
|
||||||
|
|
||||||
5322. [placeholder]
|
|
||||||
|
|
||||||
5321. [bug] Obtain write lock before updating version->records
|
|
||||||
and version->bytes. [GL #1341]
|
|
||||||
|
|
||||||
5320. [cleanup] Silence TSAN on header->count. [GL #1344]
|
|
||||||
|
|
||||||
--- 9.15.6 released ---
|
|
||||||
|
|
||||||
5319. [func] Trust anchors can now be configured using DS
|
|
||||||
format to represent a key digest, by using the
|
|
||||||
new "initial-ds" or "static-ds" keywords in
|
|
||||||
the "dnssec-keys" statement.
|
|
||||||
|
|
||||||
Note: DNSKEY-format and DS-format trust anchors
|
|
||||||
cannot both be used for the same domain name.
|
|
||||||
[GL #622]
|
|
||||||
|
|
||||||
5318. [cleanup] The DNSSEC validation code has been refactored
|
|
||||||
for clarity and to reduce code duplication.
|
|
||||||
[GL #622]
|
|
||||||
|
|
||||||
5317. [func] A new asynchronous network communications system
|
|
||||||
based on libuv is now used for listening for
|
|
||||||
incoming requests and responding to them. (The
|
|
||||||
old isc_socket API remains in use for sending
|
|
||||||
iterative queries and processing responses; this
|
|
||||||
will be changed too in a later release.)
|
|
||||||
|
|
||||||
This change will make it easier to improve
|
|
||||||
performance and implement new protocol layers
|
|
||||||
(e.g., DNS over TLS) in the future. [GL #29]
|
|
||||||
|
|
||||||
5316. [func] A new "dnssec-policy" option has been added to
|
|
||||||
named.conf to implement a key and signing policy
|
|
||||||
(KASP) for zones. When this option is in use,
|
|
||||||
named can generate new keys as needed and
|
|
||||||
automatically roll both ZSK and KSK keys. (Note
|
|
||||||
that the syntax for this statement differs from
|
|
||||||
the dnssec policy used by dnssec-keymgr.)
|
|
||||||
|
|
||||||
See the ARM for configuration details. [GL #1134]
|
|
||||||
|
|
||||||
5315. [bug] Apply the inital RRSIG expiration spread fixed
|
|
||||||
to all dynamically created records in the zone
|
|
||||||
including NSEC3. Also fix the signature clusters
|
|
||||||
when the server has been offline for prolonged
|
|
||||||
period of times. [GL #1256]
|
|
||||||
|
|
||||||
5314. [func] Added a new statistics variable "tcp-highwater"
|
|
||||||
that reports the maximum number of simultaneous TCP
|
|
||||||
clients BIND has handled while running. [GL #1206]
|
|
||||||
|
|
||||||
5313. [bug] The default GeoIP2 database location did not match
|
|
||||||
the ARM. 'named -V' now reports the default
|
|
||||||
location. [GL #1301]
|
|
||||||
|
|
||||||
5312. [bug] Do not flush the cache for `rndc validation status`.
|
|
||||||
Thanks to Tony Finch. [GL !2462]
|
|
||||||
|
|
||||||
5311. [cleanup] Include all views in output of `rndc validation status`.
|
|
||||||
Thanks to Tony Finch. [GL !2461]
|
|
||||||
|
|
||||||
5310. [bug] TCP failures were affecting EDNS statistics. [GL #1059]
|
|
||||||
|
|
||||||
5309. [placeholder]
|
|
||||||
|
|
||||||
5308. [bug] Don't log DNS_R_UNCHANGED from sync_secure_journal()
|
|
||||||
at ERROR level in receive_secure_serial(). [GL #1288]
|
|
||||||
|
|
||||||
5307. [bug] Fix hang when named-compilezone output is sent to pipe.
|
|
||||||
Thanks to Tony Finch. [GL !2481]
|
|
||||||
|
|
||||||
5306. [security] Set a limit on number of simultaneous pipelined TCP
|
|
||||||
queries. (CVE-2019-6477) [GL #1264]
|
|
||||||
|
|
||||||
5305. [bug] NSEC Aggressive Cache ("synth-from-dnssec") has been
|
|
||||||
disabled by default because it was found to have
|
|
||||||
a significant performance impact on the recursive
|
|
||||||
service. [GL #1265]
|
|
||||||
|
|
||||||
5304. [bug] "dnskey-sig-validity 0;" was not being accepted.
|
|
||||||
[GL #876]
|
|
||||||
|
|
||||||
5303. [placeholder]
|
|
||||||
|
|
||||||
5302. [bug] Fix checking that "dnstap-output" is defined when
|
5302. [bug] Fix checking that "dnstap-output" is defined when
|
||||||
"dnstap" is specified in a view. [GL #1281]
|
"dnstap" is specified" in a view. [GL #1281]
|
||||||
|
|
||||||
5301. [bug] Detect partial prefixes / incomplete IPv4 address in
|
5301. [bug] Detect partial prefixes / incomplete IPv4 address in
|
||||||
acls. [GL #1143]
|
acls. [GL #1143]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Copyright (C) 1996-2020 Internet Systems Consortium, Inc. ("ISC")
|
Copyright (C) 1996-2019 Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
|
||||||
This Source Code Form is subject to the terms of the Mozilla Public
|
This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
|||||||
@@ -3,30 +3,11 @@ PLATFORMS
|
|||||||
Supported platforms
|
Supported platforms
|
||||||
|
|
||||||
In general, this version of BIND will build and run on any POSIX-compliant
|
In general, this version of BIND will build and run on any POSIX-compliant
|
||||||
system with a C11-compliant C compiler, BSD-style sockets with
|
system with a C99-compliant C compiler, BSD-style sockets with
|
||||||
RFC-compliant IPv6 support, POSIX-compliant threads, the libuv
|
RFC-compliant IPv6 support, POSIX-compliant threads, and the OpenSSL
|
||||||
asynchronous I/O library, and the OpenSSL cryptography library.
|
cryptography library. Atomic operations support from the compiler is
|
||||||
|
needed, either in the form of builtin operations, C11 atomics or the
|
||||||
The following C11 features are used in BIND 9:
|
Interlocked family of functions on Windows.
|
||||||
|
|
||||||
* Atomic operations support from the compiler is needed, either in the
|
|
||||||
form of builtin operations, C11 atomics, or the Interlocked family of
|
|
||||||
functions on Windows.
|
|
||||||
|
|
||||||
* Thread Local Storage support from the compiler is needed, either in
|
|
||||||
the form of C11 _Thread_local/thread_local, the __thread GCC
|
|
||||||
extension, or the __declspec(thread) MSVC extension on Windows.
|
|
||||||
|
|
||||||
BIND 9.15 requires a fairly recent version of libuv (at least 1.x). For
|
|
||||||
some of the older systems listed below, you will have to install an
|
|
||||||
updated libuv package from sources such as EPEL, PPA, or other native
|
|
||||||
sources for updated packages. The other option is to build and install
|
|
||||||
libuv from source.
|
|
||||||
|
|
||||||
Certain optional BIND features have additional library dependencies. These
|
|
||||||
include libxml2 and libjson-c for statistics, libmaxminddb for
|
|
||||||
geolocation, libfstrm and libprotobuf-c for DNSTAP, and libidn2 for
|
|
||||||
internationalized domain name conversion.
|
|
||||||
|
|
||||||
ISC regularly tests BIND on many operating systems and architectures, but
|
ISC regularly tests BIND on many operating systems and architectures, but
|
||||||
lacks the resources to test all of them. Consequently, ISC is only able to
|
lacks the resources to test all of them. Consequently, ISC is only able to
|
||||||
@@ -34,16 +15,15 @@ offer support on a "best effort" basis for some.
|
|||||||
|
|
||||||
Regularly tested platforms
|
Regularly tested platforms
|
||||||
|
|
||||||
As of Dec 2019, BIND 9.15 is fully supported and regularly tested on the
|
As of Feb 2019, BIND 9.15 is fully supported and regularly tested on the
|
||||||
following systems:
|
following systems:
|
||||||
|
|
||||||
* Debian 9, 10
|
* Debian 8, 9, 10
|
||||||
* Ubuntu LTS 16.04, 18.04
|
* Ubuntu 16.04, 18.04
|
||||||
* Fedora 31
|
* Fedora 28, 29
|
||||||
* Red Hat Enterprise Linux / CentOS 7, 8
|
* Red Hat Enterprise Linux / CentOS 6, 7
|
||||||
* FreeBSD 11.3, 12.0
|
* FreeBSD 11.x
|
||||||
* OpenBSD 6.5
|
* OpenBSD 6.2, 6.3
|
||||||
* Alpine Linux
|
|
||||||
|
|
||||||
The amd64, i386, armhf and arm64 CPU architectures are all fully
|
The amd64, i386, armhf and arm64 CPU architectures are all fully
|
||||||
supported.
|
supported.
|
||||||
@@ -60,30 +40,17 @@ Server 2012 R2, none of these are tested regularly by ISC.
|
|||||||
* Windows 10 / x64
|
* Windows 10 / x64
|
||||||
* macOS 10.12+
|
* macOS 10.12+
|
||||||
* Solaris 11
|
* Solaris 11
|
||||||
|
* FreeBSD 10.x, 12.0+
|
||||||
|
* OpenBSD 6.4+
|
||||||
* NetBSD
|
* NetBSD
|
||||||
* Other Linux distributions still supported by their vendors, such as:
|
* Other Linux distributions still supported by their vendors, such as:
|
||||||
+ Ubuntu 19.04+
|
+ Ubuntu 14.04, 18.10+
|
||||||
+ Gentoo
|
+ Gentoo
|
||||||
+ Arch Linux
|
+ Arch Linux
|
||||||
|
+ Alpine Linux
|
||||||
* OpenWRT/LEDE 17.01+
|
* OpenWRT/LEDE 17.01+
|
||||||
* Other CPU architectures (mips, mipsel, sparc, ...)
|
* Other CPU architectures (mips, mipsel, sparc, ...)
|
||||||
|
|
||||||
Community maintained
|
|
||||||
|
|
||||||
These systems may not all have the required dependencies for building BIND
|
|
||||||
easily available, although it will be possible in many cases to compile
|
|
||||||
those directly from source. The community and interested parties may wish
|
|
||||||
to help with maintenance, and we welcome patch contributions, although we
|
|
||||||
cannot guarantee that we will accept them. All contributions will be
|
|
||||||
assessed against the risk of adverse effect on officially supported
|
|
||||||
platforms.
|
|
||||||
|
|
||||||
* Platforms past or close to their respective EOL dates, such as:
|
|
||||||
+ Ubuntu 14.04, 18.10
|
|
||||||
+ CentOS 6
|
|
||||||
+ Debian Jessie
|
|
||||||
+ FreeBSD 10.x
|
|
||||||
|
|
||||||
Unsupported platforms
|
Unsupported platforms
|
||||||
|
|
||||||
These are platforms on which BIND 9.15 is known not to build or run:
|
These are platforms on which BIND 9.15 is known not to build or run:
|
||||||
@@ -96,4 +63,13 @@ These are platforms on which BIND 9.15 is known not to build or run:
|
|||||||
* Platforms that don't support atomic operations (via compiler or
|
* Platforms that don't support atomic operations (via compiler or
|
||||||
library)
|
library)
|
||||||
* Linux without NPTL (Native POSIX Thread Library)
|
* Linux without NPTL (Native POSIX Thread Library)
|
||||||
* Platforms on which libuv cannot be compiled
|
|
||||||
|
Platform quirks
|
||||||
|
|
||||||
|
NetBSD 6 i386
|
||||||
|
|
||||||
|
The i386 build of NetBSD requires the libatomic library, available from
|
||||||
|
the gcc5-libs package. Because this library is in a non-standard path, its
|
||||||
|
location must be specified in the configure command line:
|
||||||
|
|
||||||
|
LDFLAGS="-L/usr/pkg/gcc5/i486--netbsdelf/lib/ -Wl,-R/usr/pkg/gcc5/i486--netbsdelf/lib/" ./configure
|
||||||
|
|||||||
+28
-50
@@ -11,30 +11,11 @@
|
|||||||
## Supported platforms
|
## Supported platforms
|
||||||
|
|
||||||
In general, this version of BIND will build and run on any POSIX-compliant
|
In general, this version of BIND will build and run on any POSIX-compliant
|
||||||
system with a C11-compliant C compiler, BSD-style sockets with RFC-compliant
|
system with a C99-compliant C compiler, BSD-style sockets with RFC-compliant
|
||||||
IPv6 support, POSIX-compliant threads, the `libuv` asynchronous I/O library,
|
IPv6 support, POSIX-compliant threads, and the OpenSSL cryptography library.
|
||||||
and the OpenSSL cryptography library.
|
Atomic operations support from the compiler is needed, either in the form of
|
||||||
|
builtin operations, C11 atomics or the Interlocked family of functions on
|
||||||
The following C11 features are used in BIND 9:
|
Windows.
|
||||||
|
|
||||||
* Atomic operations support from the compiler is needed, either in the form of
|
|
||||||
builtin operations, C11 atomics, or the `Interlocked` family of functions on
|
|
||||||
Windows.
|
|
||||||
|
|
||||||
* Thread Local Storage support from the compiler is needed, either in the form
|
|
||||||
of C11 `_Thread_local`/`thread_local`, the `__thread` GCC extension, or
|
|
||||||
the `__declspec(thread)` MSVC extension on Windows.
|
|
||||||
|
|
||||||
BIND 9.15 requires a fairly recent version of `libuv` (at least 1.x). For
|
|
||||||
some of the older systems listed below, you will have to install an updated
|
|
||||||
`libuv` package from sources such as EPEL, PPA, or other native sources for
|
|
||||||
updated packages. The other option is to build and install `libuv` from
|
|
||||||
source.
|
|
||||||
|
|
||||||
Certain optional BIND features have additional library dependencies.
|
|
||||||
These include `libxml2` and `libjson-c` for statistics, `libmaxminddb` for
|
|
||||||
geolocation, `libfstrm` and `libprotobuf-c` for DNSTAP, and `libidn2` for
|
|
||||||
internationalized domain name conversion.
|
|
||||||
|
|
||||||
ISC regularly tests BIND on many operating systems and architectures, but
|
ISC regularly tests BIND on many operating systems and architectures, but
|
||||||
lacks the resources to test all of them. Consequently, ISC is only able to
|
lacks the resources to test all of them. Consequently, ISC is only able to
|
||||||
@@ -42,16 +23,15 @@ offer support on a "best effort" basis for some.
|
|||||||
|
|
||||||
### Regularly tested platforms
|
### Regularly tested platforms
|
||||||
|
|
||||||
As of Dec 2019, BIND 9.15 is fully supported and regularly tested on the
|
As of Feb 2019, BIND 9.15 is fully supported and regularly tested on the
|
||||||
following systems:
|
following systems:
|
||||||
|
|
||||||
* Debian 9, 10
|
* Debian 8, 9, 10
|
||||||
* Ubuntu LTS 16.04, 18.04
|
* Ubuntu 16.04, 18.04
|
||||||
* Fedora 31
|
* Fedora 28, 29
|
||||||
* Red Hat Enterprise Linux / CentOS 7, 8
|
* Red Hat Enterprise Linux / CentOS 6, 7
|
||||||
* FreeBSD 11.3, 12.0
|
* FreeBSD 11.x
|
||||||
* OpenBSD 6.5
|
* OpenBSD 6.2, 6.3
|
||||||
* Alpine Linux
|
|
||||||
|
|
||||||
The amd64, i386, armhf and arm64 CPU architectures are all fully supported.
|
The amd64, i386, armhf and arm64 CPU architectures are all fully supported.
|
||||||
|
|
||||||
@@ -67,30 +47,17 @@ Server 2012 R2, none of these are tested regularly by ISC.
|
|||||||
* Windows 10 / x64
|
* Windows 10 / x64
|
||||||
* macOS 10.12+
|
* macOS 10.12+
|
||||||
* Solaris 11
|
* Solaris 11
|
||||||
|
* FreeBSD 10.x, 12.0+
|
||||||
|
* OpenBSD 6.4+
|
||||||
* NetBSD
|
* NetBSD
|
||||||
* Other Linux distributions still supported by their vendors, such as:
|
* Other Linux distributions still supported by their vendors, such as:
|
||||||
* Ubuntu 19.04+
|
* Ubuntu 14.04, 18.10+
|
||||||
* Gentoo
|
* Gentoo
|
||||||
* Arch Linux
|
* Arch Linux
|
||||||
|
* Alpine Linux
|
||||||
* OpenWRT/LEDE 17.01+
|
* OpenWRT/LEDE 17.01+
|
||||||
* Other CPU architectures (mips, mipsel, sparc, ...)
|
* Other CPU architectures (mips, mipsel, sparc, ...)
|
||||||
|
|
||||||
### Community maintained
|
|
||||||
|
|
||||||
These systems may not all have the required dependencies for building BIND
|
|
||||||
easily available, although it will be possible in many cases to compile
|
|
||||||
those directly from source. The community and interested parties may wish
|
|
||||||
to help with maintenance, and we welcome patch contributions, although we
|
|
||||||
cannot guarantee that we will accept them. All contributions will be
|
|
||||||
assessed against the risk of adverse effect on officially supported
|
|
||||||
platforms.
|
|
||||||
|
|
||||||
* Platforms past or close to their respective EOL dates, such as:
|
|
||||||
* Ubuntu 14.04, 18.10
|
|
||||||
* CentOS 6
|
|
||||||
* Debian Jessie
|
|
||||||
* FreeBSD 10.x
|
|
||||||
|
|
||||||
## Unsupported platforms
|
## Unsupported platforms
|
||||||
|
|
||||||
These are platforms on which BIND 9.15 is known *not* to build or run:
|
These are platforms on which BIND 9.15 is known *not* to build or run:
|
||||||
@@ -102,4 +69,15 @@ These are platforms on which BIND 9.15 is known *not* to build or run:
|
|||||||
* Platforms that don't support IPv6 Advanced Socket API (RFC 3542)
|
* Platforms that don't support IPv6 Advanced Socket API (RFC 3542)
|
||||||
* Platforms that don't support atomic operations (via compiler or library)
|
* Platforms that don't support atomic operations (via compiler or library)
|
||||||
* Linux without NPTL (Native POSIX Thread Library)
|
* Linux without NPTL (Native POSIX Thread Library)
|
||||||
* Platforms on which `libuv` cannot be compiled
|
|
||||||
|
## Platform quirks
|
||||||
|
|
||||||
|
### NetBSD 6 i386
|
||||||
|
|
||||||
|
The i386 build of NetBSD requires the `libatomic` library, available from
|
||||||
|
the `gcc5-libs` package. Because this library is in a non-standard path,
|
||||||
|
its location must be specified in the `configure` command line:
|
||||||
|
|
||||||
|
```
|
||||||
|
LDFLAGS="-L/usr/pkg/gcc5/i486--netbsdelf/lib/ -Wl,-R/usr/pkg/gcc5/i486--netbsdelf/lib/" ./configure
|
||||||
|
```
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ the file HISTORY.
|
|||||||
For a detailed list of changes made throughout the history of BIND 9, see
|
For a detailed list of changes made throughout the history of BIND 9, see
|
||||||
the file CHANGES. See below for details on the CHANGES file format.
|
the file CHANGES. See below for details on the CHANGES file format.
|
||||||
|
|
||||||
For up-to-date versions and release notes, see https://www.isc.org/
|
For up-to-date release notes and errata, see http://www.isc.org/software/
|
||||||
download/.
|
bind9/releasenotes
|
||||||
|
|
||||||
For information about supported platforms, see PLATFORMS.
|
For information about supported platforms, see PLATFORMS.
|
||||||
|
|
||||||
@@ -111,32 +111,27 @@ BIND 9.15 features
|
|||||||
BIND 9.15 is the newest development branch of BIND 9. It includes a number
|
BIND 9.15 is the newest development branch of BIND 9. It includes a number
|
||||||
of changes from BIND 9.14 and earlier releases. New features include:
|
of changes from BIND 9.14 and earlier releases. New features include:
|
||||||
|
|
||||||
* New "dnssec-policy" statement to configure a key and signing policy
|
|
||||||
for zones, enabling automatic key regeneration and rollover.
|
|
||||||
* New new network manager based on libuv.
|
|
||||||
* Support for the new GeoIP2 geolocation API
|
* Support for the new GeoIP2 geolocation API
|
||||||
* Improved DNSSEC trust anchor configuration using the trust-anchors
|
* Improved DNSSEC key configuration using dnssec-keys
|
||||||
statement, permitting configuration of trust anchors in DS as well as
|
|
||||||
DNSKEY format.
|
|
||||||
* YAML output for dig, mdig, and delv.
|
* YAML output for dig, mdig, and delv.
|
||||||
|
|
||||||
Building BIND
|
Building BIND
|
||||||
|
|
||||||
Minimally, BIND requires a UNIX or Linux system with an ANSI C compiler,
|
Minimally, BIND requires a UNIX or Linux system with an ANSI C compiler,
|
||||||
basic POSIX support, and a 64-bit integer type. BIND also requires the
|
basic POSIX support, and a 64-bit integer type. Successful builds have
|
||||||
libuv asynchronous I/O library, and a cryptography provider library such
|
been observed on many versions of Linux and UNIX, including RHEL/CentOS,
|
||||||
as OpenSSL or a hardware service module supporting PKCS#11. On Linux, BIND
|
Fedora, Debian, Ubuntu, SLES, openSUSE, Slackware, Alpine, FreeBSD,
|
||||||
requires the libcap library to set process privileges, though this
|
NetBSD, OpenBSD, macOS, Solaris, OpenIndiana, OmniOS CE, HP-UX, and
|
||||||
requirement can be overridden by disabling capability support at compile
|
OpenWRT.
|
||||||
time. See Compile-time options below for details on other libraries that
|
|
||||||
may be required to support optional features.
|
|
||||||
|
|
||||||
Successful builds have been observed on many versions of Linux and UNIX,
|
BIND requires a cryptography provider library such as OpenSSL or a
|
||||||
including RHEL/CentOS, Fedora, Debian, Ubuntu, SLES, openSUSE, Slackware,
|
hardware service module supporting PKCS#11. On Linux, BIND requires the
|
||||||
Alpine, FreeBSD, NetBSD, OpenBSD, macOS, Solaris, OpenIndiana, OmniOS CE,
|
libcap library to set process privileges, though this requirement can be
|
||||||
HP-UX, and OpenWRT.
|
overridden by disabling capability support at compile time. See
|
||||||
|
Compile-time options below for details on other libraries that may be
|
||||||
|
required to support optional features.
|
||||||
|
|
||||||
BIND is also available for Windows Server 2012 R2 and higher. See win32utils/
|
BIND is also available for Windows Server 2008 and higher. See win32utils/
|
||||||
build.txt for details on building for Windows systems.
|
build.txt for details on building for Windows systems.
|
||||||
|
|
||||||
To build on a UNIX or Linux system, use:
|
To build on a UNIX or Linux system, use:
|
||||||
@@ -180,10 +175,9 @@ Dependencies
|
|||||||
|
|
||||||
Portions of BIND that are written in Python, including dnssec-keymgr,
|
Portions of BIND that are written in Python, including dnssec-keymgr,
|
||||||
dnssec-coverage, dnssec-checkds, and some of the system tests, require the
|
dnssec-coverage, dnssec-checkds, and some of the system tests, require the
|
||||||
argparse, ply and distutils.core modules to be available. argparse is a
|
argparse and ply modules to be available. argparse is a standard module as
|
||||||
standard module as of Python 2.7 and Python 3.2. ply is available from
|
of Python 2.7 and Python 3.2. ply is available from https://
|
||||||
https://pypi.python.org/pypi/ply. distutils.core is required for
|
pypi.python.org/pypi/ply.
|
||||||
installation.
|
|
||||||
|
|
||||||
Compile-time options
|
Compile-time options
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ For a detailed list of changes made throughout the history of BIND 9, see
|
|||||||
the file [CHANGES](CHANGES). See [below](#changes) for details on the
|
the file [CHANGES](CHANGES). See [below](#changes) for details on the
|
||||||
CHANGES file format.
|
CHANGES file format.
|
||||||
|
|
||||||
For up-to-date versions and release notes, see
|
For up-to-date release notes and errata, see
|
||||||
[https://www.isc.org/download/](https://www.isc.org/download/).
|
[http://www.isc.org/software/bind9/releasenotes](http://www.isc.org/software/bind9/releasenotes)
|
||||||
|
|
||||||
For information about supported platforms, see [PLATFORMS](PLATFORMS.md).
|
For information about supported platforms, see [PLATFORMS](PLATFORMS.md).
|
||||||
|
|
||||||
@@ -127,33 +127,26 @@ BIND 9.15 is the newest development branch of BIND 9. It includes a
|
|||||||
number of changes from BIND 9.14 and earlier releases. New features
|
number of changes from BIND 9.14 and earlier releases. New features
|
||||||
include:
|
include:
|
||||||
|
|
||||||
* New "dnssec-policy" statement to configure a key and signing policy
|
|
||||||
for zones, enabling automatic key regeneration and rollover.
|
|
||||||
* New new network manager based on libuv.
|
|
||||||
* Support for the new GeoIP2 geolocation API
|
* Support for the new GeoIP2 geolocation API
|
||||||
* Improved DNSSEC trust anchor configuration using the `trust-anchors`
|
* Improved DNSSEC key configuration using `dnssec-keys`
|
||||||
statement, permitting configuration of trust anchors in DS as well as
|
|
||||||
DNSKEY format.
|
|
||||||
* YAML output for `dig`, `mdig`, and `delv`.
|
* YAML output for `dig`, `mdig`, and `delv`.
|
||||||
|
|
||||||
### <a name="build"/> Building BIND
|
### <a name="build"/> Building BIND
|
||||||
|
|
||||||
Minimally, BIND requires a UNIX or Linux system with an ANSI C compiler,
|
Minimally, BIND requires a UNIX or Linux system with an ANSI C compiler,
|
||||||
basic POSIX support, and a 64-bit integer type. BIND also requires the
|
basic POSIX support, and a 64-bit integer type. Successful builds have been
|
||||||
`libuv` asynchronous I/O library, and a cryptography provider library
|
observed on many versions of Linux and UNIX, including RHEL/CentOS, Fedora,
|
||||||
such as OpenSSL or a hardware service module supporting PKCS#11. On
|
Debian, Ubuntu, SLES, openSUSE, Slackware, Alpine, FreeBSD, NetBSD,
|
||||||
Linux, BIND requires the `libcap` library to set process privileges,
|
OpenBSD, macOS, Solaris, OpenIndiana, OmniOS CE, HP-UX, and OpenWRT.
|
||||||
though this requirement can be overridden by disabling capability
|
|
||||||
support at compile time. See [Compile-time options](#opts) below
|
|
||||||
for details on other libraries that may be required to support
|
|
||||||
optional features.
|
|
||||||
|
|
||||||
Successful builds have been observed on many versions of Linux and
|
BIND requires a cryptography provider library such as OpenSSL or a
|
||||||
UNIX, including RHEL/CentOS, Fedora, Debian, Ubuntu, SLES, openSUSE,
|
hardware service module supporting PKCS#11. On Linux, BIND requires
|
||||||
Slackware, Alpine, FreeBSD, NetBSD, OpenBSD, macOS, Solaris,
|
the `libcap` library to set process privileges, though this requirement
|
||||||
OpenIndiana, OmniOS CE, HP-UX, and OpenWRT.
|
can be overridden by disabling capability support at compile time.
|
||||||
|
See [Compile-time options](#opts) below for details on other libraries
|
||||||
|
that may be required to support optional features.
|
||||||
|
|
||||||
BIND is also available for Windows Server 2012 R2 and higher. See
|
BIND is also available for Windows Server 2008 and higher. See
|
||||||
`win32utils/build.txt` for details on building for Windows
|
`win32utils/build.txt` for details on building for Windows
|
||||||
systems.
|
systems.
|
||||||
|
|
||||||
@@ -191,11 +184,9 @@ or if you have Xcode already installed you can run `xcode-select --install`.
|
|||||||
|
|
||||||
Portions of BIND that are written in Python, including
|
Portions of BIND that are written in Python, including
|
||||||
`dnssec-keymgr`, `dnssec-coverage`, `dnssec-checkds`, and some of the
|
`dnssec-keymgr`, `dnssec-coverage`, `dnssec-checkds`, and some of the
|
||||||
system tests, require the `argparse`, `ply` and `distutils.core` modules
|
system tests, require the `argparse` and `ply` modules to be available.
|
||||||
to be available.
|
|
||||||
`argparse` is a standard module as of Python 2.7 and Python 3.2.
|
`argparse` is a standard module as of Python 2.7 and Python 3.2.
|
||||||
`ply` is available from [https://pypi.python.org/pypi/ply](https://pypi.python.org/pypi/ply).
|
`ply` is available from [https://pypi.python.org/pypi/ply](https://pypi.python.org/pypi/ply).
|
||||||
`distutils.core` is required for installation.
|
|
||||||
|
|
||||||
#### <a name="opts"/> Compile-time options
|
#### <a name="opts"/> Compile-time options
|
||||||
|
|
||||||
|
|||||||
@@ -716,7 +716,7 @@ dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
|
|||||||
FILE *output = stdout;
|
FILE *output = stdout;
|
||||||
const char *flags;
|
const char *flags;
|
||||||
|
|
||||||
flags = (fileformat == dns_masterformat_text) ? "w" : "wb";
|
flags = (fileformat == dns_masterformat_text) ? "w+" : "wb+";
|
||||||
|
|
||||||
if (debug) {
|
if (debug) {
|
||||||
if (filename != NULL && strcmp(filename, "-") != 0)
|
if (filename != NULL && strcmp(filename, "-") != 0)
|
||||||
|
|||||||
@@ -421,7 +421,7 @@ configure_zone(const char *vclass, const char *view,
|
|||||||
|
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
if (get_maps(maps, "max-zone-ttl", &obj)) {
|
if (get_maps(maps, "max-zone-ttl", &obj)) {
|
||||||
maxttl = cfg_obj_asduration(obj);
|
maxttl = cfg_obj_asuint32(obj);
|
||||||
zone_options |= DNS_ZONEOPT_CHECKTTL;
|
zone_options |= DNS_ZONEOPT_CHECKTTL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -709,6 +709,8 @@ main(int argc, char **argv) {
|
|||||||
|
|
||||||
cfg_parser_destroy(&parser);
|
cfg_parser_destroy(&parser);
|
||||||
|
|
||||||
|
dns_name_destroy();
|
||||||
|
|
||||||
isc_log_destroy(&logc);
|
isc_log_destroy(&logc);
|
||||||
|
|
||||||
isc_mem_destroy(&mctx);
|
isc_mem_destroy(&mctx);
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -85,9 +85,9 @@ usage(void) {
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
destroy(void) {
|
destroy(void) {
|
||||||
if (zone != NULL) {
|
if (zone != NULL)
|
||||||
dns_zone_detach(&zone);
|
dns_zone_detach(&zone);
|
||||||
}
|
dns_name_destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*% main processing routine */
|
/*% main processing routine */
|
||||||
|
|||||||
@@ -44,7 +44,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -45,7 +45,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
+1
-1
@@ -144,7 +144,7 @@ options\&.
|
|||||||
Note: When reading the trust anchor file,
|
Note: When reading the trust anchor file,
|
||||||
\fBdelv\fR
|
\fBdelv\fR
|
||||||
treats
|
treats
|
||||||
\fBtrust\-anchors\fR\fBinitial\-key\fR
|
\fBdnssec\-keys\fR\fBinitial\-key\fR
|
||||||
and
|
and
|
||||||
\fBstatic\-key\fR
|
\fBstatic\-key\fR
|
||||||
entries identically\&. That is, even if a key is configured with
|
entries identically\&. That is, even if a key is configured with
|
||||||
|
|||||||
+63
-147
@@ -33,10 +33,8 @@
|
|||||||
#include <isc/app.h>
|
#include <isc/app.h>
|
||||||
#include <isc/base64.h>
|
#include <isc/base64.h>
|
||||||
#include <isc/buffer.h>
|
#include <isc/buffer.h>
|
||||||
#include <isc/hex.h>
|
|
||||||
#include <isc/lib.h>
|
#include <isc/lib.h>
|
||||||
#include <isc/log.h>
|
#include <isc/log.h>
|
||||||
#include <isc/md.h>
|
|
||||||
#include <isc/mem.h>
|
#include <isc/mem.h>
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <isc/ntpaths.h>
|
#include <isc/ntpaths.h>
|
||||||
@@ -140,7 +138,7 @@ static dns_fixedname_t afn;
|
|||||||
static dns_name_t *anchor_name = NULL;
|
static dns_name_t *anchor_name = NULL;
|
||||||
|
|
||||||
/* Default bind.keys contents */
|
/* Default bind.keys contents */
|
||||||
static char anchortext[] = TRUST_ANCHORS;
|
static char anchortext[] = DNSSEC_KEYS;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Static function prototypes
|
* Static function prototypes
|
||||||
@@ -160,44 +158,43 @@ usage(void) {
|
|||||||
" q-class is one of (in,hs,ch,...) [default: in]\n"
|
" q-class is one of (in,hs,ch,...) [default: in]\n"
|
||||||
" q-type is one of (a,any,mx,ns,soa,hinfo,axfr,txt,...) [default:a]\n"
|
" q-type is one of (a,any,mx,ns,soa,hinfo,axfr,txt,...) [default:a]\n"
|
||||||
" q-opt is one of:\n"
|
" q-opt is one of:\n"
|
||||||
" -4 (use IPv4 query transport only)\n"
|
" -x dot-notation (shortcut for reverse lookups)\n"
|
||||||
" -6 (use IPv6 query transport only)\n"
|
" -d level (set debugging level)\n"
|
||||||
" -a anchor-file (specify root trust anchor)\n"
|
" -a anchor-file (specify root trust anchor)\n"
|
||||||
" -b address[#port] (bind to source address/port)\n"
|
" -b address[#port] (bind to source address/port)\n"
|
||||||
" -c class (option included for compatibility;\n"
|
|
||||||
" -d level (set debugging level)\n"
|
|
||||||
" -h (print help and exit)\n"
|
|
||||||
" -i (disable DNSSEC validation)\n"
|
|
||||||
" -m (enable memory usage debugging)\n"
|
|
||||||
" -p port (specify port number)\n"
|
" -p port (specify port number)\n"
|
||||||
" -q name (specify query name)\n"
|
" -q name (specify query name)\n"
|
||||||
" -t type (specify query type)\n"
|
" -t type (specify query type)\n"
|
||||||
|
" -c class (option included for compatibility;\n"
|
||||||
" only IN is supported)\n"
|
" only IN is supported)\n"
|
||||||
" -v (print version and exit)\n"
|
" -4 (use IPv4 query transport only)\n"
|
||||||
" -x dot-notation (shortcut for reverse lookups)\n"
|
" -6 (use IPv6 query transport only)\n"
|
||||||
|
" -i (disable DNSSEC validation)\n"
|
||||||
|
" -m (enable memory usage debugging)\n"
|
||||||
" d-opt is of the form +keyword[=value], where keyword is:\n"
|
" d-opt is of the form +keyword[=value], where keyword is:\n"
|
||||||
" +[no]all (Set or clear all display flags)\n"
|
" +[no]all (Set or clear all display flags)\n"
|
||||||
" +[no]class (Control display of class)\n"
|
" +[no]class (Control display of class)\n"
|
||||||
" +[no]comments (Control display of comment lines)\n"
|
|
||||||
" +[no]crypto (Control display of cryptographic\n"
|
" +[no]crypto (Control display of cryptographic\n"
|
||||||
" fields in records)\n"
|
" fields in records)\n"
|
||||||
" +[no]dlv (Obsolete)\n"
|
|
||||||
" +[no]dnssec (Display DNSSEC records)\n"
|
|
||||||
" +[no]mtrace (Trace messages received)\n"
|
|
||||||
" +[no]multiline (Print records in an expanded format)\n"
|
" +[no]multiline (Print records in an expanded format)\n"
|
||||||
" +[no]root (DNSSEC validation trust anchor)\n"
|
" +[no]comments (Control display of comment lines)\n"
|
||||||
" +[no]rrcomments (Control display of per-record "
|
" +[no]rrcomments (Control display of per-record "
|
||||||
"comments)\n"
|
"comments)\n"
|
||||||
" +[no]rtrace (Trace resolver fetches)\n"
|
" +[no]unknownformat (Print RDATA in RFC 3597 "
|
||||||
|
"\"unknown\" format)\n"
|
||||||
" +[no]short (Short form answer)\n"
|
" +[no]short (Short form answer)\n"
|
||||||
" +[no]split=## (Split hex/base64 fields into chunks)\n"
|
" +[no]split=## (Split hex/base64 fields into chunks)\n"
|
||||||
" +[no]tcp (TCP mode)\n"
|
" +[no]tcp (TCP mode)\n"
|
||||||
" +[no]ttl (Control display of ttls in records)\n"
|
" +[no]ttl (Control display of ttls in records)\n"
|
||||||
" +[no]trust (Control display of trust level)\n"
|
" +[no]trust (Control display of trust level)\n"
|
||||||
" +[no]unknownformat (Print RDATA in RFC 3597 "
|
" +[no]rtrace (Trace resolver fetches)\n"
|
||||||
"\"unknown\" format)\n"
|
" +[no]mtrace (Trace messages received)\n"
|
||||||
" +[no]vtrace (Trace validation process)\n"
|
" +[no]vtrace (Trace validation process)\n"
|
||||||
" +[no]yaml (Present the results as YAML)\n",
|
" +[no]dlv (Obsolete)\n"
|
||||||
|
" +[no]root (DNSSEC validation trust anchor)\n"
|
||||||
|
" +[no]dnssec (Display DNSSEC records)\n"
|
||||||
|
" -h (print help and exit)\n"
|
||||||
|
" -v (print version and exit)\n",
|
||||||
stderr);
|
stderr);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@@ -498,17 +495,14 @@ printdata(dns_rdataset_t *rdataset, dns_name_t *owner,
|
|||||||
dns_rdata_reset(&rdata);
|
dns_rdata_reset(&rdata);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dns_indent_t indent = { " ", 2 };
|
|
||||||
if (!yaml && (rdataset->attributes &
|
if (!yaml && (rdataset->attributes &
|
||||||
DNS_RDATASETATTR_NEGATIVE) != 0)
|
DNS_RDATASETATTR_NEGATIVE) != 0)
|
||||||
{
|
{
|
||||||
isc_buffer_putstr(&target, "; ");
|
isc_buffer_putstr(&target, "; ");
|
||||||
}
|
}
|
||||||
|
|
||||||
result = dns_master_rdatasettotext(owner, rdataset,
|
result = dns_master_rdatasettotext(owner, rdataset,
|
||||||
style,
|
style, &target);
|
||||||
yaml ? &indent :
|
|
||||||
NULL,
|
|
||||||
&target);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == ISC_R_NOSPACE) {
|
if (result == ISC_R_NOSPACE) {
|
||||||
@@ -540,6 +534,8 @@ setup_style(dns_master_style_t **stylep) {
|
|||||||
styleflags |= DNS_STYLEFLAG_REL_OWNER;
|
styleflags |= DNS_STYLEFLAG_REL_OWNER;
|
||||||
if (yaml) {
|
if (yaml) {
|
||||||
styleflags |= DNS_STYLEFLAG_YAML;
|
styleflags |= DNS_STYLEFLAG_YAML;
|
||||||
|
dns_master_indentstr = " ";
|
||||||
|
dns_master_indent = 2;
|
||||||
} else {
|
} else {
|
||||||
if (showcomments) {
|
if (showcomments) {
|
||||||
styleflags |= DNS_STYLEFLAG_COMMENT;
|
styleflags |= DNS_STYLEFLAG_COMMENT;
|
||||||
@@ -612,12 +608,11 @@ convert_name(dns_fixedname_t *fn, dns_name_t **name, const char *text) {
|
|||||||
|
|
||||||
static isc_result_t
|
static isc_result_t
|
||||||
key_fromconfig(const cfg_obj_t *key, dns_client_t *client) {
|
key_fromconfig(const cfg_obj_t *key, dns_client_t *client) {
|
||||||
dns_rdata_dnskey_t dnskey;
|
dns_rdata_dnskey_t keystruct;
|
||||||
dns_rdata_ds_t ds;
|
uint32_t flags, proto, alg;
|
||||||
uint32_t rdata1, rdata2, rdata3;
|
const char *keystr, *keynamestr;
|
||||||
const char *datastr = NULL, *keynamestr = NULL, *atstr = NULL;
|
unsigned char keydata[4096];
|
||||||
unsigned char data[4096];
|
isc_buffer_t keydatabuf;
|
||||||
isc_buffer_t databuf;
|
|
||||||
unsigned char rrdata[4096];
|
unsigned char rrdata[4096];
|
||||||
isc_buffer_t rrdatabuf;
|
isc_buffer_t rrdatabuf;
|
||||||
isc_region_t r;
|
isc_region_t r;
|
||||||
@@ -625,13 +620,6 @@ key_fromconfig(const cfg_obj_t *key, dns_client_t *client) {
|
|||||||
dns_name_t *keyname;
|
dns_name_t *keyname;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
bool match_root = false;
|
bool match_root = false;
|
||||||
enum {
|
|
||||||
INITIAL_KEY,
|
|
||||||
STATIC_KEY,
|
|
||||||
INITIAL_DS,
|
|
||||||
STATIC_DS,
|
|
||||||
TRUSTED
|
|
||||||
} anchortype;
|
|
||||||
|
|
||||||
keynamestr = cfg_obj_asstring(cfg_tuple_get(key, "name"));
|
keynamestr = cfg_obj_asstring(cfg_tuple_get(key, "name"));
|
||||||
CHECK(convert_name(&fkeyname, &keyname, keynamestr));
|
CHECK(convert_name(&fkeyname, &keyname, keynamestr));
|
||||||
@@ -654,118 +642,46 @@ key_fromconfig(const cfg_obj_t *key, dns_client_t *client) {
|
|||||||
|
|
||||||
delv_log(ISC_LOG_DEBUG(3), "adding trust anchor %s", trust_anchor);
|
delv_log(ISC_LOG_DEBUG(3), "adding trust anchor %s", trust_anchor);
|
||||||
|
|
||||||
/* if DNSKEY, flags; if DS, key tag */
|
flags = cfg_obj_asuint32(cfg_tuple_get(key, "flags"));
|
||||||
rdata1 = cfg_obj_asuint32(cfg_tuple_get(key, "rdata1"));
|
proto = cfg_obj_asuint32(cfg_tuple_get(key, "protocol"));
|
||||||
|
alg = cfg_obj_asuint32(cfg_tuple_get(key, "algorithm"));
|
||||||
|
|
||||||
/* if DNSKEY, protocol; if DS, algorithm */
|
keystruct.common.rdclass = dns_rdataclass_in;
|
||||||
rdata2 = cfg_obj_asuint32(cfg_tuple_get(key, "rdata2"));
|
keystruct.common.rdtype = dns_rdatatype_dnskey;
|
||||||
|
/*
|
||||||
|
* The key data in keystruct is not dynamically allocated.
|
||||||
|
*/
|
||||||
|
keystruct.mctx = NULL;
|
||||||
|
|
||||||
/* if DNSKEY, algorithm; if DS, digest type */
|
ISC_LINK_INIT(&keystruct.common, link);
|
||||||
rdata3 = cfg_obj_asuint32(cfg_tuple_get(key, "rdata3"));
|
|
||||||
|
|
||||||
/* What type of trust anchor is this? */
|
if (flags > 0xffff)
|
||||||
atstr = cfg_obj_asstring(cfg_tuple_get(key, "anchortype"));
|
CHECK(ISC_R_RANGE);
|
||||||
if (strcasecmp(atstr, "static-key") == 0) {
|
if (proto > 0xff)
|
||||||
anchortype = STATIC_KEY;
|
CHECK(ISC_R_RANGE);
|
||||||
} else if (strcasecmp(atstr, "static-ds") == 0) {
|
if (alg > 0xff)
|
||||||
anchortype = STATIC_DS;
|
CHECK(ISC_R_RANGE);
|
||||||
} else if (strcasecmp(atstr, "initial-key") == 0) {
|
|
||||||
anchortype = INITIAL_KEY;
|
|
||||||
} else if (strcasecmp(atstr, "initial-ds") == 0) {
|
|
||||||
anchortype = INITIAL_DS;
|
|
||||||
} else {
|
|
||||||
delv_log(ISC_LOG_ERROR,
|
|
||||||
"key '%s': invalid initialization method '%s'",
|
|
||||||
keynamestr, atstr);
|
|
||||||
result = ISC_R_FAILURE;
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
isc_buffer_init(&databuf, data, sizeof(data));
|
keystruct.flags = (uint16_t)flags;
|
||||||
|
keystruct.protocol = (uint8_t)proto;
|
||||||
|
keystruct.algorithm = (uint8_t)alg;
|
||||||
|
|
||||||
|
isc_buffer_init(&keydatabuf, keydata, sizeof(keydata));
|
||||||
isc_buffer_init(&rrdatabuf, rrdata, sizeof(rrdata));
|
isc_buffer_init(&rrdatabuf, rrdata, sizeof(rrdata));
|
||||||
|
|
||||||
if (rdata1 > 0xffff) {
|
keystr = cfg_obj_asstring(cfg_tuple_get(key, "key"));
|
||||||
CHECK(ISC_R_RANGE);
|
CHECK(isc_base64_decodestring(keystr, &keydatabuf));
|
||||||
}
|
isc_buffer_usedregion(&keydatabuf, &r);
|
||||||
if (rdata2 > 0xff) {
|
keystruct.datalen = r.length;
|
||||||
CHECK(ISC_R_RANGE);
|
keystruct.data = r.base;
|
||||||
}
|
|
||||||
if (rdata3 > 0xff) {
|
|
||||||
CHECK(ISC_R_RANGE);
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (anchortype) {
|
CHECK(dns_rdata_fromstruct(NULL,
|
||||||
case STATIC_KEY:
|
keystruct.common.rdclass,
|
||||||
case INITIAL_KEY:
|
keystruct.common.rdtype,
|
||||||
case TRUSTED:
|
&keystruct, &rrdatabuf));
|
||||||
dnskey.common.rdclass = dns_rdataclass_in;
|
|
||||||
dnskey.common.rdtype = dns_rdatatype_dnskey;
|
|
||||||
dnskey.mctx = NULL;
|
|
||||||
|
|
||||||
ISC_LINK_INIT(&dnskey.common, link);
|
|
||||||
|
|
||||||
dnskey.flags = (uint16_t)rdata1;
|
|
||||||
dnskey.protocol = (uint8_t)rdata2;
|
|
||||||
dnskey.algorithm = (uint8_t)rdata3;
|
|
||||||
|
|
||||||
datastr = cfg_obj_asstring(cfg_tuple_get(key, "data"));
|
|
||||||
CHECK(isc_base64_decodestring(datastr, &databuf));
|
|
||||||
isc_buffer_usedregion(&databuf, &r);
|
|
||||||
dnskey.datalen = r.length;
|
|
||||||
dnskey.data = r.base;
|
|
||||||
|
|
||||||
CHECK(dns_rdata_fromstruct(NULL, dnskey.common.rdclass,
|
|
||||||
dnskey.common.rdtype,
|
|
||||||
&dnskey, &rrdatabuf));
|
|
||||||
CHECK(dns_client_addtrustedkey(client, dns_rdataclass_in,
|
|
||||||
dns_rdatatype_dnskey,
|
|
||||||
keyname, &rrdatabuf));
|
|
||||||
break;
|
|
||||||
case INITIAL_DS:
|
|
||||||
case STATIC_DS:
|
|
||||||
ds.common.rdclass = dns_rdataclass_in;
|
|
||||||
ds.common.rdtype = dns_rdatatype_ds;
|
|
||||||
ds.mctx = NULL;
|
|
||||||
|
|
||||||
ISC_LINK_INIT(&ds.common, link);
|
|
||||||
|
|
||||||
ds.key_tag = (uint16_t)rdata1;
|
|
||||||
ds.algorithm = (uint8_t)rdata2;
|
|
||||||
ds.digest_type = (uint8_t)rdata3;
|
|
||||||
|
|
||||||
datastr = cfg_obj_asstring(cfg_tuple_get(key, "data"));
|
|
||||||
CHECK(isc_hex_decodestring(datastr, &databuf));
|
|
||||||
isc_buffer_usedregion(&databuf, &r);
|
|
||||||
|
|
||||||
switch (ds.digest_type) {
|
|
||||||
case DNS_DSDIGEST_SHA1:
|
|
||||||
if (r.length != ISC_SHA1_DIGESTLENGTH) {
|
|
||||||
CHECK(ISC_R_UNEXPECTEDEND);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case DNS_DSDIGEST_SHA256:
|
|
||||||
if (r.length != ISC_SHA256_DIGESTLENGTH) {
|
|
||||||
CHECK(ISC_R_UNEXPECTEDEND);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case DNS_DSDIGEST_SHA384:
|
|
||||||
if (r.length != ISC_SHA384_DIGESTLENGTH) {
|
|
||||||
CHECK(ISC_R_UNEXPECTEDEND);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
ds.length = r.length;
|
|
||||||
ds.digest = r.base;
|
|
||||||
|
|
||||||
CHECK(dns_rdata_fromstruct(NULL, ds.common.rdclass,
|
|
||||||
ds.common.rdtype,
|
|
||||||
&ds, &rrdatabuf));
|
|
||||||
CHECK(dns_client_addtrustedkey(client, dns_rdataclass_in,
|
|
||||||
dns_rdatatype_ds,
|
|
||||||
keyname, &rrdatabuf));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
CHECK(dns_client_addtrustedkey(client, dns_rdataclass_in,
|
||||||
|
keyname, &rrdatabuf));
|
||||||
num_keys++;
|
num_keys++;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
@@ -819,7 +735,7 @@ setup_dnsseckeys(dns_client_t *client) {
|
|||||||
cfg_parser_t *parser = NULL;
|
cfg_parser_t *parser = NULL;
|
||||||
const cfg_obj_t *trusted_keys = NULL;
|
const cfg_obj_t *trusted_keys = NULL;
|
||||||
const cfg_obj_t *managed_keys = NULL;
|
const cfg_obj_t *managed_keys = NULL;
|
||||||
const cfg_obj_t *trust_anchors = NULL;
|
const cfg_obj_t *dnssec_keys = NULL;
|
||||||
cfg_obj_t *bindkeys = NULL;
|
cfg_obj_t *bindkeys = NULL;
|
||||||
const char *filename = anchorfile;
|
const char *filename = anchorfile;
|
||||||
|
|
||||||
@@ -878,7 +794,7 @@ setup_dnsseckeys(dns_client_t *client) {
|
|||||||
INSIST(bindkeys != NULL);
|
INSIST(bindkeys != NULL);
|
||||||
cfg_map_get(bindkeys, "trusted-keys", &trusted_keys);
|
cfg_map_get(bindkeys, "trusted-keys", &trusted_keys);
|
||||||
cfg_map_get(bindkeys, "managed-keys", &managed_keys);
|
cfg_map_get(bindkeys, "managed-keys", &managed_keys);
|
||||||
cfg_map_get(bindkeys, "trust-anchors", &trust_anchors);
|
cfg_map_get(bindkeys, "dnssec-keys", &dnssec_keys);
|
||||||
|
|
||||||
if (trusted_keys != NULL) {
|
if (trusted_keys != NULL) {
|
||||||
CHECK(load_keys(trusted_keys, client));
|
CHECK(load_keys(trusted_keys, client));
|
||||||
@@ -886,8 +802,8 @@ setup_dnsseckeys(dns_client_t *client) {
|
|||||||
if (managed_keys != NULL) {
|
if (managed_keys != NULL) {
|
||||||
CHECK(load_keys(managed_keys, client));
|
CHECK(load_keys(managed_keys, client));
|
||||||
}
|
}
|
||||||
if (trust_anchors != NULL) {
|
if (dnssec_keys != NULL) {
|
||||||
CHECK(load_keys(trust_anchors, client));
|
CHECK(load_keys(dnssec_keys, client));
|
||||||
}
|
}
|
||||||
result = ISC_R_SUCCESS;
|
result = ISC_R_SUCCESS;
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
@@ -216,7 +215,7 @@
|
|||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Note: When reading the trust anchor file,
|
Note: When reading the trust anchor file,
|
||||||
<command>delv</command> treats <option>trust-anchors</option>
|
<command>delv</command> treats <option>dnssec-keys</option>
|
||||||
<option>initial-key</option> and <option>static-key</option>
|
<option>initial-key</option> and <option>static-key</option>
|
||||||
entries identically. That is, even if a key is configured
|
entries identically. That is, even if a key is configured
|
||||||
with <command>initial-key</command>, indicating that it is
|
with <command>initial-key</command>, indicating that it is
|
||||||
|
|||||||
+1
-1
@@ -197,7 +197,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Note: When reading the trust anchor file,
|
Note: When reading the trust anchor file,
|
||||||
<span class="command"><strong>delv</strong></span> treats <code class="option">trust-anchors</code>
|
<span class="command"><strong>delv</strong></span> treats <code class="option">dnssec-keys</code>
|
||||||
<code class="option">initial-key</code> and <code class="option">static-key</code>
|
<code class="option">initial-key</code> and <code class="option">static-key</code>
|
||||||
entries identically. That is, even if a key is configured
|
entries identically. That is, even if a key is configured
|
||||||
with <span class="command"><strong>initial-key</strong></span>, indicating that it is
|
with <span class="command"><strong>initial-key</strong></span>, indicating that it is
|
||||||
|
|||||||
+15
-19
@@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
dig_lookup_t *default_lookup = NULL;
|
dig_lookup_t *default_lookup = NULL;
|
||||||
|
|
||||||
static atomic_uintptr_t batchname = ATOMIC_VAR_INIT(0);
|
static char *batchname = NULL;
|
||||||
static FILE *batchfp = NULL;
|
static FILE *batchfp = NULL;
|
||||||
static char *argv0;
|
static char *argv0;
|
||||||
static int addresscount = 0;
|
static int addresscount = 0;
|
||||||
@@ -239,7 +239,6 @@ help(void) {
|
|||||||
" +[no]unknownformat (Print RDATA in RFC 3597 \"unknown\" "
|
" +[no]unknownformat (Print RDATA in RFC 3597 \"unknown\" "
|
||||||
"format)\n"
|
"format)\n"
|
||||||
" +[no]vc (TCP mode (+[no]tcp))\n"
|
" +[no]vc (TCP mode (+[no]tcp))\n"
|
||||||
" +[no]yaml (Present the results as YAML)\n"
|
|
||||||
" +[no]zflag (Set Z flag in query)\n"
|
" +[no]zflag (Set Z flag in query)\n"
|
||||||
" global d-opts and servers (before host name) affect all queries.\n"
|
" global d-opts and servers (before host name) affect all queries.\n"
|
||||||
" local d-opts and servers (after host name) affect only that lookup.\n"
|
" local d-opts and servers (after host name) affect only that lookup.\n"
|
||||||
@@ -487,8 +486,8 @@ printmessage(dig_query_t *query, const isc_buffer_t *msgbuf,
|
|||||||
|
|
||||||
styleflags |= DNS_STYLEFLAG_REL_OWNER;
|
styleflags |= DNS_STYLEFLAG_REL_OWNER;
|
||||||
if (yaml) {
|
if (yaml) {
|
||||||
msg->indent.string = " ";
|
dns_master_indentstr = " ";
|
||||||
msg->indent.count = 3;
|
dns_master_indent = 3;
|
||||||
styleflags |= DNS_STYLEFLAG_YAML;
|
styleflags |= DNS_STYLEFLAG_YAML;
|
||||||
} else {
|
} else {
|
||||||
if (query->lookup->comments) {
|
if (query->lookup->comments) {
|
||||||
@@ -1874,7 +1873,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||||||
value);
|
value);
|
||||||
return (value_from_next);
|
return (value_from_next);
|
||||||
case 'f':
|
case 'f':
|
||||||
atomic_store(&batchname, (uintptr_t)value);
|
batchname = value;
|
||||||
return (value_from_next);
|
return (value_from_next);
|
||||||
case 'k':
|
case 'k':
|
||||||
strlcpy(keyfile, value, sizeof(keyfile));
|
strlcpy(keyfile, value, sizeof(keyfile));
|
||||||
@@ -2327,15 +2326,13 @@ parse_args(bool is_batchfile, bool config_only,
|
|||||||
* first entry, then trust the callback in dighost_shutdown
|
* first entry, then trust the callback in dighost_shutdown
|
||||||
* to get the rest
|
* to get the rest
|
||||||
*/
|
*/
|
||||||
char *filename = (char *)atomic_load(&batchname);
|
if ((batchname != NULL) && !(is_batchfile)) {
|
||||||
if ((filename != NULL) && !(is_batchfile)) {
|
if (strcmp(batchname, "-") == 0)
|
||||||
if (strcmp(filename, "-") == 0) {
|
|
||||||
batchfp = stdin;
|
batchfp = stdin;
|
||||||
} else {
|
else
|
||||||
batchfp = fopen(filename, "r");
|
batchfp = fopen(batchname, "r");
|
||||||
}
|
|
||||||
if (batchfp == NULL) {
|
if (batchfp == NULL) {
|
||||||
perror(filename);
|
perror(batchname);
|
||||||
if (exitcode < 8)
|
if (exitcode < 8)
|
||||||
exitcode = 8;
|
exitcode = 8;
|
||||||
fatal("couldn't open specified batch file");
|
fatal("couldn't open specified batch file");
|
||||||
@@ -2390,14 +2387,14 @@ query_finished(void) {
|
|||||||
int bargc;
|
int bargc;
|
||||||
char *bargv[16];
|
char *bargv[16];
|
||||||
|
|
||||||
if (atomic_load(&batchname) == 0) {
|
if (batchname == NULL) {
|
||||||
isc_app_shutdown();
|
isc_app_shutdown();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
if (feof(batchfp)) {
|
if (feof(batchfp)) {
|
||||||
atomic_store(&batchname, 0);
|
batchname = NULL;
|
||||||
isc_app_shutdown();
|
isc_app_shutdown();
|
||||||
if (batchfp != stdin)
|
if (batchfp != stdin)
|
||||||
fclose(batchfp);
|
fclose(batchfp);
|
||||||
@@ -2411,7 +2408,7 @@ query_finished(void) {
|
|||||||
parse_args(true, false, bargc, (char **)bargv);
|
parse_args(true, false, bargc, (char **)bargv);
|
||||||
start_lookup();
|
start_lookup();
|
||||||
} else {
|
} else {
|
||||||
atomic_store(&batchname, 0);
|
batchname = NULL;
|
||||||
if (batchfp != stdin)
|
if (batchfp != stdin)
|
||||||
fclose(batchfp);
|
fclose(batchfp);
|
||||||
isc_app_shutdown();
|
isc_app_shutdown();
|
||||||
@@ -2541,11 +2538,10 @@ void dig_query_start()
|
|||||||
void
|
void
|
||||||
dig_shutdown() {
|
dig_shutdown() {
|
||||||
destroy_lookup(default_lookup);
|
destroy_lookup(default_lookup);
|
||||||
if (atomic_load(&batchname) != 0) {
|
if (batchname != NULL) {
|
||||||
if (batchfp != stdin) {
|
if (batchfp != stdin)
|
||||||
fclose(batchfp);
|
fclose(batchfp);
|
||||||
}
|
batchname = NULL;
|
||||||
atomic_store(&batchname, 0);
|
|
||||||
}
|
}
|
||||||
cancel_all();
|
cancel_all();
|
||||||
destroy_libs();
|
destroy_libs();
|
||||||
|
|||||||
@@ -53,7 +53,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
+2
-1
@@ -1379,7 +1379,7 @@ setup_libs(void) {
|
|||||||
|
|
||||||
isc_log_setdebuglevel(lctx, 0);
|
isc_log_setdebuglevel(lctx, 0);
|
||||||
|
|
||||||
result = isc_taskmgr_create(mctx, 1, 0, NULL, &taskmgr);
|
result = isc_taskmgr_create(mctx, 1, 0, &taskmgr);
|
||||||
check_result(result, "isc_taskmgr_create");
|
check_result(result, "isc_taskmgr_create");
|
||||||
|
|
||||||
result = isc_task_create(taskmgr, 0, &global_task);
|
result = isc_task_create(taskmgr, 0, &global_task);
|
||||||
@@ -4252,6 +4252,7 @@ destroy_libs(void) {
|
|||||||
result = dns_name_settotextfilter(NULL);
|
result = dns_name_settotextfilter(NULL);
|
||||||
check_result(result, "dns_name_settotextfilter");
|
check_result(result, "dns_name_settotextfilter");
|
||||||
#endif /* HAVE_LIBIDN2 */
|
#endif /* HAVE_LIBIDN2 */
|
||||||
|
dns_name_destroy();
|
||||||
|
|
||||||
if (commctx != NULL) {
|
if (commctx != NULL) {
|
||||||
debug("freeing commctx");
|
debug("freeing commctx");
|
||||||
|
|||||||
@@ -48,7 +48,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -72,7 +72,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -15,26 +15,24 @@ VERSION=@BIND9_VERSION@
|
|||||||
|
|
||||||
@BIND9_MAKE_INCLUDES@
|
@BIND9_MAKE_INCLUDES@
|
||||||
|
|
||||||
CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
|
CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} \
|
||||||
${OPENSSL_CFLAGS}
|
${OPENSSL_CFLAGS}
|
||||||
|
|
||||||
CDEFINES = -DVERSION=\"${VERSION}\" -DNAMED_CONFFILE=\"${sysconfdir}/named.conf\"
|
CDEFINES = -DVERSION=\"${VERSION}\"
|
||||||
CWARNINGS =
|
CWARNINGS =
|
||||||
|
|
||||||
DNSLIBS = ../../lib/dns/libdns.@A@ ${MAXMINDDB_LIBS} @DNS_CRYPTO_LIBS@
|
DNSLIBS = ../../lib/dns/libdns.@A@ ${MAXMINDDB_LIBS} @DNS_CRYPTO_LIBS@
|
||||||
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
|
|
||||||
ISCLIBS = ../../lib/isc/libisc.@A@ ${OPENSSL_LIBS} ${JSON_C_LIBS} ${LIBXML2_LIBS}
|
ISCLIBS = ../../lib/isc/libisc.@A@ ${OPENSSL_LIBS} ${JSON_C_LIBS} ${LIBXML2_LIBS}
|
||||||
ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ ${OPENSSL_LIBS} ${JSON_C_LIBS} ${LIBXML2_LIBS}
|
ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ ${OPENSSL_LIBS} ${JSON_C_LIBS} ${LIBXML2_LIBS}
|
||||||
|
|
||||||
DNSDEPLIBS = ../../lib/dns/libdns.@A@
|
DNSDEPLIBS = ../../lib/dns/libdns.@A@
|
||||||
ISCDEPLIBS = ../../lib/isc/libisc.@A@
|
ISCDEPLIBS = ../../lib/isc/libisc.@A@
|
||||||
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
|
|
||||||
|
|
||||||
DEPLIBS = ${DNSDEPLIBS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS}
|
DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
|
||||||
|
|
||||||
LIBS = ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} @LIBS@
|
LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@
|
||||||
|
|
||||||
NOSYMLIBS = ${DNSLIBS} ${ISCCFGLIBS} ${ISCNOSYMLIBS} @LIBS@
|
NOSYMLIBS = ${DNSLIBS} ${ISCNOSYMLIBS} @LIBS@
|
||||||
|
|
||||||
# Alphabetically
|
# Alphabetically
|
||||||
TARGETS = dnssec-cds@EXEEXT@ dnssec-dsfromkey@EXEEXT@ \
|
TARGETS = dnssec-cds@EXEEXT@ dnssec-dsfromkey@EXEEXT@ \
|
||||||
@@ -50,7 +48,7 @@ SRCS = dnssec-cds.c dnssec-dsfromkey.c dnssec-importkey.c \
|
|||||||
dnssec-settime.c dnssec-signzone.c dnssec-verify.c \
|
dnssec-settime.c dnssec-signzone.c dnssec-verify.c \
|
||||||
dnssectool.c
|
dnssectool.c
|
||||||
|
|
||||||
MANPAGES = dnssec-cds.8 dnssec-dsfromkey.8 dnssec-importkey.8 \
|
MANPAGES = dnssec-cds.8 dnssec-dsfromkey.8 dnssec-importkey.8 \
|
||||||
dnssec-keyfromlabel.8 dnssec-keygen.8 dnssec-revoke.8 \
|
dnssec-keyfromlabel.8 dnssec-keygen.8 dnssec-revoke.8 \
|
||||||
dnssec-settime.8 dnssec-signzone.8 dnssec-verify.8
|
dnssec-settime.8 dnssec-signzone.8 dnssec-verify.8
|
||||||
|
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ formatset(dns_rdataset_t *rdataset) {
|
|||||||
|
|
||||||
result = isc_buffer_allocate(mctx, &buf, MAX_CDS_RDATA_TEXT_SIZE);
|
result = isc_buffer_allocate(mctx, &buf, MAX_CDS_RDATA_TEXT_SIZE);
|
||||||
check_result(result, "printing DS records");
|
check_result(result, "printing DS records");
|
||||||
result = dns_master_rdatasettotext(name, rdataset, style, NULL, buf);
|
result = dns_master_rdatasettotext(name, rdataset, style, buf);
|
||||||
|
|
||||||
if ((result == ISC_R_SUCCESS) && isc_buffer_availablelength(buf) < 1) {
|
if ((result == ISC_R_SUCCESS) && isc_buffer_availablelength(buf) < 1) {
|
||||||
result = ISC_R_NOSPACE;
|
result = ISC_R_NOSPACE;
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -517,6 +517,7 @@ main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
cleanup_logging(&log);
|
cleanup_logging(&log);
|
||||||
dst_lib_destroy();
|
dst_lib_destroy();
|
||||||
|
dns_name_destroy();
|
||||||
if (verbose > 10) {
|
if (verbose > 10) {
|
||||||
isc_mem_stats(mctx, stdout);
|
isc_mem_stats(mctx, stdout);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -439,6 +439,7 @@ main(int argc, char **argv) {
|
|||||||
dns_rdataset_disassociate(&rdataset);
|
dns_rdataset_disassociate(&rdataset);
|
||||||
cleanup_logging(&log);
|
cleanup_logging(&log);
|
||||||
dst_lib_destroy();
|
dst_lib_destroy();
|
||||||
|
dns_name_destroy();
|
||||||
if (verbose > 10)
|
if (verbose > 10)
|
||||||
isc_mem_stats(mctx, stdout);
|
isc_mem_stats(mctx, stdout);
|
||||||
isc_mem_destroy(&mctx);
|
isc_mem_destroy(&mctx);
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -694,6 +694,7 @@ main(int argc, char **argv) {
|
|||||||
|
|
||||||
cleanup_logging(&log);
|
cleanup_logging(&log);
|
||||||
dst_lib_destroy();
|
dst_lib_destroy();
|
||||||
|
dns_name_destroy();
|
||||||
if (verbose > 10)
|
if (verbose > 10)
|
||||||
isc_mem_stats(mctx, stdout);
|
isc_mem_stats(mctx, stdout);
|
||||||
isc_mem_free(mctx, label);
|
isc_mem_free(mctx, label);
|
||||||
|
|||||||
@@ -44,7 +44,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
dnssec-keygen \- DNSSEC key generation tool
|
dnssec-keygen \- DNSSEC key generation tool
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
.HP \w'\fBdnssec\-keygen\fR\ 'u
|
.HP \w'\fBdnssec\-keygen\fR\ 'u
|
||||||
\fBdnssec\-keygen\fR [\fB\-3\fR] [\fB\-A\ \fR\fB\fIdate/offset\fR\fR] [\fB\-a\ \fR\fB\fIalgorithm\fR\fR] [\fB\-b\ \fR\fB\fIkeysize\fR\fR] [\fB\-C\fR] [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-D\ \fR\fB\fIdate/offset\fR\fR] [\fB\-D\ sync\ \fR\fB\fIdate/offset\fR\fR] [\fB\-d\ \fR\fB\fIbits\fR\fR] [\fB\-E\ \fR\fB\fIengine\fR\fR] [\fB\-f\ \fR\fB\fIflag\fR\fR] [\fB\-G\fR] [\fB\-g\ \fR\fB\fIgenerator\fR\fR] [\fB\-h\fR] [\fB\-I\ \fR\fB\fIdate/offset\fR\fR] [\fB\-i\ \fR\fB\fIinterval\fR\fR] [\fB\-K\ \fR\fB\fIdirectory\fR\fR] [\fB\-k\ \fR\fB\fIpolicy\fR\fR] [\fB\-L\ \fR\fB\fIttl\fR\fR] [\fB\-l\ \fR\fB\fIfile\fR\fR] [\fB\-n\ \fR\fB\fInametype\fR\fR] [\fB\-P\ \fR\fB\fIdate/offset\fR\fR] [\fB\-P\ sync\ \fR\fB\fIdate/offset\fR\fR] [\fB\-p\ \fR\fB\fIprotocol\fR\fR] [\fB\-q\fR] [\fB\-R\ \fR\fB\fIdate/offset\fR\fR] [\fB\-S\ \fR\fB\fIkey\fR\fR] [\fB\-s\ \fR\fB\fIstrength\fR\fR] [\fB\-T\ \fR\fB\fIrrtype\fR\fR] [\fB\-t\ \fR\fB\fItype\fR\fR] [\fB\-V\fR] [\fB\-v\ \fR\fB\fIlevel\fR\fR] {name}
|
\fBdnssec\-keygen\fR [\fB\-3\fR] [\fB\-A\ \fR\fB\fIdate/offset\fR\fR] [\fB\-a\ \fR\fB\fIalgorithm\fR\fR] [\fB\-b\ \fR\fB\fIkeysize\fR\fR] [\fB\-C\fR] [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-D\ \fR\fB\fIdate/offset\fR\fR] [\fB\-D\ sync\ \fR\fB\fIdate/offset\fR\fR] [\fB\-E\ \fR\fB\fIengine\fR\fR] [\fB\-f\ \fR\fB\fIflag\fR\fR] [\fB\-G\fR] [\fB\-g\ \fR\fB\fIgenerator\fR\fR] [\fB\-h\fR] [\fB\-I\ \fR\fB\fIdate/offset\fR\fR] [\fB\-i\ \fR\fB\fIinterval\fR\fR] [\fB\-K\ \fR\fB\fIdirectory\fR\fR] [\fB\-k\fR] [\fB\-L\ \fR\fB\fIttl\fR\fR] [\fB\-n\ \fR\fB\fInametype\fR\fR] [\fB\-P\ \fR\fB\fIdate/offset\fR\fR] [\fB\-P\ sync\ \fR\fB\fIdate/offset\fR\fR] [\fB\-p\ \fR\fB\fIprotocol\fR\fR] [\fB\-q\fR] [\fB\-R\ \fR\fB\fIdate/offset\fR\fR] [\fB\-S\ \fR\fB\fIkey\fR\fR] [\fB\-s\ \fR\fB\fIstrength\fR\fR] [\fB\-t\ \fR\fB\fItype\fR\fR] [\fB\-V\fR] [\fB\-v\ \fR\fB\fIlevel\fR\fR] {name}
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
.PP
|
.PP
|
||||||
\fBdnssec\-keygen\fR
|
\fBdnssec\-keygen\fR
|
||||||
@@ -109,11 +109,6 @@ option suppresses them\&.
|
|||||||
Indicates that the DNS record containing the key should have the specified class\&. If not specified, class IN is used\&.
|
Indicates that the DNS record containing the key should have the specified class\&. If not specified, class IN is used\&.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\-d \fIbits\fR
|
|
||||||
.RS 4
|
|
||||||
Key size in bits\&. For the algorithms RSASHA1, NSEC3RSASA1, RSASHA256 and RSASHA512 the key size must be in range 1024\-4096\&. DH size is between 128 and 4096\&. This option is ignored for algorithms ECDSAP256SHA256, ECDSAP384SHA384, ED25519 and ED448\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-E \fIengine\fR
|
\-E \fIengine\fR
|
||||||
.RS 4
|
.RS 4
|
||||||
Specifies the cryptographic hardware to use, when applicable\&.
|
Specifies the cryptographic hardware to use, when applicable\&.
|
||||||
@@ -147,17 +142,6 @@ Prints a short summary of the options and arguments to
|
|||||||
Sets the directory in which the key files are to be written\&.
|
Sets the directory in which the key files are to be written\&.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\-k \fIpolicy\fR
|
|
||||||
.RS 4
|
|
||||||
Create keys for a specific dnssec\-policy\&. If a policy uses multiple keys,
|
|
||||||
\fBdnssec\-keygen\fR
|
|
||||||
will generate multiple keys\&. This will also create a "\&.state" file to keep track of the key state\&.
|
|
||||||
.sp
|
|
||||||
This option creates keys according to the dnssec\-policy configuration, hence it cannot be used together with many of the other options that
|
|
||||||
\fBdnssec\-keygen\fR
|
|
||||||
provides\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-L \fIttl\fR
|
\-L \fIttl\fR
|
||||||
.RS 4
|
.RS 4
|
||||||
Sets the default TTL to use for this key when it is converted into a DNSKEY RR\&. If the key is imported into a zone, this is the TTL that will be used for it, unless there was already a DNSKEY RRset in place, in which case the existing TTL would take precedence\&. If this value is not set and there is no existing DNSKEY RRset, the TTL will default to the SOA TTL\&. Setting the default TTL to
|
Sets the default TTL to use for this key when it is converted into a DNSKEY RR\&. If the key is imported into a zone, this is the TTL that will be used for it, unless there was already a DNSKEY RRset in place, in which case the existing TTL would take precedence\&. If this value is not set and there is no existing DNSKEY RRset, the TTL will default to the SOA TTL\&. Setting the default TTL to
|
||||||
@@ -167,12 +151,6 @@ none
|
|||||||
is the same as leaving it unset\&.
|
is the same as leaving it unset\&.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\-l \fIfile\fR
|
|
||||||
.RS 4
|
|
||||||
Provide a configuration file that contains a dnssec\-policy statement (matching the policy set with
|
|
||||||
\fB\-k\fR)\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-n \fInametype\fR
|
\-n \fInametype\fR
|
||||||
.RS 4
|
.RS 4
|
||||||
Specifies the owner type of the key\&. The value of
|
Specifies the owner type of the key\&. The value of
|
||||||
|
|||||||
+543
-816
File diff suppressed because it is too large
Load Diff
@@ -51,7 +51,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
@@ -67,7 +66,6 @@
|
|||||||
<arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-D <replaceable class="parameter">date/offset</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-D <replaceable class="parameter">date/offset</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-D sync <replaceable class="parameter">date/offset</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-D sync <replaceable class="parameter">date/offset</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-d <replaceable class="parameter">bits</replaceable></option></arg>
|
|
||||||
<arg choice="opt" rep="norepeat"><option>-E <replaceable class="parameter">engine</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-E <replaceable class="parameter">engine</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">flag</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">flag</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-G</option></arg>
|
<arg choice="opt" rep="norepeat"><option>-G</option></arg>
|
||||||
@@ -76,9 +74,8 @@
|
|||||||
<arg choice="opt" rep="norepeat"><option>-I <replaceable class="parameter">date/offset</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-I <replaceable class="parameter">date/offset</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-i <replaceable class="parameter">interval</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-i <replaceable class="parameter">interval</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-K <replaceable class="parameter">directory</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-K <replaceable class="parameter">directory</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">policy</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-k</option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-L <replaceable class="parameter">ttl</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-L <replaceable class="parameter">ttl</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-l <replaceable class="parameter">file</replaceable></option></arg>
|
|
||||||
<arg choice="opt" rep="norepeat"><option>-n <replaceable class="parameter">nametype</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-n <replaceable class="parameter">nametype</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-P <replaceable class="parameter">date/offset</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-P <replaceable class="parameter">date/offset</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-P sync <replaceable class="parameter">date/offset</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-P sync <replaceable class="parameter">date/offset</replaceable></option></arg>
|
||||||
@@ -87,7 +84,6 @@
|
|||||||
<arg choice="opt" rep="norepeat"><option>-R <replaceable class="parameter">date/offset</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-R <replaceable class="parameter">date/offset</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-S <replaceable class="parameter">key</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-S <replaceable class="parameter">key</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-s <replaceable class="parameter">strength</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-s <replaceable class="parameter">strength</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-T <replaceable class="parameter">rrtype</replaceable></option></arg>
|
|
||||||
<arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">type</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">type</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-V</option></arg>
|
<arg choice="opt" rep="norepeat"><option>-V</option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-v <replaceable class="parameter">level</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-v <replaceable class="parameter">level</replaceable></option></arg>
|
||||||
@@ -211,18 +207,6 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-d <replaceable class="parameter">bits</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Key size in bits. For the algorithms RSASHA1, NSEC3RSASA1,
|
|
||||||
RSASHA256 and RSASHA512 the key size must be in range 1024-4096.
|
|
||||||
DH size is between 128 and 4096. This option is ignored for
|
|
||||||
algorithms ECDSAP256SHA256, ECDSAP384SHA384, ED25519 and ED448.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>-E <replaceable class="parameter">engine</replaceable></term>
|
<term>-E <replaceable class="parameter">engine</replaceable></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -291,24 +275,6 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-k <replaceable class="parameter">policy</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Create keys for a specific dnssec-policy. If a policy uses
|
|
||||||
multiple keys, <command>dnssec-keygen</command> will generate
|
|
||||||
multiple keys. This will also create a ".state" file to keep
|
|
||||||
track of the key state.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
This option creates keys according to the dnssec-policy
|
|
||||||
configuration, hence it cannot be used together with many of
|
|
||||||
the other options that <command>dnssec-keygen</command>
|
|
||||||
provides.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>-L <replaceable class="parameter">ttl</replaceable></term>
|
<term>-L <replaceable class="parameter">ttl</replaceable></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -325,16 +291,6 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-l <replaceable class="parameter">file</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Provide a configuration file that contains a dnssec-policy
|
|
||||||
statement (matching the policy set with <command>-k</command>).
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>-n <replaceable class="parameter">nametype</replaceable></term>
|
<term>-n <replaceable class="parameter">nametype</replaceable></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
[<code class="option">-c <em class="replaceable"><code>class</code></em></code>]
|
[<code class="option">-c <em class="replaceable"><code>class</code></em></code>]
|
||||||
[<code class="option">-D <em class="replaceable"><code>date/offset</code></em></code>]
|
[<code class="option">-D <em class="replaceable"><code>date/offset</code></em></code>]
|
||||||
[<code class="option">-D sync <em class="replaceable"><code>date/offset</code></em></code>]
|
[<code class="option">-D sync <em class="replaceable"><code>date/offset</code></em></code>]
|
||||||
[<code class="option">-d <em class="replaceable"><code>bits</code></em></code>]
|
|
||||||
[<code class="option">-E <em class="replaceable"><code>engine</code></em></code>]
|
[<code class="option">-E <em class="replaceable"><code>engine</code></em></code>]
|
||||||
[<code class="option">-f <em class="replaceable"><code>flag</code></em></code>]
|
[<code class="option">-f <em class="replaceable"><code>flag</code></em></code>]
|
||||||
[<code class="option">-G</code>]
|
[<code class="option">-G</code>]
|
||||||
@@ -50,9 +49,8 @@
|
|||||||
[<code class="option">-I <em class="replaceable"><code>date/offset</code></em></code>]
|
[<code class="option">-I <em class="replaceable"><code>date/offset</code></em></code>]
|
||||||
[<code class="option">-i <em class="replaceable"><code>interval</code></em></code>]
|
[<code class="option">-i <em class="replaceable"><code>interval</code></em></code>]
|
||||||
[<code class="option">-K <em class="replaceable"><code>directory</code></em></code>]
|
[<code class="option">-K <em class="replaceable"><code>directory</code></em></code>]
|
||||||
[<code class="option">-k <em class="replaceable"><code>policy</code></em></code>]
|
[<code class="option">-k</code>]
|
||||||
[<code class="option">-L <em class="replaceable"><code>ttl</code></em></code>]
|
[<code class="option">-L <em class="replaceable"><code>ttl</code></em></code>]
|
||||||
[<code class="option">-l <em class="replaceable"><code>file</code></em></code>]
|
|
||||||
[<code class="option">-n <em class="replaceable"><code>nametype</code></em></code>]
|
[<code class="option">-n <em class="replaceable"><code>nametype</code></em></code>]
|
||||||
[<code class="option">-P <em class="replaceable"><code>date/offset</code></em></code>]
|
[<code class="option">-P <em class="replaceable"><code>date/offset</code></em></code>]
|
||||||
[<code class="option">-P sync <em class="replaceable"><code>date/offset</code></em></code>]
|
[<code class="option">-P sync <em class="replaceable"><code>date/offset</code></em></code>]
|
||||||
@@ -61,7 +59,6 @@
|
|||||||
[<code class="option">-R <em class="replaceable"><code>date/offset</code></em></code>]
|
[<code class="option">-R <em class="replaceable"><code>date/offset</code></em></code>]
|
||||||
[<code class="option">-S <em class="replaceable"><code>key</code></em></code>]
|
[<code class="option">-S <em class="replaceable"><code>key</code></em></code>]
|
||||||
[<code class="option">-s <em class="replaceable"><code>strength</code></em></code>]
|
[<code class="option">-s <em class="replaceable"><code>strength</code></em></code>]
|
||||||
[<code class="option">-T <em class="replaceable"><code>rrtype</code></em></code>]
|
|
||||||
[<code class="option">-t <em class="replaceable"><code>type</code></em></code>]
|
[<code class="option">-t <em class="replaceable"><code>type</code></em></code>]
|
||||||
[<code class="option">-V</code>]
|
[<code class="option">-V</code>]
|
||||||
[<code class="option">-v <em class="replaceable"><code>level</code></em></code>]
|
[<code class="option">-v <em class="replaceable"><code>level</code></em></code>]
|
||||||
@@ -171,15 +168,6 @@
|
|||||||
the specified class. If not specified, class IN is used.
|
the specified class. If not specified, class IN is used.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><span class="term">-d <em class="replaceable"><code>bits</code></em></span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
Key size in bits. For the algorithms RSASHA1, NSEC3RSASA1,
|
|
||||||
RSASHA256 and RSASHA512 the key size must be in range 1024-4096.
|
|
||||||
DH size is between 128 and 4096. This option is ignored for
|
|
||||||
algorithms ECDSAP256SHA256, ECDSAP384SHA384, ED25519 and ED448.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
<dt><span class="term">-E <em class="replaceable"><code>engine</code></em></span></dt>
|
<dt><span class="term">-E <em class="replaceable"><code>engine</code></em></span></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
@@ -230,21 +218,6 @@
|
|||||||
Sets the directory in which the key files are to be written.
|
Sets the directory in which the key files are to be written.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><span class="term">-k <em class="replaceable"><code>policy</code></em></span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
Create keys for a specific dnssec-policy. If a policy uses
|
|
||||||
multiple keys, <span class="command"><strong>dnssec-keygen</strong></span> will generate
|
|
||||||
multiple keys. This will also create a ".state" file to keep
|
|
||||||
track of the key state.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
This option creates keys according to the dnssec-policy
|
|
||||||
configuration, hence it cannot be used together with many of
|
|
||||||
the other options that <span class="command"><strong>dnssec-keygen</strong></span>
|
|
||||||
provides.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
<dt><span class="term">-L <em class="replaceable"><code>ttl</code></em></span></dt>
|
<dt><span class="term">-L <em class="replaceable"><code>ttl</code></em></span></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
@@ -258,13 +231,6 @@
|
|||||||
or <code class="literal">none</code> is the same as leaving it unset.
|
or <code class="literal">none</code> is the same as leaving it unset.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><span class="term">-l <em class="replaceable"><code>file</code></em></span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
Provide a configuration file that contains a dnssec-policy
|
|
||||||
statement (matching the policy set with <span class="command"><strong>-k</strong></span>).
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
<dt><span class="term">-n <em class="replaceable"><code>nametype</code></em></span></dt>
|
<dt><span class="term">-n <em class="replaceable"><code>nametype</code></em></span></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
dnssec-settime \- set the key timing metadata for a DNSSEC key
|
dnssec-settime \- set the key timing metadata for a DNSSEC key
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
.HP \w'\fBdnssec\-settime\fR\ 'u
|
.HP \w'\fBdnssec\-settime\fR\ 'u
|
||||||
\fBdnssec\-settime\fR [\fB\-f\fR] [\fB\-K\ \fR\fB\fIdirectory\fR\fR] [\fB\-L\ \fR\fB\fIttl\fR\fR] [\fB\-P\ \fR\fB\fIdate/offset\fR\fR] [\fB\-P\ sync\ \fR\fB\fIdate/offset\fR\fR] [\fB\-A\ \fR\fB\fIdate/offset\fR\fR] [\fB\-R\ \fR\fB\fIdate/offset\fR\fR] [\fB\-I\ \fR\fB\fIdate/offset\fR\fR] [\fB\-D\ \fR\fB\fIdate/offset\fR\fR] [\fB\-D\ sync\ \fR\fB\fIdate/offset\fR\fR] [\fB\-S\ \fR\fB\fIkey\fR\fR] [\fB\-i\ \fR\fB\fIinterval\fR\fR] [\fB\-h\fR] [\fB\-V\fR] [\fB\-v\ \fR\fB\fIlevel\fR\fR] [\fB\-E\ \fR\fB\fIengine\fR\fR] [\fB\-s\fR] [\fB\-g\ \fR\fB\fIstate\fR\fR] [\fB\-d\ \fR\fB\fIstate\fR\fR\fB\ \fR\fB\fIdate/offset\fR\fR] [\fB\-k\ \fR\fB\fIstate\fR\fR\fB\ \fR\fB\fIdate/offset\fR\fR] [\fB\-r\ \fR\fB\fIstate\fR\fR\fB\ \fR\fB\fIdate/offset\fR\fR] [\fB\-z\ \fR\fB\fIstate\fR\fR\fB\ \fR\fB\fIdate/offset\fR\fR] {keyfile}
|
\fBdnssec\-settime\fR [\fB\-f\fR] [\fB\-K\ \fR\fB\fIdirectory\fR\fR] [\fB\-L\ \fR\fB\fIttl\fR\fR] [\fB\-P\ \fR\fB\fIdate/offset\fR\fR] [\fB\-P\ sync\ \fR\fB\fIdate/offset\fR\fR] [\fB\-A\ \fR\fB\fIdate/offset\fR\fR] [\fB\-R\ \fR\fB\fIdate/offset\fR\fR] [\fB\-I\ \fR\fB\fIdate/offset\fR\fR] [\fB\-D\ \fR\fB\fIdate/offset\fR\fR] [\fB\-D\ sync\ \fR\fB\fIdate/offset\fR\fR] [\fB\-S\ \fR\fB\fIkey\fR\fR] [\fB\-i\ \fR\fB\fIinterval\fR\fR] [\fB\-h\fR] [\fB\-V\fR] [\fB\-v\ \fR\fB\fIlevel\fR\fR] [\fB\-E\ \fR\fB\fIengine\fR\fR] {keyfile}
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
.PP
|
.PP
|
||||||
\fBdnssec\-settime\fR
|
\fBdnssec\-settime\fR
|
||||||
@@ -59,25 +59,7 @@ simply prints the key timing metadata already stored in the key\&.
|
|||||||
.PP
|
.PP
|
||||||
When key metadata fields are changed, both files of a key pair (Knnnn\&.+aaa+iiiii\&.key
|
When key metadata fields are changed, both files of a key pair (Knnnn\&.+aaa+iiiii\&.key
|
||||||
and
|
and
|
||||||
Knnnn\&.+aaa+iiiii\&.private) are regenerated\&.
|
Knnnn\&.+aaa+iiiii\&.private) are regenerated\&. Metadata fields are stored in the private file\&. A human\-readable description of the metadata is also placed in comments in the key file\&. The private file\*(Aqs permissions are always set to be inaccessible to anyone other than the owner (mode 0600)\&.
|
||||||
.PP
|
|
||||||
Metadata fields are stored in the private file\&. A human\-readable description of the metadata is also placed in comments in the key file\&. The private file\*(Aqs permissions are always set to be inaccessible to anyone other than the owner (mode 0600)\&.
|
|
||||||
.PP
|
|
||||||
When working with state files, it is possible to update the timing metadata in those files as well with
|
|
||||||
\fB\-s\fR\&. If this option is used you can also update key states with
|
|
||||||
\fB\-d\fR
|
|
||||||
(DS),
|
|
||||||
\fB\-k\fR
|
|
||||||
(DNSKEY),
|
|
||||||
\fB\-r\fR
|
|
||||||
(RRSIG of KSK), or
|
|
||||||
\fB\-z\fR
|
|
||||||
(RRSIG of ZSK)\&. Allowed states are HIDDEN, RUMOURED, OMNIPRESENT, and UNRETENTIVE\&.
|
|
||||||
.PP
|
|
||||||
You can also set the goal state of the key with
|
|
||||||
\fB\-g\fR\&. This should be either HIDDEN or OMNIPRESENT (representing whether the key should be removed from the zone, or published)\&.
|
|
||||||
.PP
|
|
||||||
It is NOT RECOMMENDED to manipulate state files manually except for testing purposes\&.
|
|
||||||
.SH "OPTIONS"
|
.SH "OPTIONS"
|
||||||
.PP
|
.PP
|
||||||
\-f
|
\-f
|
||||||
@@ -174,39 +156,6 @@ If the key is being set to be an explicit successor to another key, then the def
|
|||||||
.sp
|
.sp
|
||||||
As with date offsets, if the argument is followed by one of the suffixes \*(Aqy\*(Aq, \*(Aqmo\*(Aq, \*(Aqw\*(Aq, \*(Aqd\*(Aq, \*(Aqh\*(Aq, or \*(Aqmi\*(Aq, then the interval is measured in years, months, weeks, days, hours, or minutes, respectively\&. Without a suffix, the interval is measured in seconds\&.
|
As with date offsets, if the argument is followed by one of the suffixes \*(Aqy\*(Aq, \*(Aqmo\*(Aq, \*(Aqw\*(Aq, \*(Aqd\*(Aq, \*(Aqh\*(Aq, or \*(Aqmi\*(Aq, then the interval is measured in years, months, weeks, days, hours, or minutes, respectively\&. Without a suffix, the interval is measured in seconds\&.
|
||||||
.RE
|
.RE
|
||||||
.SH "KEY STATE OPTIONS"
|
|
||||||
.PP
|
|
||||||
Known key states are HIDDEN, RUMOURED, OMNIPRESENT and UNRETENTIVE\&. These should not be set manually except for testing purposes\&.
|
|
||||||
.PP
|
|
||||||
\-s
|
|
||||||
.RS 4
|
|
||||||
When setting key timing data, also update the state file\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-g
|
|
||||||
.RS 4
|
|
||||||
Set the goal state for this key\&. Must be HIDDEN or OMNIPRESENT\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-d
|
|
||||||
.RS 4
|
|
||||||
Set the DS state for this key, and when it was last changed\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-k
|
|
||||||
.RS 4
|
|
||||||
Set the DNSKEY state for this key, and when it was last changed\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-r
|
|
||||||
.RS 4
|
|
||||||
Set the RRSIG (KSK) state for this key, and when it was last changed\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-z
|
|
||||||
.RS 4
|
|
||||||
Set the RRSIG (ZSK) state for this key, and when it was last changed\&.
|
|
||||||
.RE
|
|
||||||
.SH "PRINTING OPTIONS"
|
.SH "PRINTING OPTIONS"
|
||||||
.PP
|
.PP
|
||||||
\fBdnssec\-settime\fR
|
\fBdnssec\-settime\fR
|
||||||
|
|||||||
+158
-334
@@ -88,15 +88,6 @@ usage(void) {
|
|||||||
fprintf(stderr, " -i <interval>: prepublication interval for "
|
fprintf(stderr, " -i <interval>: prepublication interval for "
|
||||||
"successor key "
|
"successor key "
|
||||||
"(default: 30 days)\n");
|
"(default: 30 days)\n");
|
||||||
fprintf(stderr, "Key state options:\n");
|
|
||||||
fprintf(stderr, " -s: update key state file (default no)\n");
|
|
||||||
fprintf(stderr, " -g state: set the goal state for this key\n");
|
|
||||||
fprintf(stderr, " -d state date/[+-]offset: set the DS state\n");
|
|
||||||
fprintf(stderr, " -k state date/[+-]offset: set the DNSKEY state\n");
|
|
||||||
fprintf(stderr, " -r state date/[+-]offset: set the RRSIG (KSK) "
|
|
||||||
"state\n");
|
|
||||||
fprintf(stderr, " -z state date/[+-]offset: set the RRSIG (ZSK) "
|
|
||||||
"state\n");
|
|
||||||
fprintf(stderr, "Printing options:\n");
|
fprintf(stderr, "Printing options:\n");
|
||||||
fprintf(stderr, " -p C/P/Psync/A/R/I/D/Dsync/all: print a "
|
fprintf(stderr, " -p C/P/Psync/A/R/I/D/Dsync/all: print a "
|
||||||
"particular time value or values\n");
|
"particular time value or values\n");
|
||||||
@@ -132,87 +123,29 @@ printtime(dst_key_t *key, int type, const char *tag, bool epoch,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
writekey(dst_key_t *key, const char *directory, bool write_state)
|
|
||||||
{
|
|
||||||
char newname[1024];
|
|
||||||
char keystr[DST_KEY_FORMATSIZE];
|
|
||||||
isc_buffer_t buf;
|
|
||||||
isc_result_t result;
|
|
||||||
int options = DST_TYPE_PUBLIC|DST_TYPE_PRIVATE;
|
|
||||||
|
|
||||||
if (write_state) {
|
|
||||||
options |= DST_TYPE_STATE;
|
|
||||||
}
|
|
||||||
|
|
||||||
isc_buffer_init(&buf, newname, sizeof(newname));
|
|
||||||
result = dst_key_buildfilename(key, DST_TYPE_PUBLIC, directory, &buf);
|
|
||||||
if (result != ISC_R_SUCCESS) {
|
|
||||||
fatal("Failed to build public key filename: %s",
|
|
||||||
isc_result_totext(result));
|
|
||||||
}
|
|
||||||
|
|
||||||
result = dst_key_tofile(key, options, directory);
|
|
||||||
if (result != ISC_R_SUCCESS) {
|
|
||||||
dst_key_format(key, keystr, sizeof(keystr));
|
|
||||||
fatal("Failed to write key %s: %s", keystr,
|
|
||||||
isc_result_totext(result));
|
|
||||||
}
|
|
||||||
printf("%s\n", newname);
|
|
||||||
|
|
||||||
isc_buffer_clear(&buf);
|
|
||||||
result = dst_key_buildfilename(key, DST_TYPE_PRIVATE, directory, &buf);
|
|
||||||
if (result != ISC_R_SUCCESS) {
|
|
||||||
fatal("Failed to build private key filename: %s",
|
|
||||||
isc_result_totext(result));
|
|
||||||
}
|
|
||||||
printf("%s\n", newname);
|
|
||||||
|
|
||||||
if (write_state) {
|
|
||||||
isc_buffer_clear(&buf);
|
|
||||||
result = dst_key_buildfilename(key, DST_TYPE_STATE, directory,
|
|
||||||
&buf);
|
|
||||||
if (result != ISC_R_SUCCESS) {
|
|
||||||
fatal("Failed to build key state filename: %s",
|
|
||||||
isc_result_totext(result));
|
|
||||||
}
|
|
||||||
printf("%s\n", newname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv) {
|
main(int argc, char **argv) {
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
const char *engine = NULL;
|
const char *engine = NULL;
|
||||||
const char *filename = NULL;
|
const char *filename = NULL;
|
||||||
char *directory = NULL;
|
char *directory = NULL;
|
||||||
|
char newname[1024];
|
||||||
char keystr[DST_KEY_FORMATSIZE];
|
char keystr[DST_KEY_FORMATSIZE];
|
||||||
char *endp, *p;
|
char *endp, *p;
|
||||||
int ch;
|
int ch;
|
||||||
const char *predecessor = NULL;
|
const char *predecessor = NULL;
|
||||||
dst_key_t *prevkey = NULL;
|
dst_key_t *prevkey = NULL;
|
||||||
dst_key_t *key = NULL;
|
dst_key_t *key = NULL;
|
||||||
|
isc_buffer_t buf;
|
||||||
dns_name_t *name = NULL;
|
dns_name_t *name = NULL;
|
||||||
dns_secalg_t alg = 0;
|
dns_secalg_t alg = 0;
|
||||||
unsigned int size = 0;
|
unsigned int size = 0;
|
||||||
uint16_t flags = 0;
|
uint16_t flags = 0;
|
||||||
int prepub = -1;
|
int prepub = -1;
|
||||||
int options;
|
|
||||||
dns_ttl_t ttl = 0;
|
dns_ttl_t ttl = 0;
|
||||||
isc_stdtime_t now;
|
isc_stdtime_t now;
|
||||||
isc_stdtime_t dstime = 0, dnskeytime = 0;
|
|
||||||
isc_stdtime_t krrsigtime = 0, zrrsigtime = 0;
|
|
||||||
isc_stdtime_t pub = 0, act = 0, rev = 0, inact = 0, del = 0;
|
isc_stdtime_t pub = 0, act = 0, rev = 0, inact = 0, del = 0;
|
||||||
isc_stdtime_t prevact = 0, previnact = 0, prevdel = 0;
|
isc_stdtime_t prevact = 0, previnact = 0, prevdel = 0;
|
||||||
dst_key_state_t goal = DST_KEY_STATE_NA;
|
|
||||||
dst_key_state_t ds = DST_KEY_STATE_NA;
|
|
||||||
dst_key_state_t dnskey = DST_KEY_STATE_NA;
|
|
||||||
dst_key_state_t krrsig = DST_KEY_STATE_NA;
|
|
||||||
dst_key_state_t zrrsig = DST_KEY_STATE_NA;
|
|
||||||
bool setgoal = false, setds = false, setdnskey = false;
|
|
||||||
bool setkrrsig = false, setzrrsig = false;
|
|
||||||
bool setdstime = false, setdnskeytime = false;
|
|
||||||
bool setkrrsigtime = false, setzrrsigtime = false;
|
|
||||||
bool setpub = false, setact = false;
|
bool setpub = false, setact = false;
|
||||||
bool setrev = false, setinact = false;
|
bool setrev = false, setinact = false;
|
||||||
bool setdel = false, setttl = false;
|
bool setdel = false, setttl = false;
|
||||||
@@ -223,17 +156,14 @@ main(int argc, char **argv) {
|
|||||||
bool printact = false, printrev = false;
|
bool printact = false, printrev = false;
|
||||||
bool printinact = false, printdel = false;
|
bool printinact = false, printdel = false;
|
||||||
bool force = false;
|
bool force = false;
|
||||||
bool epoch = false;
|
bool epoch = false;
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
bool write_state = false;
|
|
||||||
isc_log_t *log = NULL;
|
isc_log_t *log = NULL;
|
||||||
isc_stdtime_t syncadd = 0, syncdel = 0;
|
isc_stdtime_t syncadd = 0, syncdel = 0;
|
||||||
bool unsetsyncadd = false, setsyncadd = false;
|
bool unsetsyncadd = false, setsyncadd = false;
|
||||||
bool unsetsyncdel = false, setsyncdel = false;
|
bool unsetsyncdel = false, setsyncdel = false;
|
||||||
bool printsyncadd = false, printsyncdel = false;
|
bool printsyncadd = false, printsyncdel = false;
|
||||||
|
|
||||||
options = DST_TYPE_PUBLIC|DST_TYPE_PRIVATE|DST_TYPE_STATE;
|
|
||||||
|
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
@@ -250,9 +180,109 @@ main(int argc, char **argv) {
|
|||||||
|
|
||||||
isc_stdtime_get(&now);
|
isc_stdtime_get(&now);
|
||||||
|
|
||||||
#define CMDLINE_FLAGS "A:D:d:E:fg:hI:i:K:k:L:P:p:R:r:S:suv:Vz:"
|
#define CMDLINE_FLAGS "A:D:E:fhI:i:K:L:P:p:R:S:uv:V"
|
||||||
while ((ch = isc_commandline_parse(argc, argv, CMDLINE_FLAGS)) != -1) {
|
while ((ch = isc_commandline_parse(argc, argv, CMDLINE_FLAGS)) != -1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
case 'E':
|
||||||
|
engine = isc_commandline_argument;
|
||||||
|
break;
|
||||||
|
case 'f':
|
||||||
|
force = true;
|
||||||
|
break;
|
||||||
|
case 'p':
|
||||||
|
p = isc_commandline_argument;
|
||||||
|
if (!strcasecmp(p, "all")) {
|
||||||
|
printcreate = true;
|
||||||
|
printpub = true;
|
||||||
|
printact = true;
|
||||||
|
printrev = true;
|
||||||
|
printinact = true;
|
||||||
|
printdel = true;
|
||||||
|
printsyncadd = true;
|
||||||
|
printsyncdel = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
do {
|
||||||
|
switch (*p++) {
|
||||||
|
case 'C':
|
||||||
|
printcreate = true;
|
||||||
|
break;
|
||||||
|
case 'P':
|
||||||
|
if (!strncmp(p, "sync", 4)) {
|
||||||
|
p += 4;
|
||||||
|
printsyncadd = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
printpub = true;
|
||||||
|
break;
|
||||||
|
case 'A':
|
||||||
|
printact = true;
|
||||||
|
break;
|
||||||
|
case 'R':
|
||||||
|
printrev = true;
|
||||||
|
break;
|
||||||
|
case 'I':
|
||||||
|
printinact = true;
|
||||||
|
break;
|
||||||
|
case 'D':
|
||||||
|
if (!strncmp(p, "sync", 4)) {
|
||||||
|
p += 4;
|
||||||
|
printsyncdel = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
printdel = true;
|
||||||
|
break;
|
||||||
|
case ' ':
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
usage();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} while (*p != '\0');
|
||||||
|
break;
|
||||||
|
case 'u':
|
||||||
|
epoch = true;
|
||||||
|
break;
|
||||||
|
case 'K':
|
||||||
|
/*
|
||||||
|
* We don't have to copy it here, but do it to
|
||||||
|
* simplify cleanup later
|
||||||
|
*/
|
||||||
|
directory = isc_mem_strdup(mctx,
|
||||||
|
isc_commandline_argument);
|
||||||
|
break;
|
||||||
|
case 'L':
|
||||||
|
ttl = strtottl(isc_commandline_argument);
|
||||||
|
setttl = true;
|
||||||
|
break;
|
||||||
|
case 'v':
|
||||||
|
verbose = strtol(isc_commandline_argument, &endp, 0);
|
||||||
|
if (*endp != '\0')
|
||||||
|
fatal("-v must be followed by a number");
|
||||||
|
break;
|
||||||
|
case 'P':
|
||||||
|
/* -Psync ? */
|
||||||
|
if (isoptarg("sync", argv, usage)) {
|
||||||
|
if (unsetsyncadd || setsyncadd)
|
||||||
|
fatal("-P sync specified more than "
|
||||||
|
"once");
|
||||||
|
|
||||||
|
changed = true;
|
||||||
|
syncadd = strtotime(isc_commandline_argument,
|
||||||
|
now, now, &setsyncadd);
|
||||||
|
unsetsyncadd = !setsyncadd;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
(void)isoptarg("dnskey", argv, usage);
|
||||||
|
if (setpub || unsetpub)
|
||||||
|
fatal("-P specified more than once");
|
||||||
|
|
||||||
|
changed = true;
|
||||||
|
pub = strtotime(isc_commandline_argument,
|
||||||
|
now, now, &setpub);
|
||||||
|
unsetpub = !setpub;
|
||||||
|
break;
|
||||||
case 'A':
|
case 'A':
|
||||||
if (setact || unsetact)
|
if (setact || unsetact)
|
||||||
fatal("-A specified more than once");
|
fatal("-A specified more than once");
|
||||||
@@ -262,6 +292,24 @@ main(int argc, char **argv) {
|
|||||||
now, now, &setact);
|
now, now, &setact);
|
||||||
unsetact = !setact;
|
unsetact = !setact;
|
||||||
break;
|
break;
|
||||||
|
case 'R':
|
||||||
|
if (setrev || unsetrev)
|
||||||
|
fatal("-R specified more than once");
|
||||||
|
|
||||||
|
changed = true;
|
||||||
|
rev = strtotime(isc_commandline_argument,
|
||||||
|
now, now, &setrev);
|
||||||
|
unsetrev = !setrev;
|
||||||
|
break;
|
||||||
|
case 'I':
|
||||||
|
if (setinact || unsetinact)
|
||||||
|
fatal("-I specified more than once");
|
||||||
|
|
||||||
|
changed = true;
|
||||||
|
inact = strtotime(isc_commandline_argument,
|
||||||
|
now, now, &setinact);
|
||||||
|
unsetinact = !setinact;
|
||||||
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
/* -Dsync ? */
|
/* -Dsync ? */
|
||||||
if (isoptarg("sync", argv, usage)) {
|
if (isoptarg("sync", argv, usage)) {
|
||||||
@@ -285,37 +333,11 @@ main(int argc, char **argv) {
|
|||||||
now, now, &setdel);
|
now, now, &setdel);
|
||||||
unsetdel = !setdel;
|
unsetdel = !setdel;
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'S':
|
||||||
if (setds) {
|
predecessor = isc_commandline_argument;
|
||||||
fatal("-d specified more than once");
|
|
||||||
}
|
|
||||||
|
|
||||||
ds = strtokeystate(isc_commandline_argument);
|
|
||||||
setds = true;
|
|
||||||
/* time */
|
|
||||||
(void)isoptarg(isc_commandline_argument, argv, usage);
|
|
||||||
dstime = strtotime(isc_commandline_argument,
|
|
||||||
now, now, &setdstime);
|
|
||||||
break;
|
break;
|
||||||
case 'E':
|
case 'i':
|
||||||
engine = isc_commandline_argument;
|
prepub = strtottl(isc_commandline_argument);
|
||||||
break;
|
|
||||||
case 'f':
|
|
||||||
force = true;
|
|
||||||
break;
|
|
||||||
case 'g':
|
|
||||||
if (setgoal) {
|
|
||||||
fatal("-g specified more than once");
|
|
||||||
}
|
|
||||||
|
|
||||||
goal = strtokeystate(isc_commandline_argument);
|
|
||||||
if (goal != DST_KEY_STATE_NA &&
|
|
||||||
goal != DST_KEY_STATE_HIDDEN &&
|
|
||||||
goal != DST_KEY_STATE_OMNIPRESENT) {
|
|
||||||
fatal("-g must be either none, hidden, or "
|
|
||||||
"omnipresent");
|
|
||||||
}
|
|
||||||
setgoal = true;
|
|
||||||
break;
|
break;
|
||||||
case '?':
|
case '?':
|
||||||
if (isc_commandline_option != '?')
|
if (isc_commandline_option != '?')
|
||||||
@@ -325,165 +347,10 @@ main(int argc, char **argv) {
|
|||||||
case 'h':
|
case 'h':
|
||||||
/* Does not return. */
|
/* Does not return. */
|
||||||
usage();
|
usage();
|
||||||
case 'I':
|
|
||||||
if (setinact || unsetinact)
|
|
||||||
fatal("-I specified more than once");
|
|
||||||
|
|
||||||
changed = true;
|
|
||||||
inact = strtotime(isc_commandline_argument,
|
|
||||||
now, now, &setinact);
|
|
||||||
unsetinact = !setinact;
|
|
||||||
break;
|
|
||||||
case 'i':
|
|
||||||
prepub = strtottl(isc_commandline_argument);
|
|
||||||
break;
|
|
||||||
case 'K':
|
|
||||||
/*
|
|
||||||
* We don't have to copy it here, but do it to
|
|
||||||
* simplify cleanup later
|
|
||||||
*/
|
|
||||||
directory = isc_mem_strdup(mctx,
|
|
||||||
isc_commandline_argument);
|
|
||||||
break;
|
|
||||||
case 'k':
|
|
||||||
if (setdnskey) {
|
|
||||||
fatal("-k specified more than once");
|
|
||||||
}
|
|
||||||
|
|
||||||
dnskey = strtokeystate(isc_commandline_argument);
|
|
||||||
setdnskey = true;
|
|
||||||
/* time */
|
|
||||||
(void)isoptarg(isc_commandline_argument, argv, usage);
|
|
||||||
dnskeytime = strtotime(isc_commandline_argument,
|
|
||||||
now, now, &setdnskeytime);
|
|
||||||
break;
|
|
||||||
case 'L':
|
|
||||||
ttl = strtottl(isc_commandline_argument);
|
|
||||||
setttl = true;
|
|
||||||
break;
|
|
||||||
case 'P':
|
|
||||||
/* -Psync ? */
|
|
||||||
if (isoptarg("sync", argv, usage)) {
|
|
||||||
if (unsetsyncadd || setsyncadd)
|
|
||||||
fatal("-P sync specified more than "
|
|
||||||
"once");
|
|
||||||
|
|
||||||
changed = true;
|
|
||||||
syncadd = strtotime(isc_commandline_argument,
|
|
||||||
now, now, &setsyncadd);
|
|
||||||
unsetsyncadd = !setsyncadd;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
(void)isoptarg("dnskey", argv, usage);
|
|
||||||
if (setpub || unsetpub)
|
|
||||||
fatal("-P specified more than once");
|
|
||||||
|
|
||||||
changed = true;
|
|
||||||
pub = strtotime(isc_commandline_argument,
|
|
||||||
now, now, &setpub);
|
|
||||||
unsetpub = !setpub;
|
|
||||||
break;
|
|
||||||
case 'p':
|
|
||||||
p = isc_commandline_argument;
|
|
||||||
if (!strcasecmp(p, "all")) {
|
|
||||||
printcreate = true;
|
|
||||||
printpub = true;
|
|
||||||
printact = true;
|
|
||||||
printrev = true;
|
|
||||||
printinact = true;
|
|
||||||
printdel = true;
|
|
||||||
printsyncadd = true;
|
|
||||||
printsyncdel = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
do {
|
|
||||||
switch (*p++) {
|
|
||||||
case 'A':
|
|
||||||
printact = true;
|
|
||||||
break;
|
|
||||||
case 'C':
|
|
||||||
printcreate = true;
|
|
||||||
break;
|
|
||||||
case 'D':
|
|
||||||
if (!strncmp(p, "sync", 4)) {
|
|
||||||
p += 4;
|
|
||||||
printsyncdel = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
printdel = true;
|
|
||||||
break;
|
|
||||||
case 'I':
|
|
||||||
printinact = true;
|
|
||||||
break;
|
|
||||||
case 'P':
|
|
||||||
if (!strncmp(p, "sync", 4)) {
|
|
||||||
p += 4;
|
|
||||||
printsyncadd = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
printpub = true;
|
|
||||||
break;
|
|
||||||
case 'R':
|
|
||||||
printrev = true;
|
|
||||||
break;
|
|
||||||
case ' ':
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
usage();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} while (*p != '\0');
|
|
||||||
break;
|
|
||||||
case 'R':
|
|
||||||
if (setrev || unsetrev)
|
|
||||||
fatal("-R specified more than once");
|
|
||||||
|
|
||||||
changed = true;
|
|
||||||
rev = strtotime(isc_commandline_argument,
|
|
||||||
now, now, &setrev);
|
|
||||||
unsetrev = !setrev;
|
|
||||||
break;
|
|
||||||
case 'r':
|
|
||||||
if (setkrrsig) {
|
|
||||||
fatal("-r specified more than once");
|
|
||||||
}
|
|
||||||
|
|
||||||
krrsig = strtokeystate(isc_commandline_argument);
|
|
||||||
setkrrsig = true;
|
|
||||||
/* time */
|
|
||||||
(void)isoptarg(isc_commandline_argument, argv, usage);
|
|
||||||
krrsigtime = strtotime(isc_commandline_argument,
|
|
||||||
now, now, &setkrrsigtime);
|
|
||||||
break;
|
|
||||||
case 'S':
|
|
||||||
predecessor = isc_commandline_argument;
|
|
||||||
break;
|
|
||||||
case 's':
|
|
||||||
write_state = true;
|
|
||||||
break;
|
|
||||||
case 'u':
|
|
||||||
epoch = true;
|
|
||||||
break;
|
|
||||||
case 'V':
|
case 'V':
|
||||||
/* Does not return. */
|
/* Does not return. */
|
||||||
version(program);
|
version(program);
|
||||||
case 'v':
|
|
||||||
verbose = strtol(isc_commandline_argument, &endp, 0);
|
|
||||||
if (*endp != '\0')
|
|
||||||
fatal("-v must be followed by a number");
|
|
||||||
break;
|
|
||||||
case 'z':
|
|
||||||
if (setzrrsig) {
|
|
||||||
fatal("-z specified more than once");
|
|
||||||
}
|
|
||||||
|
|
||||||
zrrsig = strtokeystate(isc_commandline_argument);
|
|
||||||
setzrrsig = true;
|
|
||||||
(void)isoptarg(isc_commandline_argument, argv, usage);
|
|
||||||
zrrsigtime = strtotime(isc_commandline_argument,
|
|
||||||
now, now, &setzrrsigtime);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "%s: unhandled option -%c\n",
|
fprintf(stderr, "%s: unhandled option -%c\n",
|
||||||
@@ -498,12 +365,6 @@ main(int argc, char **argv) {
|
|||||||
if (argc > isc_commandline_index + 1)
|
if (argc > isc_commandline_index + 1)
|
||||||
fatal("Extraneous arguments");
|
fatal("Extraneous arguments");
|
||||||
|
|
||||||
if ((setgoal || setds || setdnskey || setkrrsig || setzrrsig) &&
|
|
||||||
!write_state)
|
|
||||||
{
|
|
||||||
fatal("Options -g, -d, -k, -r and -z require -s to be set");
|
|
||||||
}
|
|
||||||
|
|
||||||
result = dst_lib_init(mctx, engine);
|
result = dst_lib_init(mctx, engine);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
fatal("Could not initialize dst: %s",
|
fatal("Could not initialize dst: %s",
|
||||||
@@ -520,7 +381,9 @@ main(int argc, char **argv) {
|
|||||||
if (setact || unsetact)
|
if (setact || unsetact)
|
||||||
fatal("-S and -A cannot be used together");
|
fatal("-S and -A cannot be used together");
|
||||||
|
|
||||||
result = dst_key_fromnamedfile(predecessor, directory, options,
|
result = dst_key_fromnamedfile(predecessor, directory,
|
||||||
|
DST_TYPE_PUBLIC |
|
||||||
|
DST_TYPE_PRIVATE,
|
||||||
mctx, &prevkey);
|
mctx, &prevkey);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
fatal("Invalid keyfile %s: %s",
|
fatal("Invalid keyfile %s: %s",
|
||||||
@@ -612,8 +475,9 @@ main(int argc, char **argv) {
|
|||||||
isc_result_totext(result));
|
isc_result_totext(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
result = dst_key_fromnamedfile(filename, directory, options, mctx,
|
result = dst_key_fromnamedfile(filename, directory,
|
||||||
&key);
|
DST_TYPE_PUBLIC | DST_TYPE_PRIVATE,
|
||||||
|
mctx, &key);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
fatal("Invalid keyfile %s: %s",
|
fatal("Invalid keyfile %s: %s",
|
||||||
filename, isc_result_totext(result));
|
filename, isc_result_totext(result));
|
||||||
@@ -714,11 +578,6 @@ main(int argc, char **argv) {
|
|||||||
if (setttl)
|
if (setttl)
|
||||||
dst_key_setttl(key, ttl);
|
dst_key_setttl(key, ttl);
|
||||||
|
|
||||||
if (predecessor != NULL && prevkey != NULL) {
|
|
||||||
dst_key_setnum(prevkey, DST_NUM_SUCCESSOR, dst_key_id(key));
|
|
||||||
dst_key_setnum(key, DST_NUM_PREDECESSOR, dst_key_id(prevkey));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* No metadata changes were made but we're forcing an upgrade
|
* No metadata changes were made but we're forcing an upgrade
|
||||||
* to the new format anyway: use "-P now -A now" as the default
|
* to the new format anyway: use "-P now -A now" as the default
|
||||||
@@ -729,63 +588,6 @@ main(int argc, char **argv) {
|
|||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Make sure the key state goals are written.
|
|
||||||
*/
|
|
||||||
if (write_state) {
|
|
||||||
if (setgoal) {
|
|
||||||
if (goal == DST_KEY_STATE_NA) {
|
|
||||||
dst_key_unsetstate(key, DST_KEY_GOAL);
|
|
||||||
} else {
|
|
||||||
dst_key_setstate(key, DST_KEY_GOAL, goal);
|
|
||||||
}
|
|
||||||
changed = true;
|
|
||||||
}
|
|
||||||
if (setds) {
|
|
||||||
if (ds == DST_KEY_STATE_NA) {
|
|
||||||
dst_key_unsetstate(key, DST_KEY_DS);
|
|
||||||
dst_key_unsettime(key, DST_TIME_DS);
|
|
||||||
} else {
|
|
||||||
dst_key_setstate(key, DST_KEY_DS, ds);
|
|
||||||
dst_key_settime(key, DST_TIME_DS, dstime);
|
|
||||||
}
|
|
||||||
changed = true;
|
|
||||||
}
|
|
||||||
if (setdnskey) {
|
|
||||||
if (dnskey == DST_KEY_STATE_NA) {
|
|
||||||
dst_key_unsetstate(key, DST_KEY_DNSKEY);
|
|
||||||
dst_key_unsettime(key, DST_TIME_DNSKEY);
|
|
||||||
} else {
|
|
||||||
dst_key_setstate(key, DST_KEY_DNSKEY, dnskey);
|
|
||||||
dst_key_settime(key, DST_TIME_DNSKEY,
|
|
||||||
dnskeytime);
|
|
||||||
}
|
|
||||||
changed = true;
|
|
||||||
}
|
|
||||||
if (setkrrsig) {
|
|
||||||
if (krrsig == DST_KEY_STATE_NA) {
|
|
||||||
dst_key_unsetstate(key, DST_KEY_KRRSIG);
|
|
||||||
dst_key_unsettime(key, DST_TIME_KRRSIG);
|
|
||||||
} else {
|
|
||||||
dst_key_setstate(key, DST_KEY_KRRSIG, krrsig);
|
|
||||||
dst_key_settime(key, DST_TIME_KRRSIG,
|
|
||||||
krrsigtime);
|
|
||||||
}
|
|
||||||
changed = true;
|
|
||||||
}
|
|
||||||
if (setzrrsig) {
|
|
||||||
if (zrrsig == DST_KEY_STATE_NA) {
|
|
||||||
dst_key_unsetstate(key, DST_KEY_ZRRSIG);
|
|
||||||
dst_key_unsettime(key, DST_TIME_ZRRSIG);
|
|
||||||
} else {
|
|
||||||
dst_key_setstate(key, DST_KEY_ZRRSIG, zrrsig);
|
|
||||||
dst_key_settime(key, DST_TIME_ZRRSIG,
|
|
||||||
zrrsigtime);
|
|
||||||
}
|
|
||||||
changed = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!changed && setttl)
|
if (!changed && setttl)
|
||||||
changed = true;
|
changed = true;
|
||||||
|
|
||||||
@@ -819,10 +621,32 @@ main(int argc, char **argv) {
|
|||||||
epoch, stdout);
|
epoch, stdout);
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
writekey(key, directory, write_state);
|
isc_buffer_init(&buf, newname, sizeof(newname));
|
||||||
if (predecessor != NULL && prevkey != NULL) {
|
result = dst_key_buildfilename(key, DST_TYPE_PUBLIC, directory,
|
||||||
writekey(prevkey, directory, write_state);
|
&buf);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
fatal("Failed to build public key filename: %s",
|
||||||
|
isc_result_totext(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result = dst_key_tofile(key, DST_TYPE_PUBLIC|DST_TYPE_PRIVATE,
|
||||||
|
directory);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
dst_key_format(key, keystr, sizeof(keystr));
|
||||||
|
fatal("Failed to write key %s: %s", keystr,
|
||||||
|
isc_result_totext(result));
|
||||||
|
}
|
||||||
|
|
||||||
|
printf("%s\n", newname);
|
||||||
|
|
||||||
|
isc_buffer_clear(&buf);
|
||||||
|
result = dst_key_buildfilename(key, DST_TYPE_PRIVATE, directory,
|
||||||
|
&buf);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
fatal("Failed to build private key filename: %s",
|
||||||
|
isc_result_totext(result));
|
||||||
|
}
|
||||||
|
printf("%s\n", newname);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prevkey != NULL)
|
if (prevkey != NULL)
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
@@ -65,12 +64,6 @@
|
|||||||
<arg choice="opt" rep="norepeat"><option>-V</option></arg>
|
<arg choice="opt" rep="norepeat"><option>-V</option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-v <replaceable class="parameter">level</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-v <replaceable class="parameter">level</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-E <replaceable class="parameter">engine</replaceable></option></arg>
|
<arg choice="opt" rep="norepeat"><option>-E <replaceable class="parameter">engine</replaceable></option></arg>
|
||||||
<arg choice="opt" rep="norepeat"><option>-s</option></arg>
|
|
||||||
<arg choice="opt" rep="norepeat"><option>-g <replaceable class="parameter">state</replaceable></option></arg>
|
|
||||||
<arg choice="opt" rep="norepeat"><option>-d <replaceable class="parameter">state</replaceable> <replaceable class="parameter">date/offset</replaceable></option></arg>
|
|
||||||
<arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">state</replaceable> <replaceable class="parameter">date/offset</replaceable></option></arg>
|
|
||||||
<arg choice="opt" rep="norepeat"><option>-r <replaceable class="parameter">state</replaceable> <replaceable class="parameter">date/offset</replaceable></option></arg>
|
|
||||||
<arg choice="opt" rep="norepeat"><option>-z <replaceable class="parameter">state</replaceable> <replaceable class="parameter">date/offset</replaceable></option></arg>
|
|
||||||
<arg choice="req" rep="norepeat">keyfile</arg>
|
<arg choice="req" rep="norepeat">keyfile</arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
@@ -95,30 +88,11 @@
|
|||||||
When key metadata fields are changed, both files of a key
|
When key metadata fields are changed, both files of a key
|
||||||
pair (<filename>Knnnn.+aaa+iiiii.key</filename> and
|
pair (<filename>Knnnn.+aaa+iiiii.key</filename> and
|
||||||
<filename>Knnnn.+aaa+iiiii.private</filename>) are regenerated.
|
<filename>Knnnn.+aaa+iiiii.private</filename>) are regenerated.
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
Metadata fields are stored in the private file. A human-readable
|
Metadata fields are stored in the private file. A human-readable
|
||||||
description of the metadata is also placed in comments in the key
|
description of the metadata is also placed in comments in the key
|
||||||
file. The private file's permissions are always set to be
|
file. The private file's permissions are always set to be
|
||||||
inaccessible to anyone other than the owner (mode 0600).
|
inaccessible to anyone other than the owner (mode 0600).
|
||||||
</para>
|
</para>
|
||||||
<para>
|
|
||||||
When working with state files, it is possible to update the timing
|
|
||||||
metadata in those files as well with <option>-s</option>. If this
|
|
||||||
option is used you can also update key states with <option>-d</option>
|
|
||||||
(DS), <option>-k</option> (DNSKEY), <option>-r</option> (RRSIG of KSK),
|
|
||||||
or <option>-z</option> (RRSIG of ZSK). Allowed states are HIDDEN,
|
|
||||||
RUMOURED, OMNIPRESENT, and UNRETENTIVE.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
You can also set the goal state of the key with <option>-g</option>.
|
|
||||||
This should be either HIDDEN or OMNIPRESENT (representing whether the
|
|
||||||
key should be removed from the zone, or published).
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
It is NOT RECOMMENDED to manipulate state files manually except for
|
|
||||||
testing purposes.
|
|
||||||
</para>
|
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection><info><title>OPTIONS</title></info>
|
<refsection><info><title>OPTIONS</title></info>
|
||||||
@@ -345,74 +319,6 @@
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection><info><title>KEY STATE OPTIONS</title></info>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
Known key states are HIDDEN, RUMOURED, OMNIPRESENT and UNRETENTIVE.
|
|
||||||
These should not be set manually except for testing purposes.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<variablelist>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-s</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
When setting key timing data, also update the state file.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-g</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Set the goal state for this key. Must be HIDDEN or OMNIPRESENT.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-d</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Set the DS state for this key, and when it was last changed.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-k</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Set the DNSKEY state for this key, and when it was last changed.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-r</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Set the RRSIG (KSK) state for this key, and when it was last
|
|
||||||
changed.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>-z</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Set the RRSIG (ZSK) state for this key, and when it was last
|
|
||||||
changed.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
</variablelist>
|
|
||||||
</refsection>
|
|
||||||
|
|
||||||
<refsection><info><title>PRINTING OPTIONS</title></info>
|
<refsection><info><title>PRINTING OPTIONS</title></info>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
|||||||
@@ -49,12 +49,6 @@
|
|||||||
[<code class="option">-V</code>]
|
[<code class="option">-V</code>]
|
||||||
[<code class="option">-v <em class="replaceable"><code>level</code></em></code>]
|
[<code class="option">-v <em class="replaceable"><code>level</code></em></code>]
|
||||||
[<code class="option">-E <em class="replaceable"><code>engine</code></em></code>]
|
[<code class="option">-E <em class="replaceable"><code>engine</code></em></code>]
|
||||||
[<code class="option">-s</code>]
|
|
||||||
[<code class="option">-g <em class="replaceable"><code>state</code></em></code>]
|
|
||||||
[<code class="option">-d <em class="replaceable"><code>state</code></em> <em class="replaceable"><code>date/offset</code></em></code>]
|
|
||||||
[<code class="option">-k <em class="replaceable"><code>state</code></em> <em class="replaceable"><code>date/offset</code></em></code>]
|
|
||||||
[<code class="option">-r <em class="replaceable"><code>state</code></em> <em class="replaceable"><code>date/offset</code></em></code>]
|
|
||||||
[<code class="option">-z <em class="replaceable"><code>state</code></em> <em class="replaceable"><code>date/offset</code></em></code>]
|
|
||||||
{keyfile}
|
{keyfile}
|
||||||
</p></div>
|
</p></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,30 +74,11 @@
|
|||||||
When key metadata fields are changed, both files of a key
|
When key metadata fields are changed, both files of a key
|
||||||
pair (<code class="filename">Knnnn.+aaa+iiiii.key</code> and
|
pair (<code class="filename">Knnnn.+aaa+iiiii.key</code> and
|
||||||
<code class="filename">Knnnn.+aaa+iiiii.private</code>) are regenerated.
|
<code class="filename">Knnnn.+aaa+iiiii.private</code>) are regenerated.
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Metadata fields are stored in the private file. A human-readable
|
Metadata fields are stored in the private file. A human-readable
|
||||||
description of the metadata is also placed in comments in the key
|
description of the metadata is also placed in comments in the key
|
||||||
file. The private file's permissions are always set to be
|
file. The private file's permissions are always set to be
|
||||||
inaccessible to anyone other than the owner (mode 0600).
|
inaccessible to anyone other than the owner (mode 0600).
|
||||||
</p>
|
</p>
|
||||||
<p>
|
|
||||||
When working with state files, it is possible to update the timing
|
|
||||||
metadata in those files as well with <code class="option">-s</code>. If this
|
|
||||||
option is used you can also update key states with <code class="option">-d</code>
|
|
||||||
(DS), <code class="option">-k</code> (DNSKEY), <code class="option">-r</code> (RRSIG of KSK),
|
|
||||||
or <code class="option">-z</code> (RRSIG of ZSK). Allowed states are HIDDEN,
|
|
||||||
RUMOURED, OMNIPRESENT, and UNRETENTIVE.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
You can also set the goal state of the key with <code class="option">-g</code>.
|
|
||||||
This should be either HIDDEN or OMNIPRESENT (representing whether the
|
|
||||||
key should be removed from the zone, or published).
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
It is NOT RECOMMENDED to manipulate state files manually except for
|
|
||||||
testing purposes.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
@@ -287,57 +262,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.10"></a><h2>KEY STATE OPTIONS</h2>
|
<a name="id-1.10"></a><h2>PRINTING OPTIONS</h2>
|
||||||
|
|
||||||
<p>
|
|
||||||
Known key states are HIDDEN, RUMOURED, OMNIPRESENT and UNRETENTIVE.
|
|
||||||
These should not be set manually except for testing purposes.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="variablelist"><dl class="variablelist">
|
|
||||||
<dt><span class="term">-s</span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
When setting key timing data, also update the state file.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
<dt><span class="term">-g</span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
Set the goal state for this key. Must be HIDDEN or OMNIPRESENT.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
<dt><span class="term">-d</span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
Set the DS state for this key, and when it was last changed.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
<dt><span class="term">-k</span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
Set the DNSKEY state for this key, and when it was last changed.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
<dt><span class="term">-r</span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
Set the RRSIG (KSK) state for this key, and when it was last
|
|
||||||
changed.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
<dt><span class="term">-z</span></dt>
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
Set the RRSIG (ZSK) state for this key, and when it was last
|
|
||||||
changed.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
</dl></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="refsection">
|
|
||||||
<a name="id-1.11"></a><h2>PRINTING OPTIONS</h2>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<span class="command"><strong>dnssec-settime</strong></span> can also be used to print the
|
<span class="command"><strong>dnssec-settime</strong></span> can also be used to print the
|
||||||
@@ -373,7 +298,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.12"></a><h2>SEE ALSO</h2>
|
<a name="id-1.11"></a><h2>SEE ALSO</h2>
|
||||||
|
|
||||||
<p><span class="citerefentry">
|
<p><span class="citerefentry">
|
||||||
<span class="refentrytitle">dnssec-keygen</span>(8)
|
<span class="refentrytitle">dnssec-keygen</span>(8)
|
||||||
|
|||||||
@@ -246,8 +246,7 @@ dumpnode(dns_name_t *name, dns_dbnode_t *node) {
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
result = dns_master_rdatasettotext(name, &rds,
|
result = dns_master_rdatasettotext(name, &rds,
|
||||||
masterstyle, NULL,
|
masterstyle, buffer);
|
||||||
buffer);
|
|
||||||
if (result != ISC_R_NOSPACE)
|
if (result != ISC_R_NOSPACE)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -788,10 +787,7 @@ hashlist_comp(const void *a, const void *b) {
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
hashlist_sort(hashlist_t *l) {
|
hashlist_sort(hashlist_t *l) {
|
||||||
INSIST(l->hashbuf != NULL || l->length == 0);
|
qsort(l->hashbuf, l->entries, l->length, hashlist_comp);
|
||||||
if (l->length > 0) {
|
|
||||||
qsort(l->hashbuf, l->entries, l->length, hashlist_comp);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
@@ -2718,7 +2714,7 @@ build_final_keylist(void) {
|
|||||||
* Update keylist with information from from the key repository.
|
* Update keylist with information from from the key repository.
|
||||||
*/
|
*/
|
||||||
dns_dnssec_updatekeys(&keylist, &matchkeys, NULL, gorigin, keyttl,
|
dns_dnssec_updatekeys(&keylist, &matchkeys, NULL, gorigin, keyttl,
|
||||||
&diff, mctx, report);
|
&diff, ignore_kskflag, mctx, report);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Update keylist with sync records.
|
* Update keylist with sync records.
|
||||||
@@ -3798,7 +3794,7 @@ main(int argc, char *argv[]) {
|
|||||||
print_time(outfp);
|
print_time(outfp);
|
||||||
print_version(outfp);
|
print_version(outfp);
|
||||||
|
|
||||||
result = isc_taskmgr_create(mctx, ntasks, 0, NULL, &taskmgr);
|
result = isc_taskmgr_create(mctx, ntasks, 0, &taskmgr);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
fatal("failed to create task manager: %s",
|
fatal("failed to create task manager: %s",
|
||||||
isc_result_totext(result));
|
isc_result_totext(result));
|
||||||
@@ -3922,6 +3918,7 @@ main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
cleanup_logging(&log);
|
cleanup_logging(&log);
|
||||||
dst_lib_destroy();
|
dst_lib_destroy();
|
||||||
|
dns_name_destroy();
|
||||||
if (verbose > 10)
|
if (verbose > 10)
|
||||||
isc_mem_stats(mctx, stdout);
|
isc_mem_stats(mctx, stdout);
|
||||||
isc_mem_destroy(&mctx);
|
isc_mem_destroy(&mctx);
|
||||||
|
|||||||
@@ -51,7 +51,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
cleanup_logging(&log);
|
cleanup_logging(&log);
|
||||||
dst_lib_destroy();
|
dst_lib_destroy();
|
||||||
|
dns_name_destroy();
|
||||||
if (verbose > 10)
|
if (verbose > 10)
|
||||||
isc_mem_stats(mctx, stdout);
|
isc_mem_stats(mctx, stdout);
|
||||||
isc_mem_destroy(&mctx);
|
isc_mem_destroy(&mctx);
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -57,11 +57,6 @@
|
|||||||
|
|
||||||
#include "dnssectool.h"
|
#include "dnssectool.h"
|
||||||
|
|
||||||
#define KEYSTATES_NVALUES 4
|
|
||||||
static const char *keystates[KEYSTATES_NVALUES] = {
|
|
||||||
"hidden", "rumoured", "omnipresent", "unretentive",
|
|
||||||
};
|
|
||||||
|
|
||||||
int verbose = 0;
|
int verbose = 0;
|
||||||
bool quiet = false;
|
bool quiet = false;
|
||||||
uint8_t dtype[8];
|
uint8_t dtype[8];
|
||||||
@@ -249,21 +244,6 @@ strtottl(const char *str) {
|
|||||||
return (ttl);
|
return (ttl);
|
||||||
}
|
}
|
||||||
|
|
||||||
dst_key_state_t
|
|
||||||
strtokeystate(const char *str) {
|
|
||||||
if (isnone(str)) {
|
|
||||||
return (DST_KEY_STATE_NA);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < KEYSTATES_NVALUES; i++) {
|
|
||||||
if (keystates[i] != NULL &&
|
|
||||||
strcasecmp(str, keystates[i]) == 0) {
|
|
||||||
return (dst_key_state_t) i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fatal("unknown key state");
|
|
||||||
}
|
|
||||||
|
|
||||||
isc_stdtime_t
|
isc_stdtime_t
|
||||||
strtotime(const char *str, int64_t now, int64_t base,
|
strtotime(const char *str, int64_t now, int64_t base,
|
||||||
bool *setp)
|
bool *setp)
|
||||||
|
|||||||
@@ -17,11 +17,14 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include <isc/log.h>
|
#include <isc/log.h>
|
||||||
#include <isc/platform.h>
|
|
||||||
#include <isc/stdtime.h>
|
#include <isc/stdtime.h>
|
||||||
#include <dns/rdatastruct.h>
|
#include <dns/rdatastruct.h>
|
||||||
#include <dst/dst.h>
|
#include <dst/dst.h>
|
||||||
|
|
||||||
|
#ifndef PATH_MAX
|
||||||
|
#define PATH_MAX 1024 /* WIN32, and others don't define this. */
|
||||||
|
#endif
|
||||||
|
|
||||||
/*! verbosity: set by -v and -q option in each program, defined in dnssectool.c */
|
/*! verbosity: set by -v and -q option in each program, defined in dnssectool.c */
|
||||||
extern int verbose;
|
extern int verbose;
|
||||||
extern bool quiet;
|
extern bool quiet;
|
||||||
@@ -68,8 +71,6 @@ cleanup_logging(isc_log_t **logp);
|
|||||||
|
|
||||||
dns_ttl_t strtottl(const char *str);
|
dns_ttl_t strtottl(const char *str);
|
||||||
|
|
||||||
dst_key_state_t strtokeystate(const char *str);
|
|
||||||
|
|
||||||
isc_stdtime_t
|
isc_stdtime_t
|
||||||
strtotime(const char *str, int64_t now, int64_t base,
|
strtotime(const char *str, int64_t now, int64_t base,
|
||||||
bool *setp);
|
bool *setp);
|
||||||
|
|||||||
@@ -66,15 +66,15 @@
|
|||||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
<BrowseInformation>true</BrowseInformation>
|
<BrowseInformation>true</BrowseInformation>
|
||||||
<ForcedIncludeFiles>..\..\..\config.h</ForcedIncludeFiles>
|
<ForcedIncludeFiles>..\..\..\config.h</ForcedIncludeFiles>
|
||||||
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\isccfg\win32;..\..\..\lib\isccfg\include;..\..\..\lib\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<CompileAs>CompileAsC</CompileAs>
|
<CompileAs>CompileAsC</CompileAs>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
<OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||||
<AdditionalDependencies>@OPENSSL_LIB@dnssectool.lib;libisc.lib;libisccfg.lib;libdns.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>@OPENSSL_LIB@dnssectool.lib;libisc.lib;libdns.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<AdditionalLibraryDirectories>$(Configuration);..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>$(Configuration);..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
<ForcedIncludeFiles>..\..\..\config.h</ForcedIncludeFiles>
|
<ForcedIncludeFiles>..\..\..\config.h</ForcedIncludeFiles>
|
||||||
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\isccfg\win32;..\..\..\lib\isccfg\include;..\..\..\lib\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\lib\isc\win32;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;..\..\..\lib\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<CompileAs>CompileAsC</CompileAs>
|
<CompileAs>CompileAsC</CompileAs>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
@@ -104,8 +104,8 @@
|
|||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
<OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||||
<AdditionalDependencies>@OPENSSL_LIB@dnssectool.lib;libisc.lib;libisccfg.lib;libdns.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>@OPENSSL_LIB@dnssectool.lib;libisc.lib;libdns.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<AdditionalLibraryDirectories>$(Configuration);..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>$(Configuration);..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
+7
-5
@@ -58,7 +58,6 @@ options {\n\
|
|||||||
"\
|
"\
|
||||||
# deallocate-on-exit <obsolete>;\n\
|
# deallocate-on-exit <obsolete>;\n\
|
||||||
# directory <none>\n\
|
# directory <none>\n\
|
||||||
dnssec-policy \"none\";\n\
|
|
||||||
dump-file \"named_dump.db\";\n\
|
dump-file \"named_dump.db\";\n\
|
||||||
edns-udp-size 4096;\n\
|
edns-udp-size 4096;\n\
|
||||||
# fake-iquery <obsolete>;\n"
|
# fake-iquery <obsolete>;\n"
|
||||||
@@ -66,7 +65,7 @@ options {\n\
|
|||||||
" files unlimited;\n"
|
" files unlimited;\n"
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_GEOIP2) && !defined(WIN32)
|
#if defined(HAVE_GEOIP2) && !defined(WIN32)
|
||||||
" geoip-directory \"" MAXMINDDB_PREFIX "/share/GeoIP\";\n"
|
" geoip-directory \"" MAXMINDDB_PREFIX "/share/GeoIP2\";\n"
|
||||||
#elif defined(HAVE_GEOIP2)
|
#elif defined(HAVE_GEOIP2)
|
||||||
" geoip-directory \".\";\n"
|
" geoip-directory \".\";\n"
|
||||||
#endif
|
#endif
|
||||||
@@ -194,7 +193,7 @@ options {\n\
|
|||||||
# sortlist <none>\n\
|
# sortlist <none>\n\
|
||||||
stale-answer-enable false;\n\
|
stale-answer-enable false;\n\
|
||||||
stale-answer-ttl 1; /* 1 second */\n\
|
stale-answer-ttl 1; /* 1 second */\n\
|
||||||
synth-from-dnssec no;\n\
|
synth-from-dnssec yes;\n\
|
||||||
# topology <none>\n\
|
# topology <none>\n\
|
||||||
transfer-format many-answers;\n\
|
transfer-format many-answers;\n\
|
||||||
v6-bias 50;\n\
|
v6-bias 50;\n\
|
||||||
@@ -296,7 +295,7 @@ view \"_bind\" chaos {\n\
|
|||||||
# BEGIN DNSSEC KEYS\n"
|
# BEGIN DNSSEC KEYS\n"
|
||||||
|
|
||||||
/* Imported from bind.keys.h: */
|
/* Imported from bind.keys.h: */
|
||||||
TRUST_ANCHORS
|
DNSSEC_KEYS
|
||||||
|
|
||||||
"# END MANAGED KEYS\n\
|
"# END MANAGED KEYS\n\
|
||||||
\n\
|
\n\
|
||||||
@@ -800,7 +799,10 @@ named_config_getipandkeylist(const cfg_obj_t *config, const cfg_obj_t *list,
|
|||||||
dns_rootname, 0, NULL);
|
dns_rootname, 0, NULL);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
dns_name_dup(dns_fixedname_name(&fname), mctx, keys[i - 1]);
|
result = dns_name_dup(dns_fixedname_name(&fname), mctx,
|
||||||
|
keys[i - 1]);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (pushed != 0) {
|
if (pushed != 0) {
|
||||||
pushed--;
|
pushed--;
|
||||||
|
|||||||
+4
-8
@@ -113,7 +113,8 @@ named_geoip_load(char *dir) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void named_geoip_unload(void) {
|
void
|
||||||
|
named_geoip_shutdown(void) {
|
||||||
#ifdef HAVE_GEOIP2
|
#ifdef HAVE_GEOIP2
|
||||||
if (named_g_geoip->country != NULL) {
|
if (named_g_geoip->country != NULL) {
|
||||||
MMDB_close(named_g_geoip->country);
|
MMDB_close(named_g_geoip->country);
|
||||||
@@ -135,12 +136,7 @@ void named_geoip_unload(void) {
|
|||||||
MMDB_close(named_g_geoip->domain);
|
MMDB_close(named_g_geoip->domain);
|
||||||
named_g_geoip->domain = NULL;
|
named_g_geoip->domain = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
named_geoip_shutdown(void) {
|
|
||||||
#ifdef HAVE_GEOIP2
|
|
||||||
named_geoip_unload();
|
|
||||||
#endif /* HAVE_GEOIP2 */
|
#endif /* HAVE_GEOIP2 */
|
||||||
|
|
||||||
|
dns_geoip_shutdown();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,8 +19,5 @@ named_geoip_init(void);
|
|||||||
void
|
void
|
||||||
named_geoip_load(char *dir);
|
named_geoip_load(char *dir);
|
||||||
|
|
||||||
void
|
|
||||||
named_geoip_unload(void);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
named_geoip_shutdown(void);
|
named_geoip_shutdown(void);
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
#include <isc/rwlock.h>
|
#include <isc/rwlock.h>
|
||||||
#include <isc/log.h>
|
#include <isc/log.h>
|
||||||
#include <isc/net.h>
|
#include <isc/net.h>
|
||||||
#include <isc/netmgr.h>
|
|
||||||
|
|
||||||
#include <isccfg/aclconf.h>
|
#include <isccfg/aclconf.h>
|
||||||
#include <isccfg/cfg.h>
|
#include <isccfg/cfg.h>
|
||||||
@@ -63,7 +62,6 @@ EXTERN bool named_g_run_done INIT(false);
|
|||||||
*/
|
*/
|
||||||
EXTERN isc_timermgr_t * named_g_timermgr INIT(NULL);
|
EXTERN isc_timermgr_t * named_g_timermgr INIT(NULL);
|
||||||
EXTERN isc_socketmgr_t * named_g_socketmgr INIT(NULL);
|
EXTERN isc_socketmgr_t * named_g_socketmgr INIT(NULL);
|
||||||
EXTERN isc_nm_t * named_g_nm INIT(NULL);
|
|
||||||
EXTERN cfg_parser_t * named_g_parser INIT(NULL);
|
EXTERN cfg_parser_t * named_g_parser INIT(NULL);
|
||||||
EXTERN cfg_parser_t * named_g_addparser INIT(NULL);
|
EXTERN cfg_parser_t * named_g_addparser INIT(NULL);
|
||||||
EXTERN const char * named_g_version INIT(VERSION);
|
EXTERN const char * named_g_version INIT(VERSION);
|
||||||
@@ -137,6 +135,14 @@ EXTERN const char * named_g_defaultpidfile INIT(NAMED_LOCALSTATEDIR
|
|||||||
"/run/named.pid");
|
"/run/named.pid");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_DNSTAP
|
||||||
|
EXTERN const char * named_g_defaultdnstap
|
||||||
|
INIT(NAMED_LOCALSTATEDIR "/run/named/"
|
||||||
|
"dnstap.sock");
|
||||||
|
#else
|
||||||
|
EXTERN const char * named_g_defaultdnstap INIT(NULL);
|
||||||
|
#endif /* HAVE_DNSTAP */
|
||||||
|
|
||||||
EXTERN const char * named_g_username INIT(NULL);
|
EXTERN const char * named_g_username INIT(NULL);
|
||||||
|
|
||||||
EXTERN const char * named_g_engine INIT(NULL);
|
EXTERN const char * named_g_engine INIT(NULL);
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ struct named_server {
|
|||||||
dns_loadmgr_t * loadmgr;
|
dns_loadmgr_t * loadmgr;
|
||||||
dns_zonemgr_t * zonemgr;
|
dns_zonemgr_t * zonemgr;
|
||||||
dns_viewlist_t viewlist;
|
dns_viewlist_t viewlist;
|
||||||
dns_kasplist_t kasplist;
|
|
||||||
ns_interfacemgr_t * interfacemgr;
|
ns_interfacemgr_t * interfacemgr;
|
||||||
dns_db_t * in_roothints;
|
dns_db_t * in_roothints;
|
||||||
|
|
||||||
|
|||||||
@@ -27,18 +27,19 @@ ISC_LANG_BEGINDECLS
|
|||||||
isc_result_t
|
isc_result_t
|
||||||
named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||||
const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac,
|
const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac,
|
||||||
dns_kasplist_t* kasplist, dns_zone_t *zone,
|
dns_zone_t *zone, dns_zone_t *raw);
|
||||||
dns_zone_t *raw);
|
|
||||||
/*%<
|
/*%<
|
||||||
* Configure or reconfigure a zone according to the named.conf
|
* Configure or reconfigure a zone according to the named.conf
|
||||||
* data.
|
* data in 'cctx' and 'czone'.
|
||||||
*
|
*
|
||||||
* The zone origin is not configured, it is assumed to have been set
|
* The zone origin is not configured, it is assumed to have been set
|
||||||
* at zone creation time.
|
* at zone creation time.
|
||||||
*
|
*
|
||||||
* Require:
|
* Require:
|
||||||
|
* \li 'lctx' to be initialized or NULL.
|
||||||
|
* \li 'cctx' to be initialized or NULL.
|
||||||
* \li 'ac' to point to an initialized cfg_aclconfctx_t.
|
* \li 'ac' to point to an initialized cfg_aclconfctx_t.
|
||||||
* \li 'kasplist' to be initialized.
|
* \li 'czone' to be initialized.
|
||||||
* \li 'zone' to be initialized.
|
* \li 'zone' to be initialized.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
+15
-70
@@ -24,7 +24,6 @@
|
|||||||
#include <isc/file.h>
|
#include <isc/file.h>
|
||||||
#include <isc/hash.h>
|
#include <isc/hash.h>
|
||||||
#include <isc/httpd.h>
|
#include <isc/httpd.h>
|
||||||
#include <isc/netmgr.h>
|
|
||||||
#include <isc/os.h>
|
#include <isc/os.h>
|
||||||
#include <isc/platform.h>
|
#include <isc/platform.h>
|
||||||
#include <isc/print.h>
|
#include <isc/print.h>
|
||||||
@@ -59,10 +58,6 @@
|
|||||||
#include <json_c_version.h>
|
#include <json_c_version.h>
|
||||||
#endif /* HAVE_JSON_C */
|
#endif /* HAVE_JSON_C */
|
||||||
|
|
||||||
#ifdef HAVE_GEOIP2
|
|
||||||
#include <maxminddb.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Defining NAMED_MAIN provides storage declarations (rather than extern)
|
* Defining NAMED_MAIN provides storage declarations (rather than extern)
|
||||||
* for variables in named/globals.h.
|
* for variables in named/globals.h.
|
||||||
@@ -72,7 +67,6 @@
|
|||||||
#include <ns/interfacemgr.h>
|
#include <ns/interfacemgr.h>
|
||||||
|
|
||||||
#include <named/builtin.h>
|
#include <named/builtin.h>
|
||||||
#include <named/config.h>
|
|
||||||
#include <named/control.h>
|
#include <named/control.h>
|
||||||
#include <named/fuzz.h>
|
#include <named/fuzz.h>
|
||||||
#include <named/globals.h> /* Explicit, though named/log.h includes it. */
|
#include <named/globals.h> /* Explicit, though named/log.h includes it. */
|
||||||
@@ -120,7 +114,7 @@ LIBDNS_EXTERNAL_DATA extern unsigned int dns_zone_mkey_month;
|
|||||||
static bool want_stats = false;
|
static bool want_stats = false;
|
||||||
static char program_name[NAME_MAX] = "named";
|
static char program_name[NAME_MAX] = "named";
|
||||||
static char absolute_conffile[PATH_MAX];
|
static char absolute_conffile[PATH_MAX];
|
||||||
static char saved_command_line[4096] = { 0 };
|
static char saved_command_line[8192] = { 0 };
|
||||||
static char ellipsis[5] = { 0 };
|
static char ellipsis[5] = { 0 };
|
||||||
static char version[512];
|
static char version[512];
|
||||||
static unsigned int maxsocks = 0;
|
static unsigned int maxsocks = 0;
|
||||||
@@ -129,6 +123,7 @@ static int maxudp = 0;
|
|||||||
/*
|
/*
|
||||||
* -T options:
|
* -T options:
|
||||||
*/
|
*/
|
||||||
|
static bool clienttest = false;
|
||||||
static bool dropedns = false;
|
static bool dropedns = false;
|
||||||
static bool ednsformerr = false;
|
static bool ednsformerr = false;
|
||||||
static bool ednsnotimp = false;
|
static bool ednsnotimp = false;
|
||||||
@@ -488,12 +483,6 @@ set_flags(const char *arg, struct flag_def *defs, unsigned int *ret) {
|
|||||||
static void
|
static void
|
||||||
printversion(bool verbose) {
|
printversion(bool verbose) {
|
||||||
char rndcconf[PATH_MAX], *dot = NULL;
|
char rndcconf[PATH_MAX], *dot = NULL;
|
||||||
#if defined(HAVE_GEOIP2)
|
|
||||||
isc_mem_t *mctx = NULL;
|
|
||||||
cfg_parser_t *parser = NULL;
|
|
||||||
cfg_obj_t *config = NULL;
|
|
||||||
const cfg_obj_t *defaults = NULL, *obj = NULL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
printf("%s %s%s%s <id:%s>\n",
|
printf("%s %s%s%s <id:%s>\n",
|
||||||
named_g_product, named_g_version,
|
named_g_product, named_g_version,
|
||||||
@@ -552,17 +541,6 @@ OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0 or higher */
|
|||||||
ZLIB_VERSION);
|
ZLIB_VERSION);
|
||||||
printf("linked to zlib version: %s\n",
|
printf("linked to zlib version: %s\n",
|
||||||
zlibVersion());
|
zlibVersion());
|
||||||
#endif
|
|
||||||
#if defined(HAVE_GEOIP2)
|
|
||||||
/* Unfortunately, no version define on link time */
|
|
||||||
printf("linked to maxminddb version: %s\n",
|
|
||||||
MMDB_lib_version());
|
|
||||||
#endif
|
|
||||||
#if defined(HAVE_DNSTAP)
|
|
||||||
printf("compiled with protobuf-c version: %s\n",
|
|
||||||
PROTOBUF_C_VERSION);
|
|
||||||
printf("linked to protobuf-c version: %s\n",
|
|
||||||
protobuf_c_version());
|
|
||||||
#endif
|
#endif
|
||||||
printf("threads support is enabled\n\n");
|
printf("threads support is enabled\n\n");
|
||||||
|
|
||||||
@@ -591,20 +569,7 @@ OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0 or higher */
|
|||||||
printf(" nsupdate session key: %s\n", named_g_defaultsessionkeyfile);
|
printf(" nsupdate session key: %s\n", named_g_defaultsessionkeyfile);
|
||||||
printf(" named PID file: %s\n", named_g_defaultpidfile);
|
printf(" named PID file: %s\n", named_g_defaultpidfile);
|
||||||
printf(" named lock file: %s\n", named_g_defaultlockfile);
|
printf(" named lock file: %s\n", named_g_defaultlockfile);
|
||||||
#if defined(HAVE_GEOIP2)
|
|
||||||
#define RTC(x) RUNTIME_CHECK((x) == ISC_R_SUCCESS)
|
|
||||||
isc_mem_create(&mctx);
|
|
||||||
RTC(cfg_parser_create(mctx, named_g_lctx, &parser));
|
|
||||||
RTC(named_config_parsedefaults(parser, &config));
|
|
||||||
RTC(cfg_map_get(config, "options", &defaults));
|
|
||||||
RTC(cfg_map_get(defaults, "geoip-directory", &obj));
|
|
||||||
if (cfg_obj_isstring(obj)) {
|
|
||||||
printf(" geoip-directory: %s\n", cfg_obj_asstring(obj));
|
|
||||||
}
|
|
||||||
cfg_obj_destroy(parser, &config);
|
|
||||||
cfg_parser_destroy(&parser);
|
|
||||||
isc_mem_detach(&mctx);
|
|
||||||
#endif /* HAVE_GEOIP2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -637,12 +602,17 @@ parse_T_opt(char *option) {
|
|||||||
/*
|
/*
|
||||||
* force the server to behave (or misbehave) in
|
* force the server to behave (or misbehave) in
|
||||||
* specified ways for testing purposes.
|
* specified ways for testing purposes.
|
||||||
|
*
|
||||||
|
* clienttest: make clients single shot with their
|
||||||
|
* own memory context.
|
||||||
* delay=xxxx: delay client responses by xxxx ms to
|
* delay=xxxx: delay client responses by xxxx ms to
|
||||||
* simulate remote servers.
|
* simulate remote servers.
|
||||||
* dscp=x: check that dscp values are as
|
* dscp=x: check that dscp values are as
|
||||||
* expected and assert otherwise.
|
* expected and assert otherwise.
|
||||||
*/
|
*/
|
||||||
if (!strncmp(option, "delay=", 6)) {
|
if (!strcmp(option, "clienttest")) {
|
||||||
|
clienttest = true;
|
||||||
|
} else if (!strncmp(option, "delay=", 6)) {
|
||||||
delay = atoi(option + 6);
|
delay = atoi(option + 6);
|
||||||
} else if (!strcmp(option, "dropedns")) {
|
} else if (!strcmp(option, "dropedns")) {
|
||||||
dropedns = true;
|
dropedns = true;
|
||||||
@@ -907,15 +877,8 @@ create_managers(void) {
|
|||||||
"using %u UDP listener%s per interface",
|
"using %u UDP listener%s per interface",
|
||||||
named_g_udpdisp, named_g_udpdisp == 1 ? "" : "s");
|
named_g_udpdisp, named_g_udpdisp == 1 ? "" : "s");
|
||||||
|
|
||||||
named_g_nm = isc_nm_start(named_g_mctx, named_g_cpus);
|
|
||||||
if (named_g_nm == NULL) {
|
|
||||||
UNEXPECTED_ERROR(__FILE__, __LINE__,
|
|
||||||
"isc_nm_start() failed");
|
|
||||||
return (ISC_R_UNEXPECTED);
|
|
||||||
}
|
|
||||||
|
|
||||||
result = isc_taskmgr_create(named_g_mctx, named_g_cpus, 0,
|
result = isc_taskmgr_create(named_g_mctx, named_g_cpus, 0,
|
||||||
named_g_nm, &named_g_taskmgr);
|
&named_g_taskmgr);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
UNEXPECTED_ERROR(__FILE__, __LINE__,
|
UNEXPECTED_ERROR(__FILE__, __LINE__,
|
||||||
"isc_taskmgr_create() failed: %s",
|
"isc_taskmgr_create() failed: %s",
|
||||||
@@ -940,7 +903,6 @@ create_managers(void) {
|
|||||||
return (ISC_R_UNEXPECTED);
|
return (ISC_R_UNEXPECTED);
|
||||||
}
|
}
|
||||||
isc_socketmgr_maxudp(named_g_socketmgr, maxudp);
|
isc_socketmgr_maxudp(named_g_socketmgr, maxudp);
|
||||||
isc_nm_maxudp(named_g_nm, maxudp);
|
|
||||||
result = isc_socketmgr_getmaxsockets(named_g_socketmgr, &socks);
|
result = isc_socketmgr_getmaxsockets(named_g_socketmgr, &socks);
|
||||||
if (result == ISC_R_SUCCESS) {
|
if (result == ISC_R_SUCCESS) {
|
||||||
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
|
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
|
||||||
@@ -954,24 +916,11 @@ create_managers(void) {
|
|||||||
static void
|
static void
|
||||||
destroy_managers(void) {
|
destroy_managers(void) {
|
||||||
/*
|
/*
|
||||||
* isc_nm_closedown() closes all active connections, freeing
|
* isc_taskmgr_destroy() will block until all tasks have exited,
|
||||||
* attached clients and other resources and preventing new
|
|
||||||
* connections from being established, but it not does not
|
|
||||||
* stop all processing or destroy the netmgr yet.
|
|
||||||
*/
|
|
||||||
isc_nm_closedown(named_g_nm);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* isc_taskmgr_destroy() will block until all tasks have exited.
|
|
||||||
*/
|
*/
|
||||||
isc_taskmgr_destroy(&named_g_taskmgr);
|
isc_taskmgr_destroy(&named_g_taskmgr);
|
||||||
isc_timermgr_destroy(&named_g_timermgr);
|
isc_timermgr_destroy(&named_g_timermgr);
|
||||||
isc_socketmgr_destroy(&named_g_socketmgr);
|
isc_socketmgr_destroy(&named_g_socketmgr);
|
||||||
|
|
||||||
/*
|
|
||||||
* At this point is safe to destroy the netmgr.
|
|
||||||
*/
|
|
||||||
isc_nm_destroy(&named_g_nm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -1285,6 +1234,8 @@ setup(void) {
|
|||||||
/*
|
/*
|
||||||
* Modify server context according to command line options
|
* Modify server context according to command line options
|
||||||
*/
|
*/
|
||||||
|
if (clienttest)
|
||||||
|
ns_server_setoption(sctx, NS_SERVER_CLIENTTEST, true);
|
||||||
if (disable4)
|
if (disable4)
|
||||||
ns_server_setoption(sctx, NS_SERVER_DISABLE4, true);
|
ns_server_setoption(sctx, NS_SERVER_DISABLE4, true);
|
||||||
if (disable6)
|
if (disable6)
|
||||||
@@ -1344,6 +1295,8 @@ cleanup(void) {
|
|||||||
dlz_dlopen_clear();
|
dlz_dlopen_clear();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
dns_name_destroy();
|
||||||
|
|
||||||
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
|
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
|
||||||
NAMED_LOGMODULE_MAIN,
|
NAMED_LOGMODULE_MAIN,
|
||||||
ISC_LOG_NOTICE, "exiting");
|
ISC_LOG_NOTICE, "exiting");
|
||||||
@@ -1456,10 +1409,6 @@ main(int argc, char *argv[]) {
|
|||||||
setvbuf(stderr, NULL, _IOFBF, BUFSIZ);
|
setvbuf(stderr, NULL, _IOFBF, BUFSIZ);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBXML2
|
|
||||||
xmlInitThreads();
|
|
||||||
#endif /* HAVE_LIBXML2 */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Record version in core image.
|
* Record version in core image.
|
||||||
* strings named.core | grep "named version:"
|
* strings named.core | grep "named version:"
|
||||||
@@ -1592,10 +1541,6 @@ main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
named_os_shutdown();
|
named_os_shutdown();
|
||||||
|
|
||||||
#ifdef HAVE_LIBXML2
|
|
||||||
xmlCleanupThreads();
|
|
||||||
#endif /* HAVE_LIBXML2 */
|
|
||||||
|
|
||||||
#ifdef HAVE_GPERFTOOLS_PROFILER
|
#ifdef HAVE_GPERFTOOLS_PROFILER
|
||||||
ProfilerStop();
|
ProfilerStop();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+59
-88
@@ -10,12 +10,12 @@
|
|||||||
.\" Title: named.conf
|
.\" Title: named.conf
|
||||||
.\" Author:
|
.\" Author:
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
||||||
.\" Date: 2019-08-12
|
.\" Date: 2019-08-07
|
||||||
.\" Manual: BIND9
|
.\" Manual: BIND9
|
||||||
.\" Source: ISC
|
.\" Source: ISC
|
||||||
.\" Language: English
|
.\" Language: English
|
||||||
.\"
|
.\"
|
||||||
.TH "NAMED\&.CONF" "5" "2019\-08\-12" "ISC" "BIND9"
|
.TH "NAMED\&.CONF" "5" "2019\-08\-07" "ISC" "BIND9"
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
.\" * Define some portability stuff
|
.\" * Define some portability stuff
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
@@ -97,6 +97,19 @@ dlz \fIstring\fR {
|
|||||||
.if n \{\
|
.if n \{\
|
||||||
.RE
|
.RE
|
||||||
.\}
|
.\}
|
||||||
|
.SH "DNSSEC-KEYS"
|
||||||
|
.sp
|
||||||
|
.if n \{\
|
||||||
|
.RS 4
|
||||||
|
.\}
|
||||||
|
.nf
|
||||||
|
dnssec\-keys { \fIstring\fR ( static\-key |
|
||||||
|
initial\-key ) \fIinteger\fR \fIinteger\fR \fIinteger\fR
|
||||||
|
\fIquoted_string\fR; \&.\&.\&. };
|
||||||
|
.fi
|
||||||
|
.if n \{\
|
||||||
|
.RE
|
||||||
|
.\}
|
||||||
.SH "DYNDB"
|
.SH "DYNDB"
|
||||||
.sp
|
.sp
|
||||||
.if n \{\
|
.if n \{\
|
||||||
@@ -150,16 +163,16 @@ logging {
|
|||||||
.\}
|
.\}
|
||||||
.SH "MANAGED-KEYS"
|
.SH "MANAGED-KEYS"
|
||||||
.PP
|
.PP
|
||||||
Deprecated \- see TRUST\-ANCHORS\&.
|
Deprecated \- see DNSSEC\-KEYS\&.
|
||||||
.sp
|
.sp
|
||||||
.if n \{\
|
.if n \{\
|
||||||
.RS 4
|
.RS 4
|
||||||
.\}
|
.\}
|
||||||
.nf
|
.nf
|
||||||
managed\-keys { \fIstring\fR ( static\-key
|
managed\-keys { \fIstring\fR ( static\-key
|
||||||
| initial\-key | static\-ds |
|
| initial\-key ) \fIinteger\fR
|
||||||
initial\-ds ) \fIinteger\fR \fIinteger\fR
|
\fIinteger\fR \fIinteger\fR
|
||||||
\fIinteger\fR \fIquoted_string\fR; \&.\&.\&. }; deprecated
|
\fIquoted_string\fR; \&.\&.\&. }; deprecated
|
||||||
.fi
|
.fi
|
||||||
.if n \{\
|
.if n \{\
|
||||||
.RE
|
.RE
|
||||||
@@ -217,7 +230,7 @@ options {
|
|||||||
[ dscp \fIinteger\fR ] { ( \fImasters\fR | \fIipv4_address\fR [ port
|
[ dscp \fIinteger\fR ] { ( \fImasters\fR | \fIipv4_address\fR [ port
|
||||||
\fIinteger\fR ] | \fIipv6_address\fR [ port \fIinteger\fR ] ) [ key
|
\fIinteger\fR ] | \fIipv6_address\fR [ port \fIinteger\fR ] ) [ key
|
||||||
\fIstring\fR ]; \&.\&.\&. } ] [ zone\-directory \fIquoted_string\fR ] [
|
\fIstring\fR ]; \&.\&.\&. } ] [ zone\-directory \fIquoted_string\fR ] [
|
||||||
in\-memory \fIboolean\fR ] [ min\-update\-interval \fIduration\fR ]; \&.\&.\&. };
|
in\-memory \fIboolean\fR ] [ min\-update\-interval \fIttlval\fR ]; \&.\&.\&. };
|
||||||
check\-dup\-records ( fail | warn | ignore );
|
check\-dup\-records ( fail | warn | ignore );
|
||||||
check\-integrity \fIboolean\fR;
|
check\-integrity \fIboolean\fR;
|
||||||
check\-mx ( fail | warn | ignore );
|
check\-mx ( fail | warn | ignore );
|
||||||
@@ -299,18 +312,18 @@ options {
|
|||||||
fstrm\-set\-output\-notify\-threshold \fIinteger\fR;
|
fstrm\-set\-output\-notify\-threshold \fIinteger\fR;
|
||||||
fstrm\-set\-output\-queue\-model ( mpsc | spsc );
|
fstrm\-set\-output\-queue\-model ( mpsc | spsc );
|
||||||
fstrm\-set\-output\-queue\-size \fIinteger\fR;
|
fstrm\-set\-output\-queue\-size \fIinteger\fR;
|
||||||
fstrm\-set\-reopen\-interval \fIduration\fR;
|
fstrm\-set\-reopen\-interval \fIttlval\fR;
|
||||||
geoip\-directory ( \fIquoted_string\fR | none );
|
geoip\-directory ( \fIquoted_string\fR | none );
|
||||||
glue\-cache \fIboolean\fR;
|
glue\-cache \fIboolean\fR;
|
||||||
heartbeat\-interval \fIinteger\fR;
|
heartbeat\-interval \fIinteger\fR;
|
||||||
hostname ( \fIquoted_string\fR | none );
|
hostname ( \fIquoted_string\fR | none );
|
||||||
inline\-signing \fIboolean\fR;
|
inline\-signing \fIboolean\fR;
|
||||||
interface\-interval \fIduration\fR;
|
interface\-interval \fIttlval\fR;
|
||||||
ixfr\-from\-differences ( primary | master | secondary | slave |
|
ixfr\-from\-differences ( primary | master | secondary | slave |
|
||||||
\fIboolean\fR );
|
\fIboolean\fR );
|
||||||
keep\-response\-order { \fIaddress_match_element\fR; \&.\&.\&. };
|
keep\-response\-order { \fIaddress_match_element\fR; \&.\&.\&. };
|
||||||
key\-directory \fIquoted_string\fR;
|
key\-directory \fIquoted_string\fR;
|
||||||
lame\-ttl \fIduration\fR;
|
lame\-ttl \fIttlval\fR;
|
||||||
listen\-on [ port \fIinteger\fR ] [ dscp
|
listen\-on [ port \fIinteger\fR ] [ dscp
|
||||||
\fIinteger\fR ] {
|
\fIinteger\fR ] {
|
||||||
\fIaddress_match_element\fR; \&.\&.\&. };
|
\fIaddress_match_element\fR; \&.\&.\&. };
|
||||||
@@ -324,28 +337,28 @@ options {
|
|||||||
masterfile\-style ( full | relative );
|
masterfile\-style ( full | relative );
|
||||||
match\-mapped\-addresses \fIboolean\fR;
|
match\-mapped\-addresses \fIboolean\fR;
|
||||||
max\-cache\-size ( default | unlimited | \fIsizeval\fR | \fIpercentage\fR );
|
max\-cache\-size ( default | unlimited | \fIsizeval\fR | \fIpercentage\fR );
|
||||||
max\-cache\-ttl \fIduration\fR;
|
max\-cache\-ttl \fIttlval\fR;
|
||||||
max\-clients\-per\-query \fIinteger\fR;
|
max\-clients\-per\-query \fIinteger\fR;
|
||||||
max\-journal\-size ( default | unlimited | \fIsizeval\fR );
|
max\-journal\-size ( default | unlimited | \fIsizeval\fR );
|
||||||
max\-ncache\-ttl \fIduration\fR;
|
max\-ncache\-ttl \fIttlval\fR;
|
||||||
max\-records \fIinteger\fR;
|
max\-records \fIinteger\fR;
|
||||||
max\-recursion\-depth \fIinteger\fR;
|
max\-recursion\-depth \fIinteger\fR;
|
||||||
max\-recursion\-queries \fIinteger\fR;
|
max\-recursion\-queries \fIinteger\fR;
|
||||||
max\-refresh\-time \fIinteger\fR;
|
max\-refresh\-time \fIinteger\fR;
|
||||||
max\-retry\-time \fIinteger\fR;
|
max\-retry\-time \fIinteger\fR;
|
||||||
max\-rsa\-exponent\-size \fIinteger\fR;
|
max\-rsa\-exponent\-size \fIinteger\fR;
|
||||||
max\-stale\-ttl \fIduration\fR;
|
max\-stale\-ttl \fIttlval\fR;
|
||||||
max\-transfer\-idle\-in \fIinteger\fR;
|
max\-transfer\-idle\-in \fIinteger\fR;
|
||||||
max\-transfer\-idle\-out \fIinteger\fR;
|
max\-transfer\-idle\-out \fIinteger\fR;
|
||||||
max\-transfer\-time\-in \fIinteger\fR;
|
max\-transfer\-time\-in \fIinteger\fR;
|
||||||
max\-transfer\-time\-out \fIinteger\fR;
|
max\-transfer\-time\-out \fIinteger\fR;
|
||||||
max\-udp\-size \fIinteger\fR;
|
max\-udp\-size \fIinteger\fR;
|
||||||
max\-zone\-ttl ( unlimited | \fIduration\fR );
|
max\-zone\-ttl ( unlimited | \fIttlval\fR );
|
||||||
memstatistics \fIboolean\fR;
|
memstatistics \fIboolean\fR;
|
||||||
memstatistics\-file \fIquoted_string\fR;
|
memstatistics\-file \fIquoted_string\fR;
|
||||||
message\-compression \fIboolean\fR;
|
message\-compression \fIboolean\fR;
|
||||||
min\-cache\-ttl \fIduration\fR;
|
min\-cache\-ttl \fIttlval\fR;
|
||||||
min\-ncache\-ttl \fIduration\fR;
|
min\-ncache\-ttl \fIttlval\fR;
|
||||||
min\-refresh\-time \fIinteger\fR;
|
min\-refresh\-time \fIinteger\fR;
|
||||||
min\-retry\-time \fIinteger\fR;
|
min\-retry\-time \fIinteger\fR;
|
||||||
minimal\-any \fIboolean\fR;
|
minimal\-any \fIboolean\fR;
|
||||||
@@ -362,8 +375,8 @@ options {
|
|||||||
notify\-source\-v6 ( \fIipv6_address\fR | * ) [ port ( \fIinteger\fR | * ) ]
|
notify\-source\-v6 ( \fIipv6_address\fR | * ) [ port ( \fIinteger\fR | * ) ]
|
||||||
[ dscp \fIinteger\fR ];
|
[ dscp \fIinteger\fR ];
|
||||||
notify\-to\-soa \fIboolean\fR;
|
notify\-to\-soa \fIboolean\fR;
|
||||||
nta\-lifetime \fIduration\fR;
|
nta\-lifetime \fIttlval\fR;
|
||||||
nta\-recheck \fIduration\fR;
|
nta\-recheck \fIttlval\fR;
|
||||||
nxdomain\-redirect \fIstring\fR;
|
nxdomain\-redirect \fIstring\fR;
|
||||||
pid\-file ( \fIquoted_string\fR | none );
|
pid\-file ( \fIquoted_string\fR | none );
|
||||||
port \fIinteger\fR;
|
port \fIinteger\fR;
|
||||||
@@ -410,13 +423,13 @@ options {
|
|||||||
response\-padding { \fIaddress_match_element\fR; \&.\&.\&. } block\-size
|
response\-padding { \fIaddress_match_element\fR; \&.\&.\&. } block\-size
|
||||||
\fIinteger\fR;
|
\fIinteger\fR;
|
||||||
response\-policy { zone \fIstring\fR [ add\-soa \fIboolean\fR ] [ log
|
response\-policy { zone \fIstring\fR [ add\-soa \fIboolean\fR ] [ log
|
||||||
\fIboolean\fR ] [ max\-policy\-ttl \fIduration\fR ] [ min\-update\-interval
|
\fIboolean\fR ] [ max\-policy\-ttl \fIttlval\fR ] [ min\-update\-interval
|
||||||
\fIduration\fR ] [ policy ( cname | disabled | drop | given | no\-op |
|
\fIttlval\fR ] [ policy ( cname | disabled | drop | given | no\-op |
|
||||||
nodata | nxdomain | passthru | tcp\-only \fIquoted_string\fR ) ] [
|
nodata | nxdomain | passthru | tcp\-only \fIquoted_string\fR ) ] [
|
||||||
recursive\-only \fIboolean\fR ] [ nsip\-enable \fIboolean\fR ] [
|
recursive\-only \fIboolean\fR ] [ nsip\-enable \fIboolean\fR ] [
|
||||||
nsdname\-enable \fIboolean\fR ]; \&.\&.\&. } [ add\-soa \fIboolean\fR ] [
|
nsdname\-enable \fIboolean\fR ]; \&.\&.\&. } [ add\-soa \fIboolean\fR ] [
|
||||||
break\-dnssec \fIboolean\fR ] [ max\-policy\-ttl \fIduration\fR ] [
|
break\-dnssec \fIboolean\fR ] [ max\-policy\-ttl \fIttlval\fR ] [
|
||||||
min\-update\-interval \fIduration\fR ] [ min\-ns\-dots \fIinteger\fR ] [
|
min\-update\-interval \fIttlval\fR ] [ min\-ns\-dots \fIinteger\fR ] [
|
||||||
nsip\-wait\-recurse \fIboolean\fR ] [ qname\-wait\-recurse \fIboolean\fR ]
|
nsip\-wait\-recurse \fIboolean\fR ] [ qname\-wait\-recurse \fIboolean\fR ]
|
||||||
[ recursive\-only \fIboolean\fR ] [ nsip\-enable \fIboolean\fR ] [
|
[ recursive\-only \fIboolean\fR ] [ nsip\-enable \fIboolean\fR ] [
|
||||||
nsdname\-enable \fIboolean\fR ] [ dnsrps\-enable \fIboolean\fR ] [
|
nsdname\-enable \fIboolean\fR ] [ dnsrps\-enable \fIboolean\fR ] [
|
||||||
@@ -430,7 +443,7 @@ options {
|
|||||||
serial\-query\-rate \fIinteger\fR;
|
serial\-query\-rate \fIinteger\fR;
|
||||||
serial\-update\-method ( date | increment | unixtime );
|
serial\-update\-method ( date | increment | unixtime );
|
||||||
server\-id ( \fIquoted_string\fR | none | hostname );
|
server\-id ( \fIquoted_string\fR | none | hostname );
|
||||||
servfail\-ttl \fIduration\fR;
|
servfail\-ttl \fIttlval\fR;
|
||||||
session\-keyalg \fIstring\fR;
|
session\-keyalg \fIstring\fR;
|
||||||
session\-keyfile ( \fIquoted_string\fR | none );
|
session\-keyfile ( \fIquoted_string\fR | none );
|
||||||
session\-keyname \fIstring\fR;
|
session\-keyname \fIstring\fR;
|
||||||
@@ -441,7 +454,7 @@ options {
|
|||||||
sortlist { \fIaddress_match_element\fR; \&.\&.\&. };
|
sortlist { \fIaddress_match_element\fR; \&.\&.\&. };
|
||||||
stacksize ( default | unlimited | \fIsizeval\fR );
|
stacksize ( default | unlimited | \fIsizeval\fR );
|
||||||
stale\-answer\-enable \fIboolean\fR;
|
stale\-answer\-enable \fIboolean\fR;
|
||||||
stale\-answer\-ttl \fIduration\fR;
|
stale\-answer\-ttl \fIttlval\fR;
|
||||||
startup\-notify\-rate \fIinteger\fR;
|
startup\-notify\-rate \fIinteger\fR;
|
||||||
statistics\-file \fIquoted_string\fR;
|
statistics\-file \fIquoted_string\fR;
|
||||||
synth\-from\-dnssec \fIboolean\fR;
|
synth\-from\-dnssec \fIboolean\fR;
|
||||||
@@ -551,23 +564,9 @@ statistics\-channels {
|
|||||||
.if n \{\
|
.if n \{\
|
||||||
.RE
|
.RE
|
||||||
.\}
|
.\}
|
||||||
.SH "TRUST-ANCHORS"
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
trust\-anchors { \fIstring\fR ( static\-key |
|
|
||||||
initial\-key | static\-ds | initial\-ds )
|
|
||||||
\fIinteger\fR \fIinteger\fR \fIinteger\fR
|
|
||||||
\fIquoted_string\fR; \&.\&.\&. };
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SH "TRUSTED-KEYS"
|
.SH "TRUSTED-KEYS"
|
||||||
.PP
|
.PP
|
||||||
Deprecated \- see TRUST\-ANCHORS\&.
|
Deprecated \- see DNSSEC\-KEYS\&.
|
||||||
.sp
|
.sp
|
||||||
.if n \{\
|
.if n \{\
|
||||||
.RS 4
|
.RS 4
|
||||||
@@ -613,7 +612,7 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
[ dscp \fIinteger\fR ] { ( \fImasters\fR | \fIipv4_address\fR [ port
|
[ dscp \fIinteger\fR ] { ( \fImasters\fR | \fIipv4_address\fR [ port
|
||||||
\fIinteger\fR ] | \fIipv6_address\fR [ port \fIinteger\fR ] ) [ key
|
\fIinteger\fR ] | \fIipv6_address\fR [ port \fIinteger\fR ] ) [ key
|
||||||
\fIstring\fR ]; \&.\&.\&. } ] [ zone\-directory \fIquoted_string\fR ] [
|
\fIstring\fR ]; \&.\&.\&. } ] [ zone\-directory \fIquoted_string\fR ] [
|
||||||
in\-memory \fIboolean\fR ] [ min\-update\-interval \fIduration\fR ]; \&.\&.\&. };
|
in\-memory \fIboolean\fR ] [ min\-update\-interval \fIttlval\fR ]; \&.\&.\&. };
|
||||||
check\-dup\-records ( fail | warn | ignore );
|
check\-dup\-records ( fail | warn | ignore );
|
||||||
check\-integrity \fIboolean\fR;
|
check\-integrity \fIboolean\fR;
|
||||||
check\-mx ( fail | warn | ignore );
|
check\-mx ( fail | warn | ignore );
|
||||||
@@ -655,6 +654,9 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
dnsrps\-options { \fIunspecified\-text\fR };
|
dnsrps\-options { \fIunspecified\-text\fR };
|
||||||
dnssec\-accept\-expired \fIboolean\fR;
|
dnssec\-accept\-expired \fIboolean\fR;
|
||||||
dnssec\-dnskey\-kskonly \fIboolean\fR;
|
dnssec\-dnskey\-kskonly \fIboolean\fR;
|
||||||
|
dnssec\-keys { \fIstring\fR ( static\-key |
|
||||||
|
initial\-key ) \fIinteger\fR \fIinteger\fR
|
||||||
|
\fIinteger\fR \fIquoted_string\fR; \&.\&.\&. };
|
||||||
dnssec\-loadkeys\-interval \fIinteger\fR;
|
dnssec\-loadkeys\-interval \fIinteger\fR;
|
||||||
dnssec\-must\-be\-secure \fIstring\fR \fIboolean\fR;
|
dnssec\-must\-be\-secure \fIstring\fR \fIboolean\fR;
|
||||||
dnssec\-secure\-to\-insecure \fIboolean\fR;
|
dnssec\-secure\-to\-insecure \fIboolean\fR;
|
||||||
@@ -688,11 +690,10 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
secret \fIstring\fR;
|
secret \fIstring\fR;
|
||||||
};
|
};
|
||||||
key\-directory \fIquoted_string\fR;
|
key\-directory \fIquoted_string\fR;
|
||||||
lame\-ttl \fIduration\fR;
|
lame\-ttl \fIttlval\fR;
|
||||||
lmdb\-mapsize \fIsizeval\fR;
|
lmdb\-mapsize \fIsizeval\fR;
|
||||||
managed\-keys { \fIstring\fR (
|
managed\-keys { \fIstring\fR (
|
||||||
static\-key | initial\-key
|
static\-key | initial\-key
|
||||||
| static\-ds | initial\-ds
|
|
||||||
) \fIinteger\fR \fIinteger\fR
|
) \fIinteger\fR \fIinteger\fR
|
||||||
\fIinteger\fR
|
\fIinteger\fR
|
||||||
\fIquoted_string\fR; \&.\&.\&. }; deprecated
|
\fIquoted_string\fR; \&.\&.\&. }; deprecated
|
||||||
@@ -702,25 +703,25 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
match\-destinations { \fIaddress_match_element\fR; \&.\&.\&. };
|
match\-destinations { \fIaddress_match_element\fR; \&.\&.\&. };
|
||||||
match\-recursive\-only \fIboolean\fR;
|
match\-recursive\-only \fIboolean\fR;
|
||||||
max\-cache\-size ( default | unlimited | \fIsizeval\fR | \fIpercentage\fR );
|
max\-cache\-size ( default | unlimited | \fIsizeval\fR | \fIpercentage\fR );
|
||||||
max\-cache\-ttl \fIduration\fR;
|
max\-cache\-ttl \fIttlval\fR;
|
||||||
max\-clients\-per\-query \fIinteger\fR;
|
max\-clients\-per\-query \fIinteger\fR;
|
||||||
max\-journal\-size ( default | unlimited | \fIsizeval\fR );
|
max\-journal\-size ( default | unlimited | \fIsizeval\fR );
|
||||||
max\-ncache\-ttl \fIduration\fR;
|
max\-ncache\-ttl \fIttlval\fR;
|
||||||
max\-records \fIinteger\fR;
|
max\-records \fIinteger\fR;
|
||||||
max\-recursion\-depth \fIinteger\fR;
|
max\-recursion\-depth \fIinteger\fR;
|
||||||
max\-recursion\-queries \fIinteger\fR;
|
max\-recursion\-queries \fIinteger\fR;
|
||||||
max\-refresh\-time \fIinteger\fR;
|
max\-refresh\-time \fIinteger\fR;
|
||||||
max\-retry\-time \fIinteger\fR;
|
max\-retry\-time \fIinteger\fR;
|
||||||
max\-stale\-ttl \fIduration\fR;
|
max\-stale\-ttl \fIttlval\fR;
|
||||||
max\-transfer\-idle\-in \fIinteger\fR;
|
max\-transfer\-idle\-in \fIinteger\fR;
|
||||||
max\-transfer\-idle\-out \fIinteger\fR;
|
max\-transfer\-idle\-out \fIinteger\fR;
|
||||||
max\-transfer\-time\-in \fIinteger\fR;
|
max\-transfer\-time\-in \fIinteger\fR;
|
||||||
max\-transfer\-time\-out \fIinteger\fR;
|
max\-transfer\-time\-out \fIinteger\fR;
|
||||||
max\-udp\-size \fIinteger\fR;
|
max\-udp\-size \fIinteger\fR;
|
||||||
max\-zone\-ttl ( unlimited | \fIduration\fR );
|
max\-zone\-ttl ( unlimited | \fIttlval\fR );
|
||||||
message\-compression \fIboolean\fR;
|
message\-compression \fIboolean\fR;
|
||||||
min\-cache\-ttl \fIduration\fR;
|
min\-cache\-ttl \fIttlval\fR;
|
||||||
min\-ncache\-ttl \fIduration\fR;
|
min\-ncache\-ttl \fIttlval\fR;
|
||||||
min\-refresh\-time \fIinteger\fR;
|
min\-refresh\-time \fIinteger\fR;
|
||||||
min\-retry\-time \fIinteger\fR;
|
min\-retry\-time \fIinteger\fR;
|
||||||
minimal\-any \fIboolean\fR;
|
minimal\-any \fIboolean\fR;
|
||||||
@@ -736,8 +737,8 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
notify\-source\-v6 ( \fIipv6_address\fR | * ) [ port ( \fIinteger\fR | * ) ]
|
notify\-source\-v6 ( \fIipv6_address\fR | * ) [ port ( \fIinteger\fR | * ) ]
|
||||||
[ dscp \fIinteger\fR ];
|
[ dscp \fIinteger\fR ];
|
||||||
notify\-to\-soa \fIboolean\fR;
|
notify\-to\-soa \fIboolean\fR;
|
||||||
nta\-lifetime \fIduration\fR;
|
nta\-lifetime \fIttlval\fR;
|
||||||
nta\-recheck \fIduration\fR;
|
nta\-recheck \fIttlval\fR;
|
||||||
nxdomain\-redirect \fIstring\fR;
|
nxdomain\-redirect \fIstring\fR;
|
||||||
plugin ( query ) \fIstring\fR [ {
|
plugin ( query ) \fIstring\fR [ {
|
||||||
\fIunspecified\-text\fR } ];
|
\fIunspecified\-text\fR } ];
|
||||||
@@ -779,13 +780,13 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
response\-padding { \fIaddress_match_element\fR; \&.\&.\&. } block\-size
|
response\-padding { \fIaddress_match_element\fR; \&.\&.\&. } block\-size
|
||||||
\fIinteger\fR;
|
\fIinteger\fR;
|
||||||
response\-policy { zone \fIstring\fR [ add\-soa \fIboolean\fR ] [ log
|
response\-policy { zone \fIstring\fR [ add\-soa \fIboolean\fR ] [ log
|
||||||
\fIboolean\fR ] [ max\-policy\-ttl \fIduration\fR ] [ min\-update\-interval
|
\fIboolean\fR ] [ max\-policy\-ttl \fIttlval\fR ] [ min\-update\-interval
|
||||||
\fIduration\fR ] [ policy ( cname | disabled | drop | given | no\-op |
|
\fIttlval\fR ] [ policy ( cname | disabled | drop | given | no\-op |
|
||||||
nodata | nxdomain | passthru | tcp\-only \fIquoted_string\fR ) ] [
|
nodata | nxdomain | passthru | tcp\-only \fIquoted_string\fR ) ] [
|
||||||
recursive\-only \fIboolean\fR ] [ nsip\-enable \fIboolean\fR ] [
|
recursive\-only \fIboolean\fR ] [ nsip\-enable \fIboolean\fR ] [
|
||||||
nsdname\-enable \fIboolean\fR ]; \&.\&.\&. } [ add\-soa \fIboolean\fR ] [
|
nsdname\-enable \fIboolean\fR ]; \&.\&.\&. } [ add\-soa \fIboolean\fR ] [
|
||||||
break\-dnssec \fIboolean\fR ] [ max\-policy\-ttl \fIduration\fR ] [
|
break\-dnssec \fIboolean\fR ] [ max\-policy\-ttl \fIttlval\fR ] [
|
||||||
min\-update\-interval \fIduration\fR ] [ min\-ns\-dots \fIinteger\fR ] [
|
min\-update\-interval \fIttlval\fR ] [ min\-ns\-dots \fIinteger\fR ] [
|
||||||
nsip\-wait\-recurse \fIboolean\fR ] [ qname\-wait\-recurse \fIboolean\fR ]
|
nsip\-wait\-recurse \fIboolean\fR ] [ qname\-wait\-recurse \fIboolean\fR ]
|
||||||
[ recursive\-only \fIboolean\fR ] [ nsip\-enable \fIboolean\fR ] [
|
[ recursive\-only \fIboolean\fR ] [ nsip\-enable \fIboolean\fR ] [
|
||||||
nsdname\-enable \fIboolean\fR ] [ dnsrps\-enable \fIboolean\fR ] [
|
nsdname\-enable \fIboolean\fR ] [ dnsrps\-enable \fIboolean\fR ] [
|
||||||
@@ -830,14 +831,14 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
\fIinteger\fR | * ) ] [ dscp \fIinteger\fR ];
|
\fIinteger\fR | * ) ] [ dscp \fIinteger\fR ];
|
||||||
transfers \fIinteger\fR;
|
transfers \fIinteger\fR;
|
||||||
};
|
};
|
||||||
servfail\-ttl \fIduration\fR;
|
servfail\-ttl \fIttlval\fR;
|
||||||
sig\-signing\-nodes \fIinteger\fR;
|
sig\-signing\-nodes \fIinteger\fR;
|
||||||
sig\-signing\-signatures \fIinteger\fR;
|
sig\-signing\-signatures \fIinteger\fR;
|
||||||
sig\-signing\-type \fIinteger\fR;
|
sig\-signing\-type \fIinteger\fR;
|
||||||
sig\-validity\-interval \fIinteger\fR [ \fIinteger\fR ];
|
sig\-validity\-interval \fIinteger\fR [ \fIinteger\fR ];
|
||||||
sortlist { \fIaddress_match_element\fR; \&.\&.\&. };
|
sortlist { \fIaddress_match_element\fR; \&.\&.\&. };
|
||||||
stale\-answer\-enable \fIboolean\fR;
|
stale\-answer\-enable \fIboolean\fR;
|
||||||
stale\-answer\-ttl \fIduration\fR;
|
stale\-answer\-ttl \fIttlval\fR;
|
||||||
synth\-from\-dnssec \fIboolean\fR;
|
synth\-from\-dnssec \fIboolean\fR;
|
||||||
transfer\-format ( many\-answers | one\-answer );
|
transfer\-format ( many\-answers | one\-answer );
|
||||||
transfer\-source ( \fIipv4_address\fR | * ) [ port ( \fIinteger\fR | * ) ] [
|
transfer\-source ( \fIipv4_address\fR | * ) [ port ( \fIinteger\fR | * ) ] [
|
||||||
@@ -845,10 +846,6 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
transfer\-source\-v6 ( \fIipv6_address\fR | * ) [ port ( \fIinteger\fR | * )
|
transfer\-source\-v6 ( \fIipv6_address\fR | * ) [ port ( \fIinteger\fR | * )
|
||||||
] [ dscp \fIinteger\fR ];
|
] [ dscp \fIinteger\fR ];
|
||||||
trust\-anchor\-telemetry \fIboolean\fR; // experimental
|
trust\-anchor\-telemetry \fIboolean\fR; // experimental
|
||||||
trust\-anchors { \fIstring\fR ( static\-key |
|
|
||||||
initial\-key | static\-ds | initial\-ds
|
|
||||||
) \fIinteger\fR \fIinteger\fR \fIinteger\fR
|
|
||||||
\fIquoted_string\fR; \&.\&.\&. };
|
|
||||||
trusted\-keys { \fIstring\fR
|
trusted\-keys { \fIstring\fR
|
||||||
\fIinteger\fR \fIinteger\fR
|
\fIinteger\fR \fIinteger\fR
|
||||||
\fIinteger\fR
|
\fIinteger\fR
|
||||||
@@ -893,7 +890,6 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
dnskey\-sig\-validity \fIinteger\fR;
|
dnskey\-sig\-validity \fIinteger\fR;
|
||||||
dnssec\-dnskey\-kskonly \fIboolean\fR;
|
dnssec\-dnskey\-kskonly \fIboolean\fR;
|
||||||
dnssec\-loadkeys\-interval \fIinteger\fR;
|
dnssec\-loadkeys\-interval \fIinteger\fR;
|
||||||
dnssec\-policy \fIstring\fR;
|
|
||||||
dnssec\-secure\-to\-insecure \fIboolean\fR;
|
dnssec\-secure\-to\-insecure \fIboolean\fR;
|
||||||
dnssec\-update\-mode ( maintain | no\-resign );
|
dnssec\-update\-mode ( maintain | no\-resign );
|
||||||
file \fIquoted_string\fR;
|
file \fIquoted_string\fR;
|
||||||
@@ -919,7 +915,7 @@ view \fIstring\fR [ \fIclass\fR ] {
|
|||||||
max\-transfer\-idle\-out \fIinteger\fR;
|
max\-transfer\-idle\-out \fIinteger\fR;
|
||||||
max\-transfer\-time\-in \fIinteger\fR;
|
max\-transfer\-time\-in \fIinteger\fR;
|
||||||
max\-transfer\-time\-out \fIinteger\fR;
|
max\-transfer\-time\-out \fIinteger\fR;
|
||||||
max\-zone\-ttl ( unlimited | \fIduration\fR );
|
max\-zone\-ttl ( unlimited | \fIttlval\fR );
|
||||||
min\-refresh\-time \fIinteger\fR;
|
min\-refresh\-time \fIinteger\fR;
|
||||||
min\-retry\-time \fIinteger\fR;
|
min\-retry\-time \fIinteger\fR;
|
||||||
multi\-master \fIboolean\fR;
|
multi\-master \fIboolean\fR;
|
||||||
@@ -1000,7 +996,6 @@ zone \fIstring\fR [ \fIclass\fR ] {
|
|||||||
dnskey\-sig\-validity \fIinteger\fR;
|
dnskey\-sig\-validity \fIinteger\fR;
|
||||||
dnssec\-dnskey\-kskonly \fIboolean\fR;
|
dnssec\-dnskey\-kskonly \fIboolean\fR;
|
||||||
dnssec\-loadkeys\-interval \fIinteger\fR;
|
dnssec\-loadkeys\-interval \fIinteger\fR;
|
||||||
dnssec\-policy \fIstring\fR;
|
|
||||||
dnssec\-secure\-to\-insecure \fIboolean\fR;
|
dnssec\-secure\-to\-insecure \fIboolean\fR;
|
||||||
dnssec\-update\-mode ( maintain | no\-resign );
|
dnssec\-update\-mode ( maintain | no\-resign );
|
||||||
file \fIquoted_string\fR;
|
file \fIquoted_string\fR;
|
||||||
@@ -1025,7 +1020,7 @@ zone \fIstring\fR [ \fIclass\fR ] {
|
|||||||
max\-transfer\-idle\-out \fIinteger\fR;
|
max\-transfer\-idle\-out \fIinteger\fR;
|
||||||
max\-transfer\-time\-in \fIinteger\fR;
|
max\-transfer\-time\-in \fIinteger\fR;
|
||||||
max\-transfer\-time\-out \fIinteger\fR;
|
max\-transfer\-time\-out \fIinteger\fR;
|
||||||
max\-zone\-ttl ( unlimited | \fIduration\fR );
|
max\-zone\-ttl ( unlimited | \fIttlval\fR );
|
||||||
min\-refresh\-time \fIinteger\fR;
|
min\-refresh\-time \fIinteger\fR;
|
||||||
min\-retry\-time \fIinteger\fR;
|
min\-retry\-time \fIinteger\fR;
|
||||||
multi\-master \fIboolean\fR;
|
multi\-master \fIboolean\fR;
|
||||||
@@ -1067,30 +1062,6 @@ zone \fIstring\fR [ \fIclass\fR ] {
|
|||||||
.if n \{\
|
.if n \{\
|
||||||
.RE
|
.RE
|
||||||
.\}
|
.\}
|
||||||
.SH "DNSSEC-POLICY"
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
dnssec\-policy \fIstring\fR {
|
|
||||||
dnskey\-ttl \fIduration\fR;
|
|
||||||
keys { ( csk | ksk | zsk ) key\-directory lifetime \fIduration\fR algorithm \fIinteger\fR [ \fIinteger\fR ] ; \&.\&.\&. };
|
|
||||||
parent\-ds\-ttl \fIduration\fR;
|
|
||||||
parent\-propagation\-delay \fIduration\fR;
|
|
||||||
parent\-registration\-delay \fIduration\fR;
|
|
||||||
publish\-safety \fIduration\fR;
|
|
||||||
retire\-safety \fIduration\fR;
|
|
||||||
signatures\-refresh \fIduration\fR;
|
|
||||||
signatures\-validity \fIduration\fR;
|
|
||||||
signatures\-validity\-dnskey \fIduration\fR;
|
|
||||||
zone\-max\-ttl \fIduration\fR;
|
|
||||||
zone\-propagation\-delay \fIduration\fR;
|
|
||||||
};
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SH "FILES"
|
.SH "FILES"
|
||||||
.PP
|
.PP
|
||||||
/etc/named\&.conf
|
/etc/named\&.conf
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:id="man.named.conf">
|
<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:id="man.named.conf">
|
||||||
<info>
|
<info>
|
||||||
<date>2019-08-12</date>
|
<date>2019-08-07</date>
|
||||||
</info>
|
</info>
|
||||||
<refentryinfo>
|
<refentryinfo>
|
||||||
<corpname>ISC</corpname>
|
<corpname>ISC</corpname>
|
||||||
@@ -49,7 +49,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
@@ -111,6 +110,14 @@ dlz <replaceable>string</replaceable> {
|
|||||||
</literallayout>
|
</literallayout>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
|
<refsection><info><title>DNSSEC-KEYS</title></info>
|
||||||
|
<literallayout class="normal">
|
||||||
|
dnssec-keys { <replaceable>string</replaceable> ( static-key |
|
||||||
|
initial-key ) <replaceable>integer</replaceable> <replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
||||||
|
<replaceable>quoted_string</replaceable>; ... };
|
||||||
|
</literallayout>
|
||||||
|
</refsection>
|
||||||
|
|
||||||
<refsection><info><title>DYNDB</title></info>
|
<refsection><info><title>DYNDB</title></info>
|
||||||
<literallayout class="normal">
|
<literallayout class="normal">
|
||||||
dyndb <replaceable>string</replaceable> <replaceable>quoted_string</replaceable> {
|
dyndb <replaceable>string</replaceable> <replaceable>quoted_string</replaceable> {
|
||||||
@@ -148,12 +155,12 @@ logging {
|
|||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection><info><title>MANAGED-KEYS</title></info>
|
<refsection><info><title>MANAGED-KEYS</title></info>
|
||||||
<para>Deprecated - see TRUST-ANCHORS.</para>
|
<para>Deprecated - see DNSSEC-KEYS.</para>
|
||||||
<literallayout class="normal">
|
<literallayout class="normal">
|
||||||
managed-keys { <replaceable>string</replaceable> ( static-key
|
managed-keys { <replaceable>string</replaceable> ( static-key
|
||||||
| initial-key | static-ds |
|
| initial-key ) <replaceable>integer</replaceable>
|
||||||
initial-ds ) <replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
<replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
||||||
<replaceable>integer</replaceable> <replaceable>quoted_string</replaceable>; ... }; deprecated
|
<replaceable>quoted_string</replaceable>; ... }; deprecated
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
@@ -201,7 +208,7 @@ options {
|
|||||||
[ dscp <replaceable>integer</replaceable> ] { ( <replaceable>masters</replaceable> | <replaceable>ipv4_address</replaceable> [ port
|
[ dscp <replaceable>integer</replaceable> ] { ( <replaceable>masters</replaceable> | <replaceable>ipv4_address</replaceable> [ port
|
||||||
<replaceable>integer</replaceable> ] | <replaceable>ipv6_address</replaceable> [ port <replaceable>integer</replaceable> ] ) [ key
|
<replaceable>integer</replaceable> ] | <replaceable>ipv6_address</replaceable> [ port <replaceable>integer</replaceable> ] ) [ key
|
||||||
<replaceable>string</replaceable> ]; ... } ] [ zone-directory <replaceable>quoted_string</replaceable> ] [
|
<replaceable>string</replaceable> ]; ... } ] [ zone-directory <replaceable>quoted_string</replaceable> ] [
|
||||||
in-memory <replaceable>boolean</replaceable> ] [ min-update-interval <replaceable>duration</replaceable> ]; ... };
|
in-memory <replaceable>boolean</replaceable> ] [ min-update-interval <replaceable>ttlval</replaceable> ]; ... };
|
||||||
check-dup-records ( fail | warn | ignore );
|
check-dup-records ( fail | warn | ignore );
|
||||||
check-integrity <replaceable>boolean</replaceable>;
|
check-integrity <replaceable>boolean</replaceable>;
|
||||||
check-mx ( fail | warn | ignore );
|
check-mx ( fail | warn | ignore );
|
||||||
@@ -283,18 +290,18 @@ options {
|
|||||||
fstrm-set-output-notify-threshold <replaceable>integer</replaceable>;
|
fstrm-set-output-notify-threshold <replaceable>integer</replaceable>;
|
||||||
fstrm-set-output-queue-model ( mpsc | spsc );
|
fstrm-set-output-queue-model ( mpsc | spsc );
|
||||||
fstrm-set-output-queue-size <replaceable>integer</replaceable>;
|
fstrm-set-output-queue-size <replaceable>integer</replaceable>;
|
||||||
fstrm-set-reopen-interval <replaceable>duration</replaceable>;
|
fstrm-set-reopen-interval <replaceable>ttlval</replaceable>;
|
||||||
geoip-directory ( <replaceable>quoted_string</replaceable> | none );
|
geoip-directory ( <replaceable>quoted_string</replaceable> | none );
|
||||||
glue-cache <replaceable>boolean</replaceable>;
|
glue-cache <replaceable>boolean</replaceable>;
|
||||||
heartbeat-interval <replaceable>integer</replaceable>;
|
heartbeat-interval <replaceable>integer</replaceable>;
|
||||||
hostname ( <replaceable>quoted_string</replaceable> | none );
|
hostname ( <replaceable>quoted_string</replaceable> | none );
|
||||||
inline-signing <replaceable>boolean</replaceable>;
|
inline-signing <replaceable>boolean</replaceable>;
|
||||||
interface-interval <replaceable>duration</replaceable>;
|
interface-interval <replaceable>ttlval</replaceable>;
|
||||||
ixfr-from-differences ( primary | master | secondary | slave |
|
ixfr-from-differences ( primary | master | secondary | slave |
|
||||||
<replaceable>boolean</replaceable> );
|
<replaceable>boolean</replaceable> );
|
||||||
keep-response-order { <replaceable>address_match_element</replaceable>; ... };
|
keep-response-order { <replaceable>address_match_element</replaceable>; ... };
|
||||||
key-directory <replaceable>quoted_string</replaceable>;
|
key-directory <replaceable>quoted_string</replaceable>;
|
||||||
lame-ttl <replaceable>duration</replaceable>;
|
lame-ttl <replaceable>ttlval</replaceable>;
|
||||||
listen-on [ port <replaceable>integer</replaceable> ] [ dscp
|
listen-on [ port <replaceable>integer</replaceable> ] [ dscp
|
||||||
<replaceable>integer</replaceable> ] {
|
<replaceable>integer</replaceable> ] {
|
||||||
<replaceable>address_match_element</replaceable>; ... };
|
<replaceable>address_match_element</replaceable>; ... };
|
||||||
@@ -308,28 +315,28 @@ options {
|
|||||||
masterfile-style ( full | relative );
|
masterfile-style ( full | relative );
|
||||||
match-mapped-addresses <replaceable>boolean</replaceable>;
|
match-mapped-addresses <replaceable>boolean</replaceable>;
|
||||||
max-cache-size ( default | unlimited | <replaceable>sizeval</replaceable> | <replaceable>percentage</replaceable> );
|
max-cache-size ( default | unlimited | <replaceable>sizeval</replaceable> | <replaceable>percentage</replaceable> );
|
||||||
max-cache-ttl <replaceable>duration</replaceable>;
|
max-cache-ttl <replaceable>ttlval</replaceable>;
|
||||||
max-clients-per-query <replaceable>integer</replaceable>;
|
max-clients-per-query <replaceable>integer</replaceable>;
|
||||||
max-journal-size ( default | unlimited | <replaceable>sizeval</replaceable> );
|
max-journal-size ( default | unlimited | <replaceable>sizeval</replaceable> );
|
||||||
max-ncache-ttl <replaceable>duration</replaceable>;
|
max-ncache-ttl <replaceable>ttlval</replaceable>;
|
||||||
max-records <replaceable>integer</replaceable>;
|
max-records <replaceable>integer</replaceable>;
|
||||||
max-recursion-depth <replaceable>integer</replaceable>;
|
max-recursion-depth <replaceable>integer</replaceable>;
|
||||||
max-recursion-queries <replaceable>integer</replaceable>;
|
max-recursion-queries <replaceable>integer</replaceable>;
|
||||||
max-refresh-time <replaceable>integer</replaceable>;
|
max-refresh-time <replaceable>integer</replaceable>;
|
||||||
max-retry-time <replaceable>integer</replaceable>;
|
max-retry-time <replaceable>integer</replaceable>;
|
||||||
max-rsa-exponent-size <replaceable>integer</replaceable>;
|
max-rsa-exponent-size <replaceable>integer</replaceable>;
|
||||||
max-stale-ttl <replaceable>duration</replaceable>;
|
max-stale-ttl <replaceable>ttlval</replaceable>;
|
||||||
max-transfer-idle-in <replaceable>integer</replaceable>;
|
max-transfer-idle-in <replaceable>integer</replaceable>;
|
||||||
max-transfer-idle-out <replaceable>integer</replaceable>;
|
max-transfer-idle-out <replaceable>integer</replaceable>;
|
||||||
max-transfer-time-in <replaceable>integer</replaceable>;
|
max-transfer-time-in <replaceable>integer</replaceable>;
|
||||||
max-transfer-time-out <replaceable>integer</replaceable>;
|
max-transfer-time-out <replaceable>integer</replaceable>;
|
||||||
max-udp-size <replaceable>integer</replaceable>;
|
max-udp-size <replaceable>integer</replaceable>;
|
||||||
max-zone-ttl ( unlimited | <replaceable>duration</replaceable> );
|
max-zone-ttl ( unlimited | <replaceable>ttlval</replaceable> );
|
||||||
memstatistics <replaceable>boolean</replaceable>;
|
memstatistics <replaceable>boolean</replaceable>;
|
||||||
memstatistics-file <replaceable>quoted_string</replaceable>;
|
memstatistics-file <replaceable>quoted_string</replaceable>;
|
||||||
message-compression <replaceable>boolean</replaceable>;
|
message-compression <replaceable>boolean</replaceable>;
|
||||||
min-cache-ttl <replaceable>duration</replaceable>;
|
min-cache-ttl <replaceable>ttlval</replaceable>;
|
||||||
min-ncache-ttl <replaceable>duration</replaceable>;
|
min-ncache-ttl <replaceable>ttlval</replaceable>;
|
||||||
min-refresh-time <replaceable>integer</replaceable>;
|
min-refresh-time <replaceable>integer</replaceable>;
|
||||||
min-retry-time <replaceable>integer</replaceable>;
|
min-retry-time <replaceable>integer</replaceable>;
|
||||||
minimal-any <replaceable>boolean</replaceable>;
|
minimal-any <replaceable>boolean</replaceable>;
|
||||||
@@ -346,8 +353,8 @@ options {
|
|||||||
notify-source-v6 ( <replaceable>ipv6_address</replaceable> | * ) [ port ( <replaceable>integer</replaceable> | * ) ]
|
notify-source-v6 ( <replaceable>ipv6_address</replaceable> | * ) [ port ( <replaceable>integer</replaceable> | * ) ]
|
||||||
[ dscp <replaceable>integer</replaceable> ];
|
[ dscp <replaceable>integer</replaceable> ];
|
||||||
notify-to-soa <replaceable>boolean</replaceable>;
|
notify-to-soa <replaceable>boolean</replaceable>;
|
||||||
nta-lifetime <replaceable>duration</replaceable>;
|
nta-lifetime <replaceable>ttlval</replaceable>;
|
||||||
nta-recheck <replaceable>duration</replaceable>;
|
nta-recheck <replaceable>ttlval</replaceable>;
|
||||||
nxdomain-redirect <replaceable>string</replaceable>;
|
nxdomain-redirect <replaceable>string</replaceable>;
|
||||||
pid-file ( <replaceable>quoted_string</replaceable> | none );
|
pid-file ( <replaceable>quoted_string</replaceable> | none );
|
||||||
port <replaceable>integer</replaceable>;
|
port <replaceable>integer</replaceable>;
|
||||||
@@ -394,13 +401,13 @@ options {
|
|||||||
response-padding { <replaceable>address_match_element</replaceable>; ... } block-size
|
response-padding { <replaceable>address_match_element</replaceable>; ... } block-size
|
||||||
<replaceable>integer</replaceable>;
|
<replaceable>integer</replaceable>;
|
||||||
response-policy { zone <replaceable>string</replaceable> [ add-soa <replaceable>boolean</replaceable> ] [ log
|
response-policy { zone <replaceable>string</replaceable> [ add-soa <replaceable>boolean</replaceable> ] [ log
|
||||||
<replaceable>boolean</replaceable> ] [ max-policy-ttl <replaceable>duration</replaceable> ] [ min-update-interval
|
<replaceable>boolean</replaceable> ] [ max-policy-ttl <replaceable>ttlval</replaceable> ] [ min-update-interval
|
||||||
<replaceable>duration</replaceable> ] [ policy ( cname | disabled | drop | given | no-op |
|
<replaceable>ttlval</replaceable> ] [ policy ( cname | disabled | drop | given | no-op |
|
||||||
nodata | nxdomain | passthru | tcp-only <replaceable>quoted_string</replaceable> ) ] [
|
nodata | nxdomain | passthru | tcp-only <replaceable>quoted_string</replaceable> ) ] [
|
||||||
recursive-only <replaceable>boolean</replaceable> ] [ nsip-enable <replaceable>boolean</replaceable> ] [
|
recursive-only <replaceable>boolean</replaceable> ] [ nsip-enable <replaceable>boolean</replaceable> ] [
|
||||||
nsdname-enable <replaceable>boolean</replaceable> ]; ... } [ add-soa <replaceable>boolean</replaceable> ] [
|
nsdname-enable <replaceable>boolean</replaceable> ]; ... } [ add-soa <replaceable>boolean</replaceable> ] [
|
||||||
break-dnssec <replaceable>boolean</replaceable> ] [ max-policy-ttl <replaceable>duration</replaceable> ] [
|
break-dnssec <replaceable>boolean</replaceable> ] [ max-policy-ttl <replaceable>ttlval</replaceable> ] [
|
||||||
min-update-interval <replaceable>duration</replaceable> ] [ min-ns-dots <replaceable>integer</replaceable> ] [
|
min-update-interval <replaceable>ttlval</replaceable> ] [ min-ns-dots <replaceable>integer</replaceable> ] [
|
||||||
nsip-wait-recurse <replaceable>boolean</replaceable> ] [ qname-wait-recurse <replaceable>boolean</replaceable> ]
|
nsip-wait-recurse <replaceable>boolean</replaceable> ] [ qname-wait-recurse <replaceable>boolean</replaceable> ]
|
||||||
[ recursive-only <replaceable>boolean</replaceable> ] [ nsip-enable <replaceable>boolean</replaceable> ] [
|
[ recursive-only <replaceable>boolean</replaceable> ] [ nsip-enable <replaceable>boolean</replaceable> ] [
|
||||||
nsdname-enable <replaceable>boolean</replaceable> ] [ dnsrps-enable <replaceable>boolean</replaceable> ] [
|
nsdname-enable <replaceable>boolean</replaceable> ] [ dnsrps-enable <replaceable>boolean</replaceable> ] [
|
||||||
@@ -414,7 +421,7 @@ options {
|
|||||||
serial-query-rate <replaceable>integer</replaceable>;
|
serial-query-rate <replaceable>integer</replaceable>;
|
||||||
serial-update-method ( date | increment | unixtime );
|
serial-update-method ( date | increment | unixtime );
|
||||||
server-id ( <replaceable>quoted_string</replaceable> | none | hostname );
|
server-id ( <replaceable>quoted_string</replaceable> | none | hostname );
|
||||||
servfail-ttl <replaceable>duration</replaceable>;
|
servfail-ttl <replaceable>ttlval</replaceable>;
|
||||||
session-keyalg <replaceable>string</replaceable>;
|
session-keyalg <replaceable>string</replaceable>;
|
||||||
session-keyfile ( <replaceable>quoted_string</replaceable> | none );
|
session-keyfile ( <replaceable>quoted_string</replaceable> | none );
|
||||||
session-keyname <replaceable>string</replaceable>;
|
session-keyname <replaceable>string</replaceable>;
|
||||||
@@ -425,7 +432,7 @@ options {
|
|||||||
sortlist { <replaceable>address_match_element</replaceable>; ... };
|
sortlist { <replaceable>address_match_element</replaceable>; ... };
|
||||||
stacksize ( default | unlimited | <replaceable>sizeval</replaceable> );
|
stacksize ( default | unlimited | <replaceable>sizeval</replaceable> );
|
||||||
stale-answer-enable <replaceable>boolean</replaceable>;
|
stale-answer-enable <replaceable>boolean</replaceable>;
|
||||||
stale-answer-ttl <replaceable>duration</replaceable>;
|
stale-answer-ttl <replaceable>ttlval</replaceable>;
|
||||||
startup-notify-rate <replaceable>integer</replaceable>;
|
startup-notify-rate <replaceable>integer</replaceable>;
|
||||||
statistics-file <replaceable>quoted_string</replaceable>;
|
statistics-file <replaceable>quoted_string</replaceable>;
|
||||||
synth-from-dnssec <replaceable>boolean</replaceable>;
|
synth-from-dnssec <replaceable>boolean</replaceable>;
|
||||||
@@ -519,17 +526,8 @@ statistics-channels {
|
|||||||
</literallayout>
|
</literallayout>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection><info><title>TRUST-ANCHORS</title></info>
|
|
||||||
<literallayout class="normal">
|
|
||||||
trust-anchors { <replaceable>string</replaceable> ( static-key |
|
|
||||||
initial-key | static-ds | initial-ds )
|
|
||||||
<replaceable>integer</replaceable> <replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
|
||||||
<replaceable>quoted_string</replaceable>; ... };
|
|
||||||
</literallayout>
|
|
||||||
</refsection>
|
|
||||||
|
|
||||||
<refsection><info><title>TRUSTED-KEYS</title></info>
|
<refsection><info><title>TRUSTED-KEYS</title></info>
|
||||||
<para>Deprecated - see TRUST-ANCHORS.</para>
|
<para>Deprecated - see DNSSEC-KEYS.</para>
|
||||||
<literallayout class="normal">
|
<literallayout class="normal">
|
||||||
trusted-keys { <replaceable>string</replaceable> <replaceable>integer</replaceable>
|
trusted-keys { <replaceable>string</replaceable> <replaceable>integer</replaceable>
|
||||||
<replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
<replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
||||||
@@ -566,7 +564,7 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
[ dscp <replaceable>integer</replaceable> ] { ( <replaceable>masters</replaceable> | <replaceable>ipv4_address</replaceable> [ port
|
[ dscp <replaceable>integer</replaceable> ] { ( <replaceable>masters</replaceable> | <replaceable>ipv4_address</replaceable> [ port
|
||||||
<replaceable>integer</replaceable> ] | <replaceable>ipv6_address</replaceable> [ port <replaceable>integer</replaceable> ] ) [ key
|
<replaceable>integer</replaceable> ] | <replaceable>ipv6_address</replaceable> [ port <replaceable>integer</replaceable> ] ) [ key
|
||||||
<replaceable>string</replaceable> ]; ... } ] [ zone-directory <replaceable>quoted_string</replaceable> ] [
|
<replaceable>string</replaceable> ]; ... } ] [ zone-directory <replaceable>quoted_string</replaceable> ] [
|
||||||
in-memory <replaceable>boolean</replaceable> ] [ min-update-interval <replaceable>duration</replaceable> ]; ... };
|
in-memory <replaceable>boolean</replaceable> ] [ min-update-interval <replaceable>ttlval</replaceable> ]; ... };
|
||||||
check-dup-records ( fail | warn | ignore );
|
check-dup-records ( fail | warn | ignore );
|
||||||
check-integrity <replaceable>boolean</replaceable>;
|
check-integrity <replaceable>boolean</replaceable>;
|
||||||
check-mx ( fail | warn | ignore );
|
check-mx ( fail | warn | ignore );
|
||||||
@@ -608,6 +606,9 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
dnsrps-options { <replaceable>unspecified-text</replaceable> };
|
dnsrps-options { <replaceable>unspecified-text</replaceable> };
|
||||||
dnssec-accept-expired <replaceable>boolean</replaceable>;
|
dnssec-accept-expired <replaceable>boolean</replaceable>;
|
||||||
dnssec-dnskey-kskonly <replaceable>boolean</replaceable>;
|
dnssec-dnskey-kskonly <replaceable>boolean</replaceable>;
|
||||||
|
dnssec-keys { <replaceable>string</replaceable> ( static-key |
|
||||||
|
initial-key ) <replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
||||||
|
<replaceable>integer</replaceable> <replaceable>quoted_string</replaceable>; ... };
|
||||||
dnssec-loadkeys-interval <replaceable>integer</replaceable>;
|
dnssec-loadkeys-interval <replaceable>integer</replaceable>;
|
||||||
dnssec-must-be-secure <replaceable>string</replaceable> <replaceable>boolean</replaceable>;
|
dnssec-must-be-secure <replaceable>string</replaceable> <replaceable>boolean</replaceable>;
|
||||||
dnssec-secure-to-insecure <replaceable>boolean</replaceable>;
|
dnssec-secure-to-insecure <replaceable>boolean</replaceable>;
|
||||||
@@ -641,11 +642,10 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
secret <replaceable>string</replaceable>;
|
secret <replaceable>string</replaceable>;
|
||||||
};
|
};
|
||||||
key-directory <replaceable>quoted_string</replaceable>;
|
key-directory <replaceable>quoted_string</replaceable>;
|
||||||
lame-ttl <replaceable>duration</replaceable>;
|
lame-ttl <replaceable>ttlval</replaceable>;
|
||||||
lmdb-mapsize <replaceable>sizeval</replaceable>;
|
lmdb-mapsize <replaceable>sizeval</replaceable>;
|
||||||
managed-keys { <replaceable>string</replaceable> (
|
managed-keys { <replaceable>string</replaceable> (
|
||||||
static-key | initial-key
|
static-key | initial-key
|
||||||
| static-ds | initial-ds
|
|
||||||
) <replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
) <replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
||||||
<replaceable>integer</replaceable>
|
<replaceable>integer</replaceable>
|
||||||
<replaceable>quoted_string</replaceable>; ... }; deprecated
|
<replaceable>quoted_string</replaceable>; ... }; deprecated
|
||||||
@@ -655,25 +655,25 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
match-destinations { <replaceable>address_match_element</replaceable>; ... };
|
match-destinations { <replaceable>address_match_element</replaceable>; ... };
|
||||||
match-recursive-only <replaceable>boolean</replaceable>;
|
match-recursive-only <replaceable>boolean</replaceable>;
|
||||||
max-cache-size ( default | unlimited | <replaceable>sizeval</replaceable> | <replaceable>percentage</replaceable> );
|
max-cache-size ( default | unlimited | <replaceable>sizeval</replaceable> | <replaceable>percentage</replaceable> );
|
||||||
max-cache-ttl <replaceable>duration</replaceable>;
|
max-cache-ttl <replaceable>ttlval</replaceable>;
|
||||||
max-clients-per-query <replaceable>integer</replaceable>;
|
max-clients-per-query <replaceable>integer</replaceable>;
|
||||||
max-journal-size ( default | unlimited | <replaceable>sizeval</replaceable> );
|
max-journal-size ( default | unlimited | <replaceable>sizeval</replaceable> );
|
||||||
max-ncache-ttl <replaceable>duration</replaceable>;
|
max-ncache-ttl <replaceable>ttlval</replaceable>;
|
||||||
max-records <replaceable>integer</replaceable>;
|
max-records <replaceable>integer</replaceable>;
|
||||||
max-recursion-depth <replaceable>integer</replaceable>;
|
max-recursion-depth <replaceable>integer</replaceable>;
|
||||||
max-recursion-queries <replaceable>integer</replaceable>;
|
max-recursion-queries <replaceable>integer</replaceable>;
|
||||||
max-refresh-time <replaceable>integer</replaceable>;
|
max-refresh-time <replaceable>integer</replaceable>;
|
||||||
max-retry-time <replaceable>integer</replaceable>;
|
max-retry-time <replaceable>integer</replaceable>;
|
||||||
max-stale-ttl <replaceable>duration</replaceable>;
|
max-stale-ttl <replaceable>ttlval</replaceable>;
|
||||||
max-transfer-idle-in <replaceable>integer</replaceable>;
|
max-transfer-idle-in <replaceable>integer</replaceable>;
|
||||||
max-transfer-idle-out <replaceable>integer</replaceable>;
|
max-transfer-idle-out <replaceable>integer</replaceable>;
|
||||||
max-transfer-time-in <replaceable>integer</replaceable>;
|
max-transfer-time-in <replaceable>integer</replaceable>;
|
||||||
max-transfer-time-out <replaceable>integer</replaceable>;
|
max-transfer-time-out <replaceable>integer</replaceable>;
|
||||||
max-udp-size <replaceable>integer</replaceable>;
|
max-udp-size <replaceable>integer</replaceable>;
|
||||||
max-zone-ttl ( unlimited | <replaceable>duration</replaceable> );
|
max-zone-ttl ( unlimited | <replaceable>ttlval</replaceable> );
|
||||||
message-compression <replaceable>boolean</replaceable>;
|
message-compression <replaceable>boolean</replaceable>;
|
||||||
min-cache-ttl <replaceable>duration</replaceable>;
|
min-cache-ttl <replaceable>ttlval</replaceable>;
|
||||||
min-ncache-ttl <replaceable>duration</replaceable>;
|
min-ncache-ttl <replaceable>ttlval</replaceable>;
|
||||||
min-refresh-time <replaceable>integer</replaceable>;
|
min-refresh-time <replaceable>integer</replaceable>;
|
||||||
min-retry-time <replaceable>integer</replaceable>;
|
min-retry-time <replaceable>integer</replaceable>;
|
||||||
minimal-any <replaceable>boolean</replaceable>;
|
minimal-any <replaceable>boolean</replaceable>;
|
||||||
@@ -689,8 +689,8 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
notify-source-v6 ( <replaceable>ipv6_address</replaceable> | * ) [ port ( <replaceable>integer</replaceable> | * ) ]
|
notify-source-v6 ( <replaceable>ipv6_address</replaceable> | * ) [ port ( <replaceable>integer</replaceable> | * ) ]
|
||||||
[ dscp <replaceable>integer</replaceable> ];
|
[ dscp <replaceable>integer</replaceable> ];
|
||||||
notify-to-soa <replaceable>boolean</replaceable>;
|
notify-to-soa <replaceable>boolean</replaceable>;
|
||||||
nta-lifetime <replaceable>duration</replaceable>;
|
nta-lifetime <replaceable>ttlval</replaceable>;
|
||||||
nta-recheck <replaceable>duration</replaceable>;
|
nta-recheck <replaceable>ttlval</replaceable>;
|
||||||
nxdomain-redirect <replaceable>string</replaceable>;
|
nxdomain-redirect <replaceable>string</replaceable>;
|
||||||
plugin ( query ) <replaceable>string</replaceable> [ {
|
plugin ( query ) <replaceable>string</replaceable> [ {
|
||||||
<replaceable>unspecified-text</replaceable> } ];
|
<replaceable>unspecified-text</replaceable> } ];
|
||||||
@@ -732,13 +732,13 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
response-padding { <replaceable>address_match_element</replaceable>; ... } block-size
|
response-padding { <replaceable>address_match_element</replaceable>; ... } block-size
|
||||||
<replaceable>integer</replaceable>;
|
<replaceable>integer</replaceable>;
|
||||||
response-policy { zone <replaceable>string</replaceable> [ add-soa <replaceable>boolean</replaceable> ] [ log
|
response-policy { zone <replaceable>string</replaceable> [ add-soa <replaceable>boolean</replaceable> ] [ log
|
||||||
<replaceable>boolean</replaceable> ] [ max-policy-ttl <replaceable>duration</replaceable> ] [ min-update-interval
|
<replaceable>boolean</replaceable> ] [ max-policy-ttl <replaceable>ttlval</replaceable> ] [ min-update-interval
|
||||||
<replaceable>duration</replaceable> ] [ policy ( cname | disabled | drop | given | no-op |
|
<replaceable>ttlval</replaceable> ] [ policy ( cname | disabled | drop | given | no-op |
|
||||||
nodata | nxdomain | passthru | tcp-only <replaceable>quoted_string</replaceable> ) ] [
|
nodata | nxdomain | passthru | tcp-only <replaceable>quoted_string</replaceable> ) ] [
|
||||||
recursive-only <replaceable>boolean</replaceable> ] [ nsip-enable <replaceable>boolean</replaceable> ] [
|
recursive-only <replaceable>boolean</replaceable> ] [ nsip-enable <replaceable>boolean</replaceable> ] [
|
||||||
nsdname-enable <replaceable>boolean</replaceable> ]; ... } [ add-soa <replaceable>boolean</replaceable> ] [
|
nsdname-enable <replaceable>boolean</replaceable> ]; ... } [ add-soa <replaceable>boolean</replaceable> ] [
|
||||||
break-dnssec <replaceable>boolean</replaceable> ] [ max-policy-ttl <replaceable>duration</replaceable> ] [
|
break-dnssec <replaceable>boolean</replaceable> ] [ max-policy-ttl <replaceable>ttlval</replaceable> ] [
|
||||||
min-update-interval <replaceable>duration</replaceable> ] [ min-ns-dots <replaceable>integer</replaceable> ] [
|
min-update-interval <replaceable>ttlval</replaceable> ] [ min-ns-dots <replaceable>integer</replaceable> ] [
|
||||||
nsip-wait-recurse <replaceable>boolean</replaceable> ] [ qname-wait-recurse <replaceable>boolean</replaceable> ]
|
nsip-wait-recurse <replaceable>boolean</replaceable> ] [ qname-wait-recurse <replaceable>boolean</replaceable> ]
|
||||||
[ recursive-only <replaceable>boolean</replaceable> ] [ nsip-enable <replaceable>boolean</replaceable> ] [
|
[ recursive-only <replaceable>boolean</replaceable> ] [ nsip-enable <replaceable>boolean</replaceable> ] [
|
||||||
nsdname-enable <replaceable>boolean</replaceable> ] [ dnsrps-enable <replaceable>boolean</replaceable> ] [
|
nsdname-enable <replaceable>boolean</replaceable> ] [ dnsrps-enable <replaceable>boolean</replaceable> ] [
|
||||||
@@ -783,14 +783,14 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
<replaceable>integer</replaceable> | * ) ] [ dscp <replaceable>integer</replaceable> ];
|
<replaceable>integer</replaceable> | * ) ] [ dscp <replaceable>integer</replaceable> ];
|
||||||
transfers <replaceable>integer</replaceable>;
|
transfers <replaceable>integer</replaceable>;
|
||||||
};
|
};
|
||||||
servfail-ttl <replaceable>duration</replaceable>;
|
servfail-ttl <replaceable>ttlval</replaceable>;
|
||||||
sig-signing-nodes <replaceable>integer</replaceable>;
|
sig-signing-nodes <replaceable>integer</replaceable>;
|
||||||
sig-signing-signatures <replaceable>integer</replaceable>;
|
sig-signing-signatures <replaceable>integer</replaceable>;
|
||||||
sig-signing-type <replaceable>integer</replaceable>;
|
sig-signing-type <replaceable>integer</replaceable>;
|
||||||
sig-validity-interval <replaceable>integer</replaceable> [ <replaceable>integer</replaceable> ];
|
sig-validity-interval <replaceable>integer</replaceable> [ <replaceable>integer</replaceable> ];
|
||||||
sortlist { <replaceable>address_match_element</replaceable>; ... };
|
sortlist { <replaceable>address_match_element</replaceable>; ... };
|
||||||
stale-answer-enable <replaceable>boolean</replaceable>;
|
stale-answer-enable <replaceable>boolean</replaceable>;
|
||||||
stale-answer-ttl <replaceable>duration</replaceable>;
|
stale-answer-ttl <replaceable>ttlval</replaceable>;
|
||||||
synth-from-dnssec <replaceable>boolean</replaceable>;
|
synth-from-dnssec <replaceable>boolean</replaceable>;
|
||||||
transfer-format ( many-answers | one-answer );
|
transfer-format ( many-answers | one-answer );
|
||||||
transfer-source ( <replaceable>ipv4_address</replaceable> | * ) [ port ( <replaceable>integer</replaceable> | * ) ] [
|
transfer-source ( <replaceable>ipv4_address</replaceable> | * ) [ port ( <replaceable>integer</replaceable> | * ) ] [
|
||||||
@@ -798,10 +798,6 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
transfer-source-v6 ( <replaceable>ipv6_address</replaceable> | * ) [ port ( <replaceable>integer</replaceable> | * )
|
transfer-source-v6 ( <replaceable>ipv6_address</replaceable> | * ) [ port ( <replaceable>integer</replaceable> | * )
|
||||||
] [ dscp <replaceable>integer</replaceable> ];
|
] [ dscp <replaceable>integer</replaceable> ];
|
||||||
trust-anchor-telemetry <replaceable>boolean</replaceable>; // experimental
|
trust-anchor-telemetry <replaceable>boolean</replaceable>; // experimental
|
||||||
trust-anchors { <replaceable>string</replaceable> ( static-key |
|
|
||||||
initial-key | static-ds | initial-ds
|
|
||||||
) <replaceable>integer</replaceable> <replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
|
||||||
<replaceable>quoted_string</replaceable>; ... };
|
|
||||||
trusted-keys { <replaceable>string</replaceable>
|
trusted-keys { <replaceable>string</replaceable>
|
||||||
<replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
<replaceable>integer</replaceable> <replaceable>integer</replaceable>
|
||||||
<replaceable>integer</replaceable>
|
<replaceable>integer</replaceable>
|
||||||
@@ -846,7 +842,6 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
dnskey-sig-validity <replaceable>integer</replaceable>;
|
dnskey-sig-validity <replaceable>integer</replaceable>;
|
||||||
dnssec-dnskey-kskonly <replaceable>boolean</replaceable>;
|
dnssec-dnskey-kskonly <replaceable>boolean</replaceable>;
|
||||||
dnssec-loadkeys-interval <replaceable>integer</replaceable>;
|
dnssec-loadkeys-interval <replaceable>integer</replaceable>;
|
||||||
dnssec-policy <replaceable>string</replaceable>;
|
|
||||||
dnssec-secure-to-insecure <replaceable>boolean</replaceable>;
|
dnssec-secure-to-insecure <replaceable>boolean</replaceable>;
|
||||||
dnssec-update-mode ( maintain | no-resign );
|
dnssec-update-mode ( maintain | no-resign );
|
||||||
file <replaceable>quoted_string</replaceable>;
|
file <replaceable>quoted_string</replaceable>;
|
||||||
@@ -872,7 +867,7 @@ view <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
max-transfer-idle-out <replaceable>integer</replaceable>;
|
max-transfer-idle-out <replaceable>integer</replaceable>;
|
||||||
max-transfer-time-in <replaceable>integer</replaceable>;
|
max-transfer-time-in <replaceable>integer</replaceable>;
|
||||||
max-transfer-time-out <replaceable>integer</replaceable>;
|
max-transfer-time-out <replaceable>integer</replaceable>;
|
||||||
max-zone-ttl ( unlimited | <replaceable>duration</replaceable> );
|
max-zone-ttl ( unlimited | <replaceable>ttlval</replaceable> );
|
||||||
min-refresh-time <replaceable>integer</replaceable>;
|
min-refresh-time <replaceable>integer</replaceable>;
|
||||||
min-retry-time <replaceable>integer</replaceable>;
|
min-retry-time <replaceable>integer</replaceable>;
|
||||||
multi-master <replaceable>boolean</replaceable>;
|
multi-master <replaceable>boolean</replaceable>;
|
||||||
@@ -948,7 +943,6 @@ zone <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
dnskey-sig-validity <replaceable>integer</replaceable>;
|
dnskey-sig-validity <replaceable>integer</replaceable>;
|
||||||
dnssec-dnskey-kskonly <replaceable>boolean</replaceable>;
|
dnssec-dnskey-kskonly <replaceable>boolean</replaceable>;
|
||||||
dnssec-loadkeys-interval <replaceable>integer</replaceable>;
|
dnssec-loadkeys-interval <replaceable>integer</replaceable>;
|
||||||
dnssec-policy <replaceable>string</replaceable>;
|
|
||||||
dnssec-secure-to-insecure <replaceable>boolean</replaceable>;
|
dnssec-secure-to-insecure <replaceable>boolean</replaceable>;
|
||||||
dnssec-update-mode ( maintain | no-resign );
|
dnssec-update-mode ( maintain | no-resign );
|
||||||
file <replaceable>quoted_string</replaceable>;
|
file <replaceable>quoted_string</replaceable>;
|
||||||
@@ -973,7 +967,7 @@ zone <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
max-transfer-idle-out <replaceable>integer</replaceable>;
|
max-transfer-idle-out <replaceable>integer</replaceable>;
|
||||||
max-transfer-time-in <replaceable>integer</replaceable>;
|
max-transfer-time-in <replaceable>integer</replaceable>;
|
||||||
max-transfer-time-out <replaceable>integer</replaceable>;
|
max-transfer-time-out <replaceable>integer</replaceable>;
|
||||||
max-zone-ttl ( unlimited | <replaceable>duration</replaceable> );
|
max-zone-ttl ( unlimited | <replaceable>ttlval</replaceable> );
|
||||||
min-refresh-time <replaceable>integer</replaceable>;
|
min-refresh-time <replaceable>integer</replaceable>;
|
||||||
min-retry-time <replaceable>integer</replaceable>;
|
min-retry-time <replaceable>integer</replaceable>;
|
||||||
multi-master <replaceable>boolean</replaceable>;
|
multi-master <replaceable>boolean</replaceable>;
|
||||||
@@ -1014,26 +1008,6 @@ zone <replaceable>string</replaceable> [ <replaceable>class</replaceable> ] {
|
|||||||
</literallayout>
|
</literallayout>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection><info><title>DNSSEC-POLICY</title></info>
|
|
||||||
|
|
||||||
<literallayout class="normal">
|
|
||||||
dnssec-policy <replaceable>string</replaceable> {
|
|
||||||
dnskey-ttl <replaceable>duration</replaceable>;
|
|
||||||
keys { ( csk | ksk | zsk ) key-directory lifetime <replaceable>duration</replaceable> algorithm <replaceable>integer</replaceable> [ <replaceable>integer</replaceable> ] ; ... };
|
|
||||||
parent-ds-ttl <replaceable>duration</replaceable>;
|
|
||||||
parent-propagation-delay <replaceable>duration</replaceable>;
|
|
||||||
parent-registration-delay <replaceable>duration</replaceable>;
|
|
||||||
publish-safety <replaceable>duration</replaceable>;
|
|
||||||
retire-safety <replaceable>duration</replaceable>;
|
|
||||||
signatures-refresh <replaceable>duration</replaceable>;
|
|
||||||
signatures-validity <replaceable>duration</replaceable>;
|
|
||||||
signatures-validity-dnskey <replaceable>duration</replaceable>;
|
|
||||||
zone-max-ttl <replaceable>duration</replaceable>;
|
|
||||||
zone-propagation-delay <replaceable>duration</replaceable>;
|
|
||||||
};
|
|
||||||
</literallayout>
|
|
||||||
</refsection>
|
|
||||||
|
|
||||||
<refsection><info><title>FILES</title></info>
|
<refsection><info><title>FILES</title></info>
|
||||||
|
|
||||||
<para><filename>/etc/named.conf</filename>
|
<para><filename>/etc/named.conf</filename>
|
||||||
|
|||||||
+64
-90
@@ -92,7 +92,16 @@ dlz
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.11"></a><h2>DYNDB</h2>
|
<a name="id-1.11"></a><h2>DNSSEC-KEYS</h2>
|
||||||
|
<div class="literallayout"><p><br>
|
||||||
|
dnssec-keys { <em class="replaceable"><code>string</code></em> ( static-key |<br>
|
||||||
|
initial-key ) <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
||||||
|
<em class="replaceable"><code>quoted_string</code></em>; ... };<br>
|
||||||
|
</p></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="refsection">
|
||||||
|
<a name="id-1.12"></a><h2>DYNDB</h2>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
dyndb <em class="replaceable"><code>string</code></em> <em class="replaceable"><code>quoted_string</code></em> {<br>
|
dyndb <em class="replaceable"><code>string</code></em> <em class="replaceable"><code>quoted_string</code></em> {<br>
|
||||||
<em class="replaceable"><code>unspecified-text</code></em> };<br>
|
<em class="replaceable"><code>unspecified-text</code></em> };<br>
|
||||||
@@ -100,7 +109,7 @@ dyndb
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.12"></a><h2>KEY</h2>
|
<a name="id-1.13"></a><h2>KEY</h2>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
key <em class="replaceable"><code>string</code></em> {<br>
|
key <em class="replaceable"><code>string</code></em> {<br>
|
||||||
algorithm <em class="replaceable"><code>string</code></em>;<br>
|
algorithm <em class="replaceable"><code>string</code></em>;<br>
|
||||||
@@ -110,7 +119,7 @@ key
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.13"></a><h2>LOGGING</h2>
|
<a name="id-1.14"></a><h2>LOGGING</h2>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
logging {<br>
|
logging {<br>
|
||||||
category <em class="replaceable"><code>string</code></em> { <em class="replaceable"><code>string</code></em>; ... };<br>
|
category <em class="replaceable"><code>string</code></em> { <em class="replaceable"><code>string</code></em>; ... };<br>
|
||||||
@@ -131,18 +140,18 @@ logging
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.14"></a><h2>MANAGED-KEYS</h2>
|
<a name="id-1.15"></a><h2>MANAGED-KEYS</h2>
|
||||||
<p>Deprecated - see TRUST-ANCHORS.</p>
|
<p>Deprecated - see DNSSEC-KEYS.</p>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
managed-keys { <em class="replaceable"><code>string</code></em> ( static-key<br>
|
managed-keys { <em class="replaceable"><code>string</code></em> ( static-key<br>
|
||||||
| initial-key | static-ds |<br>
|
| initial-key ) <em class="replaceable"><code>integer</code></em><br>
|
||||||
initial-ds ) <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
<em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
||||||
<em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>quoted_string</code></em>; ... }; deprecated<br>
|
<em class="replaceable"><code>quoted_string</code></em>; ... }; deprecated<br>
|
||||||
</p></div>
|
</p></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.15"></a><h2>MASTERS</h2>
|
<a name="id-1.16"></a><h2>MASTERS</h2>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
masters <em class="replaceable"><code>string</code></em> [ port <em class="replaceable"><code>integer</code></em> ] [ dscp<br>
|
masters <em class="replaceable"><code>string</code></em> [ port <em class="replaceable"><code>integer</code></em> ] [ dscp<br>
|
||||||
<em class="replaceable"><code>integer</code></em> ] { ( <em class="replaceable"><code>masters</code></em> | <em class="replaceable"><code>ipv4_address</code></em> [<br>
|
<em class="replaceable"><code>integer</code></em> ] { ( <em class="replaceable"><code>masters</code></em> | <em class="replaceable"><code>ipv4_address</code></em> [<br>
|
||||||
@@ -152,7 +161,7 @@ masters
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.16"></a><h2>OPTIONS</h2>
|
<a name="id-1.17"></a><h2>OPTIONS</h2>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
options {<br>
|
options {<br>
|
||||||
allow-new-zones <em class="replaceable"><code>boolean</code></em>;<br>
|
allow-new-zones <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
@@ -187,7 +196,7 @@ options
|
|||||||
[ dscp <em class="replaceable"><code>integer</code></em> ] { ( <em class="replaceable"><code>masters</code></em> | <em class="replaceable"><code>ipv4_address</code></em> [ port<br>
|
[ dscp <em class="replaceable"><code>integer</code></em> ] { ( <em class="replaceable"><code>masters</code></em> | <em class="replaceable"><code>ipv4_address</code></em> [ port<br>
|
||||||
<em class="replaceable"><code>integer</code></em> ] | <em class="replaceable"><code>ipv6_address</code></em> [ port <em class="replaceable"><code>integer</code></em> ] ) [ key<br>
|
<em class="replaceable"><code>integer</code></em> ] | <em class="replaceable"><code>ipv6_address</code></em> [ port <em class="replaceable"><code>integer</code></em> ] ) [ key<br>
|
||||||
<em class="replaceable"><code>string</code></em> ]; ... } ] [ zone-directory <em class="replaceable"><code>quoted_string</code></em> ] [<br>
|
<em class="replaceable"><code>string</code></em> ]; ... } ] [ zone-directory <em class="replaceable"><code>quoted_string</code></em> ] [<br>
|
||||||
in-memory <em class="replaceable"><code>boolean</code></em> ] [ min-update-interval <em class="replaceable"><code>duration</code></em> ]; ... };<br>
|
in-memory <em class="replaceable"><code>boolean</code></em> ] [ min-update-interval <em class="replaceable"><code>ttlval</code></em> ]; ... };<br>
|
||||||
check-dup-records ( fail | warn | ignore );<br>
|
check-dup-records ( fail | warn | ignore );<br>
|
||||||
check-integrity <em class="replaceable"><code>boolean</code></em>;<br>
|
check-integrity <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
check-mx ( fail | warn | ignore );<br>
|
check-mx ( fail | warn | ignore );<br>
|
||||||
@@ -269,18 +278,18 @@ options
|
|||||||
fstrm-set-output-notify-threshold <em class="replaceable"><code>integer</code></em>;<br>
|
fstrm-set-output-notify-threshold <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
fstrm-set-output-queue-model ( mpsc | spsc );<br>
|
fstrm-set-output-queue-model ( mpsc | spsc );<br>
|
||||||
fstrm-set-output-queue-size <em class="replaceable"><code>integer</code></em>;<br>
|
fstrm-set-output-queue-size <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
fstrm-set-reopen-interval <em class="replaceable"><code>duration</code></em>;<br>
|
fstrm-set-reopen-interval <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
geoip-directory ( <em class="replaceable"><code>quoted_string</code></em> | none );<br>
|
geoip-directory ( <em class="replaceable"><code>quoted_string</code></em> | none );<br>
|
||||||
glue-cache <em class="replaceable"><code>boolean</code></em>;<br>
|
glue-cache <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
heartbeat-interval <em class="replaceable"><code>integer</code></em>;<br>
|
heartbeat-interval <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
hostname ( <em class="replaceable"><code>quoted_string</code></em> | none );<br>
|
hostname ( <em class="replaceable"><code>quoted_string</code></em> | none );<br>
|
||||||
inline-signing <em class="replaceable"><code>boolean</code></em>;<br>
|
inline-signing <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
interface-interval <em class="replaceable"><code>duration</code></em>;<br>
|
interface-interval <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
ixfr-from-differences ( primary | master | secondary | slave |<br>
|
ixfr-from-differences ( primary | master | secondary | slave |<br>
|
||||||
<em class="replaceable"><code>boolean</code></em> );<br>
|
<em class="replaceable"><code>boolean</code></em> );<br>
|
||||||
keep-response-order { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
keep-response-order { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
||||||
key-directory <em class="replaceable"><code>quoted_string</code></em>;<br>
|
key-directory <em class="replaceable"><code>quoted_string</code></em>;<br>
|
||||||
lame-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
lame-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
listen-on [ port <em class="replaceable"><code>integer</code></em> ] [ dscp<br>
|
listen-on [ port <em class="replaceable"><code>integer</code></em> ] [ dscp<br>
|
||||||
<em class="replaceable"><code>integer</code></em> ] {<br>
|
<em class="replaceable"><code>integer</code></em> ] {<br>
|
||||||
<em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
<em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
||||||
@@ -294,28 +303,28 @@ options
|
|||||||
masterfile-style ( full | relative );<br>
|
masterfile-style ( full | relative );<br>
|
||||||
match-mapped-addresses <em class="replaceable"><code>boolean</code></em>;<br>
|
match-mapped-addresses <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
max-cache-size ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> | <em class="replaceable"><code>percentage</code></em> );<br>
|
max-cache-size ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> | <em class="replaceable"><code>percentage</code></em> );<br>
|
||||||
max-cache-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
max-cache-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
max-clients-per-query <em class="replaceable"><code>integer</code></em>;<br>
|
max-clients-per-query <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-journal-size ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> );<br>
|
max-journal-size ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> );<br>
|
||||||
max-ncache-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
max-ncache-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
max-records <em class="replaceable"><code>integer</code></em>;<br>
|
max-records <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-recursion-depth <em class="replaceable"><code>integer</code></em>;<br>
|
max-recursion-depth <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-recursion-queries <em class="replaceable"><code>integer</code></em>;<br>
|
max-recursion-queries <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
max-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
max-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-rsa-exponent-size <em class="replaceable"><code>integer</code></em>;<br>
|
max-rsa-exponent-size <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-stale-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
max-stale-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
max-transfer-idle-in <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-idle-in <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-idle-out <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-idle-out <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-time-in <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-time-in <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-time-out <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-time-out <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-udp-size <em class="replaceable"><code>integer</code></em>;<br>
|
max-udp-size <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-zone-ttl ( unlimited | <em class="replaceable"><code>duration</code></em> );<br>
|
max-zone-ttl ( unlimited | <em class="replaceable"><code>ttlval</code></em> );<br>
|
||||||
memstatistics <em class="replaceable"><code>boolean</code></em>;<br>
|
memstatistics <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
memstatistics-file <em class="replaceable"><code>quoted_string</code></em>;<br>
|
memstatistics-file <em class="replaceable"><code>quoted_string</code></em>;<br>
|
||||||
message-compression <em class="replaceable"><code>boolean</code></em>;<br>
|
message-compression <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
min-cache-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
min-cache-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
min-ncache-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
min-ncache-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
min-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
min-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
min-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
min-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
minimal-any <em class="replaceable"><code>boolean</code></em>;<br>
|
minimal-any <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
@@ -332,8 +341,8 @@ options
|
|||||||
notify-source-v6 ( <em class="replaceable"><code>ipv6_address</code></em> | * ) [ port ( <em class="replaceable"><code>integer</code></em> | * ) ]<br>
|
notify-source-v6 ( <em class="replaceable"><code>ipv6_address</code></em> | * ) [ port ( <em class="replaceable"><code>integer</code></em> | * ) ]<br>
|
||||||
[ dscp <em class="replaceable"><code>integer</code></em> ];<br>
|
[ dscp <em class="replaceable"><code>integer</code></em> ];<br>
|
||||||
notify-to-soa <em class="replaceable"><code>boolean</code></em>;<br>
|
notify-to-soa <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
nta-lifetime <em class="replaceable"><code>duration</code></em>;<br>
|
nta-lifetime <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
nta-recheck <em class="replaceable"><code>duration</code></em>;<br>
|
nta-recheck <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
nxdomain-redirect <em class="replaceable"><code>string</code></em>;<br>
|
nxdomain-redirect <em class="replaceable"><code>string</code></em>;<br>
|
||||||
pid-file ( <em class="replaceable"><code>quoted_string</code></em> | none );<br>
|
pid-file ( <em class="replaceable"><code>quoted_string</code></em> | none );<br>
|
||||||
port <em class="replaceable"><code>integer</code></em>;<br>
|
port <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
@@ -380,13 +389,13 @@ options
|
|||||||
response-padding { <em class="replaceable"><code>address_match_element</code></em>; ... } block-size<br>
|
response-padding { <em class="replaceable"><code>address_match_element</code></em>; ... } block-size<br>
|
||||||
<em class="replaceable"><code>integer</code></em>;<br>
|
<em class="replaceable"><code>integer</code></em>;<br>
|
||||||
response-policy { zone <em class="replaceable"><code>string</code></em> [ add-soa <em class="replaceable"><code>boolean</code></em> ] [ log<br>
|
response-policy { zone <em class="replaceable"><code>string</code></em> [ add-soa <em class="replaceable"><code>boolean</code></em> ] [ log<br>
|
||||||
<em class="replaceable"><code>boolean</code></em> ] [ max-policy-ttl <em class="replaceable"><code>duration</code></em> ] [ min-update-interval<br>
|
<em class="replaceable"><code>boolean</code></em> ] [ max-policy-ttl <em class="replaceable"><code>ttlval</code></em> ] [ min-update-interval<br>
|
||||||
<em class="replaceable"><code>duration</code></em> ] [ policy ( cname | disabled | drop | given | no-op |<br>
|
<em class="replaceable"><code>ttlval</code></em> ] [ policy ( cname | disabled | drop | given | no-op |<br>
|
||||||
nodata | nxdomain | passthru | tcp-only <em class="replaceable"><code>quoted_string</code></em> ) ] [<br>
|
nodata | nxdomain | passthru | tcp-only <em class="replaceable"><code>quoted_string</code></em> ) ] [<br>
|
||||||
recursive-only <em class="replaceable"><code>boolean</code></em> ] [ nsip-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
recursive-only <em class="replaceable"><code>boolean</code></em> ] [ nsip-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
||||||
nsdname-enable <em class="replaceable"><code>boolean</code></em> ]; ... } [ add-soa <em class="replaceable"><code>boolean</code></em> ] [<br>
|
nsdname-enable <em class="replaceable"><code>boolean</code></em> ]; ... } [ add-soa <em class="replaceable"><code>boolean</code></em> ] [<br>
|
||||||
break-dnssec <em class="replaceable"><code>boolean</code></em> ] [ max-policy-ttl <em class="replaceable"><code>duration</code></em> ] [<br>
|
break-dnssec <em class="replaceable"><code>boolean</code></em> ] [ max-policy-ttl <em class="replaceable"><code>ttlval</code></em> ] [<br>
|
||||||
min-update-interval <em class="replaceable"><code>duration</code></em> ] [ min-ns-dots <em class="replaceable"><code>integer</code></em> ] [<br>
|
min-update-interval <em class="replaceable"><code>ttlval</code></em> ] [ min-ns-dots <em class="replaceable"><code>integer</code></em> ] [<br>
|
||||||
nsip-wait-recurse <em class="replaceable"><code>boolean</code></em> ] [ qname-wait-recurse <em class="replaceable"><code>boolean</code></em> ]<br>
|
nsip-wait-recurse <em class="replaceable"><code>boolean</code></em> ] [ qname-wait-recurse <em class="replaceable"><code>boolean</code></em> ]<br>
|
||||||
[ recursive-only <em class="replaceable"><code>boolean</code></em> ] [ nsip-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
[ recursive-only <em class="replaceable"><code>boolean</code></em> ] [ nsip-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
||||||
nsdname-enable <em class="replaceable"><code>boolean</code></em> ] [ dnsrps-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
nsdname-enable <em class="replaceable"><code>boolean</code></em> ] [ dnsrps-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
||||||
@@ -400,7 +409,7 @@ options
|
|||||||
serial-query-rate <em class="replaceable"><code>integer</code></em>;<br>
|
serial-query-rate <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
serial-update-method ( date | increment | unixtime );<br>
|
serial-update-method ( date | increment | unixtime );<br>
|
||||||
server-id ( <em class="replaceable"><code>quoted_string</code></em> | none | hostname );<br>
|
server-id ( <em class="replaceable"><code>quoted_string</code></em> | none | hostname );<br>
|
||||||
servfail-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
servfail-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
session-keyalg <em class="replaceable"><code>string</code></em>;<br>
|
session-keyalg <em class="replaceable"><code>string</code></em>;<br>
|
||||||
session-keyfile ( <em class="replaceable"><code>quoted_string</code></em> | none );<br>
|
session-keyfile ( <em class="replaceable"><code>quoted_string</code></em> | none );<br>
|
||||||
session-keyname <em class="replaceable"><code>string</code></em>;<br>
|
session-keyname <em class="replaceable"><code>string</code></em>;<br>
|
||||||
@@ -411,7 +420,7 @@ options
|
|||||||
sortlist { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
sortlist { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
||||||
stacksize ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> );<br>
|
stacksize ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> );<br>
|
||||||
stale-answer-enable <em class="replaceable"><code>boolean</code></em>;<br>
|
stale-answer-enable <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
stale-answer-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
stale-answer-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
startup-notify-rate <em class="replaceable"><code>integer</code></em>;<br>
|
startup-notify-rate <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
statistics-file <em class="replaceable"><code>quoted_string</code></em>;<br>
|
statistics-file <em class="replaceable"><code>quoted_string</code></em>;<br>
|
||||||
synth-from-dnssec <em class="replaceable"><code>boolean</code></em>;<br>
|
synth-from-dnssec <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
@@ -451,7 +460,7 @@ options
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.17"></a><h2>PLUGIN</h2>
|
<a name="id-1.18"></a><h2>PLUGIN</h2>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
plugin ( query ) <em class="replaceable"><code>string</code></em> [ { <em class="replaceable"><code>unspecified-text</code></em><br>
|
plugin ( query ) <em class="replaceable"><code>string</code></em> [ { <em class="replaceable"><code>unspecified-text</code></em><br>
|
||||||
} ];<br>
|
} ];<br>
|
||||||
@@ -459,7 +468,7 @@ plugin
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.18"></a><h2>SERVER</h2>
|
<a name="id-1.19"></a><h2>SERVER</h2>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
server <em class="replaceable"><code>netprefix</code></em> {<br>
|
server <em class="replaceable"><code>netprefix</code></em> {<br>
|
||||||
bogus <em class="replaceable"><code>boolean</code></em>;<br>
|
bogus <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
@@ -497,7 +506,7 @@ server
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.19"></a><h2>STATISTICS-CHANNELS</h2>
|
<a name="id-1.20"></a><h2>STATISTICS-CHANNELS</h2>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
statistics-channels {<br>
|
statistics-channels {<br>
|
||||||
inet ( <em class="replaceable"><code>ipv4_address</code></em> | <em class="replaceable"><code>ipv6_address</code></em> |<br>
|
inet ( <em class="replaceable"><code>ipv4_address</code></em> | <em class="replaceable"><code>ipv6_address</code></em> |<br>
|
||||||
@@ -508,19 +517,9 @@ statistics-channels
|
|||||||
</p></div>
|
</p></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
|
||||||
<a name="id-1.20"></a><h2>TRUST-ANCHORS</h2>
|
|
||||||
<div class="literallayout"><p><br>
|
|
||||||
trust-anchors { <em class="replaceable"><code>string</code></em> ( static-key |<br>
|
|
||||||
initial-key | static-ds | initial-ds )<br>
|
|
||||||
<em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
|
||||||
<em class="replaceable"><code>quoted_string</code></em>; ... };<br>
|
|
||||||
</p></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.21"></a><h2>TRUSTED-KEYS</h2>
|
<a name="id-1.21"></a><h2>TRUSTED-KEYS</h2>
|
||||||
<p>Deprecated - see TRUST-ANCHORS.</p>
|
<p>Deprecated - see DNSSEC-KEYS.</p>
|
||||||
<div class="literallayout"><p><br>
|
<div class="literallayout"><p><br>
|
||||||
trusted-keys { <em class="replaceable"><code>string</code></em> <em class="replaceable"><code>integer</code></em><br>
|
trusted-keys { <em class="replaceable"><code>string</code></em> <em class="replaceable"><code>integer</code></em><br>
|
||||||
<em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
<em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
||||||
@@ -558,7 +557,7 @@ view
|
|||||||
[ dscp <em class="replaceable"><code>integer</code></em> ] { ( <em class="replaceable"><code>masters</code></em> | <em class="replaceable"><code>ipv4_address</code></em> [ port<br>
|
[ dscp <em class="replaceable"><code>integer</code></em> ] { ( <em class="replaceable"><code>masters</code></em> | <em class="replaceable"><code>ipv4_address</code></em> [ port<br>
|
||||||
<em class="replaceable"><code>integer</code></em> ] | <em class="replaceable"><code>ipv6_address</code></em> [ port <em class="replaceable"><code>integer</code></em> ] ) [ key<br>
|
<em class="replaceable"><code>integer</code></em> ] | <em class="replaceable"><code>ipv6_address</code></em> [ port <em class="replaceable"><code>integer</code></em> ] ) [ key<br>
|
||||||
<em class="replaceable"><code>string</code></em> ]; ... } ] [ zone-directory <em class="replaceable"><code>quoted_string</code></em> ] [<br>
|
<em class="replaceable"><code>string</code></em> ]; ... } ] [ zone-directory <em class="replaceable"><code>quoted_string</code></em> ] [<br>
|
||||||
in-memory <em class="replaceable"><code>boolean</code></em> ] [ min-update-interval <em class="replaceable"><code>duration</code></em> ]; ... };<br>
|
in-memory <em class="replaceable"><code>boolean</code></em> ] [ min-update-interval <em class="replaceable"><code>ttlval</code></em> ]; ... };<br>
|
||||||
check-dup-records ( fail | warn | ignore );<br>
|
check-dup-records ( fail | warn | ignore );<br>
|
||||||
check-integrity <em class="replaceable"><code>boolean</code></em>;<br>
|
check-integrity <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
check-mx ( fail | warn | ignore );<br>
|
check-mx ( fail | warn | ignore );<br>
|
||||||
@@ -600,6 +599,9 @@ view
|
|||||||
dnsrps-options { <em class="replaceable"><code>unspecified-text</code></em> };<br>
|
dnsrps-options { <em class="replaceable"><code>unspecified-text</code></em> };<br>
|
||||||
dnssec-accept-expired <em class="replaceable"><code>boolean</code></em>;<br>
|
dnssec-accept-expired <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
dnssec-dnskey-kskonly <em class="replaceable"><code>boolean</code></em>;<br>
|
dnssec-dnskey-kskonly <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
|
dnssec-keys { <em class="replaceable"><code>string</code></em> ( static-key |<br>
|
||||||
|
initial-key ) <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
||||||
|
<em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>quoted_string</code></em>; ... };<br>
|
||||||
dnssec-loadkeys-interval <em class="replaceable"><code>integer</code></em>;<br>
|
dnssec-loadkeys-interval <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
dnssec-must-be-secure <em class="replaceable"><code>string</code></em> <em class="replaceable"><code>boolean</code></em>;<br>
|
dnssec-must-be-secure <em class="replaceable"><code>string</code></em> <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
dnssec-secure-to-insecure <em class="replaceable"><code>boolean</code></em>;<br>
|
dnssec-secure-to-insecure <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
@@ -633,11 +635,10 @@ view
|
|||||||
secret <em class="replaceable"><code>string</code></em>;<br>
|
secret <em class="replaceable"><code>string</code></em>;<br>
|
||||||
};<br>
|
};<br>
|
||||||
key-directory <em class="replaceable"><code>quoted_string</code></em>;<br>
|
key-directory <em class="replaceable"><code>quoted_string</code></em>;<br>
|
||||||
lame-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
lame-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
lmdb-mapsize <em class="replaceable"><code>sizeval</code></em>;<br>
|
lmdb-mapsize <em class="replaceable"><code>sizeval</code></em>;<br>
|
||||||
managed-keys { <em class="replaceable"><code>string</code></em> (<br>
|
managed-keys { <em class="replaceable"><code>string</code></em> (<br>
|
||||||
static-key | initial-key<br>
|
static-key | initial-key<br>
|
||||||
| static-ds | initial-ds<br>
|
|
||||||
) <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
) <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
||||||
<em class="replaceable"><code>integer</code></em><br>
|
<em class="replaceable"><code>integer</code></em><br>
|
||||||
<em class="replaceable"><code>quoted_string</code></em>; ... }; deprecated<br>
|
<em class="replaceable"><code>quoted_string</code></em>; ... }; deprecated<br>
|
||||||
@@ -647,25 +648,25 @@ view
|
|||||||
match-destinations { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
match-destinations { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
||||||
match-recursive-only <em class="replaceable"><code>boolean</code></em>;<br>
|
match-recursive-only <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
max-cache-size ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> | <em class="replaceable"><code>percentage</code></em> );<br>
|
max-cache-size ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> | <em class="replaceable"><code>percentage</code></em> );<br>
|
||||||
max-cache-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
max-cache-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
max-clients-per-query <em class="replaceable"><code>integer</code></em>;<br>
|
max-clients-per-query <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-journal-size ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> );<br>
|
max-journal-size ( default | unlimited | <em class="replaceable"><code>sizeval</code></em> );<br>
|
||||||
max-ncache-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
max-ncache-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
max-records <em class="replaceable"><code>integer</code></em>;<br>
|
max-records <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-recursion-depth <em class="replaceable"><code>integer</code></em>;<br>
|
max-recursion-depth <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-recursion-queries <em class="replaceable"><code>integer</code></em>;<br>
|
max-recursion-queries <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
max-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
max-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-stale-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
max-stale-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
max-transfer-idle-in <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-idle-in <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-idle-out <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-idle-out <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-time-in <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-time-in <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-time-out <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-time-out <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-udp-size <em class="replaceable"><code>integer</code></em>;<br>
|
max-udp-size <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-zone-ttl ( unlimited | <em class="replaceable"><code>duration</code></em> );<br>
|
max-zone-ttl ( unlimited | <em class="replaceable"><code>ttlval</code></em> );<br>
|
||||||
message-compression <em class="replaceable"><code>boolean</code></em>;<br>
|
message-compression <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
min-cache-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
min-cache-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
min-ncache-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
min-ncache-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
min-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
min-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
min-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
min-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
minimal-any <em class="replaceable"><code>boolean</code></em>;<br>
|
minimal-any <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
@@ -681,8 +682,8 @@ view
|
|||||||
notify-source-v6 ( <em class="replaceable"><code>ipv6_address</code></em> | * ) [ port ( <em class="replaceable"><code>integer</code></em> | * ) ]<br>
|
notify-source-v6 ( <em class="replaceable"><code>ipv6_address</code></em> | * ) [ port ( <em class="replaceable"><code>integer</code></em> | * ) ]<br>
|
||||||
[ dscp <em class="replaceable"><code>integer</code></em> ];<br>
|
[ dscp <em class="replaceable"><code>integer</code></em> ];<br>
|
||||||
notify-to-soa <em class="replaceable"><code>boolean</code></em>;<br>
|
notify-to-soa <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
nta-lifetime <em class="replaceable"><code>duration</code></em>;<br>
|
nta-lifetime <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
nta-recheck <em class="replaceable"><code>duration</code></em>;<br>
|
nta-recheck <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
nxdomain-redirect <em class="replaceable"><code>string</code></em>;<br>
|
nxdomain-redirect <em class="replaceable"><code>string</code></em>;<br>
|
||||||
plugin ( query ) <em class="replaceable"><code>string</code></em> [ {<br>
|
plugin ( query ) <em class="replaceable"><code>string</code></em> [ {<br>
|
||||||
<em class="replaceable"><code>unspecified-text</code></em> } ];<br>
|
<em class="replaceable"><code>unspecified-text</code></em> } ];<br>
|
||||||
@@ -724,13 +725,13 @@ view
|
|||||||
response-padding { <em class="replaceable"><code>address_match_element</code></em>; ... } block-size<br>
|
response-padding { <em class="replaceable"><code>address_match_element</code></em>; ... } block-size<br>
|
||||||
<em class="replaceable"><code>integer</code></em>;<br>
|
<em class="replaceable"><code>integer</code></em>;<br>
|
||||||
response-policy { zone <em class="replaceable"><code>string</code></em> [ add-soa <em class="replaceable"><code>boolean</code></em> ] [ log<br>
|
response-policy { zone <em class="replaceable"><code>string</code></em> [ add-soa <em class="replaceable"><code>boolean</code></em> ] [ log<br>
|
||||||
<em class="replaceable"><code>boolean</code></em> ] [ max-policy-ttl <em class="replaceable"><code>duration</code></em> ] [ min-update-interval<br>
|
<em class="replaceable"><code>boolean</code></em> ] [ max-policy-ttl <em class="replaceable"><code>ttlval</code></em> ] [ min-update-interval<br>
|
||||||
<em class="replaceable"><code>duration</code></em> ] [ policy ( cname | disabled | drop | given | no-op |<br>
|
<em class="replaceable"><code>ttlval</code></em> ] [ policy ( cname | disabled | drop | given | no-op |<br>
|
||||||
nodata | nxdomain | passthru | tcp-only <em class="replaceable"><code>quoted_string</code></em> ) ] [<br>
|
nodata | nxdomain | passthru | tcp-only <em class="replaceable"><code>quoted_string</code></em> ) ] [<br>
|
||||||
recursive-only <em class="replaceable"><code>boolean</code></em> ] [ nsip-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
recursive-only <em class="replaceable"><code>boolean</code></em> ] [ nsip-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
||||||
nsdname-enable <em class="replaceable"><code>boolean</code></em> ]; ... } [ add-soa <em class="replaceable"><code>boolean</code></em> ] [<br>
|
nsdname-enable <em class="replaceable"><code>boolean</code></em> ]; ... } [ add-soa <em class="replaceable"><code>boolean</code></em> ] [<br>
|
||||||
break-dnssec <em class="replaceable"><code>boolean</code></em> ] [ max-policy-ttl <em class="replaceable"><code>duration</code></em> ] [<br>
|
break-dnssec <em class="replaceable"><code>boolean</code></em> ] [ max-policy-ttl <em class="replaceable"><code>ttlval</code></em> ] [<br>
|
||||||
min-update-interval <em class="replaceable"><code>duration</code></em> ] [ min-ns-dots <em class="replaceable"><code>integer</code></em> ] [<br>
|
min-update-interval <em class="replaceable"><code>ttlval</code></em> ] [ min-ns-dots <em class="replaceable"><code>integer</code></em> ] [<br>
|
||||||
nsip-wait-recurse <em class="replaceable"><code>boolean</code></em> ] [ qname-wait-recurse <em class="replaceable"><code>boolean</code></em> ]<br>
|
nsip-wait-recurse <em class="replaceable"><code>boolean</code></em> ] [ qname-wait-recurse <em class="replaceable"><code>boolean</code></em> ]<br>
|
||||||
[ recursive-only <em class="replaceable"><code>boolean</code></em> ] [ nsip-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
[ recursive-only <em class="replaceable"><code>boolean</code></em> ] [ nsip-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
||||||
nsdname-enable <em class="replaceable"><code>boolean</code></em> ] [ dnsrps-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
nsdname-enable <em class="replaceable"><code>boolean</code></em> ] [ dnsrps-enable <em class="replaceable"><code>boolean</code></em> ] [<br>
|
||||||
@@ -775,14 +776,14 @@ view
|
|||||||
<em class="replaceable"><code>integer</code></em> | * ) ] [ dscp <em class="replaceable"><code>integer</code></em> ];<br>
|
<em class="replaceable"><code>integer</code></em> | * ) ] [ dscp <em class="replaceable"><code>integer</code></em> ];<br>
|
||||||
transfers <em class="replaceable"><code>integer</code></em>;<br>
|
transfers <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
};<br>
|
};<br>
|
||||||
servfail-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
servfail-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
sig-signing-nodes <em class="replaceable"><code>integer</code></em>;<br>
|
sig-signing-nodes <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
sig-signing-signatures <em class="replaceable"><code>integer</code></em>;<br>
|
sig-signing-signatures <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
sig-signing-type <em class="replaceable"><code>integer</code></em>;<br>
|
sig-signing-type <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
sig-validity-interval <em class="replaceable"><code>integer</code></em> [ <em class="replaceable"><code>integer</code></em> ];<br>
|
sig-validity-interval <em class="replaceable"><code>integer</code></em> [ <em class="replaceable"><code>integer</code></em> ];<br>
|
||||||
sortlist { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
sortlist { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
|
||||||
stale-answer-enable <em class="replaceable"><code>boolean</code></em>;<br>
|
stale-answer-enable <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
stale-answer-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
stale-answer-ttl <em class="replaceable"><code>ttlval</code></em>;<br>
|
||||||
synth-from-dnssec <em class="replaceable"><code>boolean</code></em>;<br>
|
synth-from-dnssec <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
transfer-format ( many-answers | one-answer );<br>
|
transfer-format ( many-answers | one-answer );<br>
|
||||||
transfer-source ( <em class="replaceable"><code>ipv4_address</code></em> | * ) [ port ( <em class="replaceable"><code>integer</code></em> | * ) ] [<br>
|
transfer-source ( <em class="replaceable"><code>ipv4_address</code></em> | * ) [ port ( <em class="replaceable"><code>integer</code></em> | * ) ] [<br>
|
||||||
@@ -790,10 +791,6 @@ view
|
|||||||
transfer-source-v6 ( <em class="replaceable"><code>ipv6_address</code></em> | * ) [ port ( <em class="replaceable"><code>integer</code></em> | * )<br>
|
transfer-source-v6 ( <em class="replaceable"><code>ipv6_address</code></em> | * ) [ port ( <em class="replaceable"><code>integer</code></em> | * )<br>
|
||||||
] [ dscp <em class="replaceable"><code>integer</code></em> ];<br>
|
] [ dscp <em class="replaceable"><code>integer</code></em> ];<br>
|
||||||
trust-anchor-telemetry <em class="replaceable"><code>boolean</code></em>; // experimental<br>
|
trust-anchor-telemetry <em class="replaceable"><code>boolean</code></em>; // experimental<br>
|
||||||
trust-anchors { <em class="replaceable"><code>string</code></em> ( static-key |<br>
|
|
||||||
initial-key | static-ds | initial-ds<br>
|
|
||||||
) <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
|
||||||
<em class="replaceable"><code>quoted_string</code></em>; ... };<br>
|
|
||||||
trusted-keys { <em class="replaceable"><code>string</code></em><br>
|
trusted-keys { <em class="replaceable"><code>string</code></em><br>
|
||||||
<em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
<em class="replaceable"><code>integer</code></em> <em class="replaceable"><code>integer</code></em><br>
|
||||||
<em class="replaceable"><code>integer</code></em><br>
|
<em class="replaceable"><code>integer</code></em><br>
|
||||||
@@ -838,7 +835,6 @@ view
|
|||||||
dnskey-sig-validity <em class="replaceable"><code>integer</code></em>;<br>
|
dnskey-sig-validity <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
dnssec-dnskey-kskonly <em class="replaceable"><code>boolean</code></em>;<br>
|
dnssec-dnskey-kskonly <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
dnssec-loadkeys-interval <em class="replaceable"><code>integer</code></em>;<br>
|
dnssec-loadkeys-interval <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
dnssec-policy <em class="replaceable"><code>string</code></em>;<br>
|
|
||||||
dnssec-secure-to-insecure <em class="replaceable"><code>boolean</code></em>;<br>
|
dnssec-secure-to-insecure <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
dnssec-update-mode ( maintain | no-resign );<br>
|
dnssec-update-mode ( maintain | no-resign );<br>
|
||||||
file <em class="replaceable"><code>quoted_string</code></em>;<br>
|
file <em class="replaceable"><code>quoted_string</code></em>;<br>
|
||||||
@@ -864,7 +860,7 @@ view
|
|||||||
max-transfer-idle-out <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-idle-out <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-time-in <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-time-in <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-time-out <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-time-out <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-zone-ttl ( unlimited | <em class="replaceable"><code>duration</code></em> );<br>
|
max-zone-ttl ( unlimited | <em class="replaceable"><code>ttlval</code></em> );<br>
|
||||||
min-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
min-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
min-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
min-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
multi-master <em class="replaceable"><code>boolean</code></em>;<br>
|
multi-master <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
@@ -941,7 +937,6 @@ zone
|
|||||||
dnskey-sig-validity <em class="replaceable"><code>integer</code></em>;<br>
|
dnskey-sig-validity <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
dnssec-dnskey-kskonly <em class="replaceable"><code>boolean</code></em>;<br>
|
dnssec-dnskey-kskonly <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
dnssec-loadkeys-interval <em class="replaceable"><code>integer</code></em>;<br>
|
dnssec-loadkeys-interval <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
dnssec-policy <em class="replaceable"><code>string</code></em>;<br>
|
|
||||||
dnssec-secure-to-insecure <em class="replaceable"><code>boolean</code></em>;<br>
|
dnssec-secure-to-insecure <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
dnssec-update-mode ( maintain | no-resign );<br>
|
dnssec-update-mode ( maintain | no-resign );<br>
|
||||||
file <em class="replaceable"><code>quoted_string</code></em>;<br>
|
file <em class="replaceable"><code>quoted_string</code></em>;<br>
|
||||||
@@ -966,7 +961,7 @@ zone
|
|||||||
max-transfer-idle-out <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-idle-out <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-time-in <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-time-in <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-transfer-time-out <em class="replaceable"><code>integer</code></em>;<br>
|
max-transfer-time-out <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
max-zone-ttl ( unlimited | <em class="replaceable"><code>duration</code></em> );<br>
|
max-zone-ttl ( unlimited | <em class="replaceable"><code>ttlval</code></em> );<br>
|
||||||
min-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
min-refresh-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
min-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
min-retry-time <em class="replaceable"><code>integer</code></em>;<br>
|
||||||
multi-master <em class="replaceable"><code>boolean</code></em>;<br>
|
multi-master <em class="replaceable"><code>boolean</code></em>;<br>
|
||||||
@@ -1008,35 +1003,14 @@ zone
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.24"></a><h2>DNSSEC-POLICY</h2>
|
<a name="id-1.24"></a><h2>FILES</h2>
|
||||||
|
|
||||||
<div class="literallayout"><p><br>
|
|
||||||
dnssec-policy <em class="replaceable"><code>string</code></em> {<br>
|
|
||||||
dnskey-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
keys { ( csk | ksk | zsk ) key-directory lifetime <em class="replaceable"><code>duration</code></em> algorithm <em class="replaceable"><code>integer</code></em> [ <em class="replaceable"><code>integer</code></em> ] ; ... };<br>
|
|
||||||
parent-ds-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
parent-propagation-delay <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
parent-registration-delay <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
publish-safety <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
retire-safety <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
signatures-refresh <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
signatures-validity <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
signatures-validity-dnskey <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
zone-max-ttl <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
zone-propagation-delay <em class="replaceable"><code>duration</code></em>;<br>
|
|
||||||
};<br>
|
|
||||||
</p></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="refsection">
|
|
||||||
<a name="id-1.25"></a><h2>FILES</h2>
|
|
||||||
|
|
||||||
<p><code class="filename">/etc/named.conf</code>
|
<p><code class="filename">/etc/named.conf</code>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="refsection">
|
<div class="refsection">
|
||||||
<a name="id-1.26"></a><h2>SEE ALSO</h2>
|
<a name="id-1.25"></a><h2>SEE ALSO</h2>
|
||||||
|
|
||||||
<p><span class="citerefentry">
|
<p><span class="citerefentry">
|
||||||
<span class="refentrytitle">ddns-confgen</span>(8)
|
<span class="refentrytitle">ddns-confgen</span>(8)
|
||||||
|
|||||||
@@ -49,7 +49,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
+265
-465
File diff suppressed because it is too large
Load Diff
@@ -241,8 +241,6 @@ init_desc(void) {
|
|||||||
SET_NSSTATDESC(invalidsig, "requests with invalid signature",
|
SET_NSSTATDESC(invalidsig, "requests with invalid signature",
|
||||||
"ReqBadSIG");
|
"ReqBadSIG");
|
||||||
SET_NSSTATDESC(requesttcp, "TCP requests received", "ReqTCP");
|
SET_NSSTATDESC(requesttcp, "TCP requests received", "ReqTCP");
|
||||||
SET_NSSTATDESC(tcphighwater, "TCP connection high-water",
|
|
||||||
"TCPConnHighWater");
|
|
||||||
SET_NSSTATDESC(authrej, "auth queries rejected", "AuthQryRej");
|
SET_NSSTATDESC(authrej, "auth queries rejected", "AuthQryRej");
|
||||||
SET_NSSTATDESC(recurserej, "recursive queries rejected", "RecQryRej");
|
SET_NSSTATDESC(recurserej, "recursive queries rejected", "RecQryRej");
|
||||||
SET_NSSTATDESC(xfrrej, "transfer requests rejected", "XfrRej");
|
SET_NSSTATDESC(xfrrej, "transfer requests rejected", "XfrRej");
|
||||||
@@ -324,10 +322,6 @@ init_desc(void) {
|
|||||||
"QryUsedStale");
|
"QryUsedStale");
|
||||||
SET_NSSTATDESC(prefetch, "queries triggered prefetch", "Prefetch");
|
SET_NSSTATDESC(prefetch, "queries triggered prefetch", "Prefetch");
|
||||||
SET_NSSTATDESC(keytagopt, "Keytag option received", "KeyTagOpt");
|
SET_NSSTATDESC(keytagopt, "Keytag option received", "KeyTagOpt");
|
||||||
SET_NSSTATDESC(reclimitdropped,
|
|
||||||
"queries dropped due to recursive client limit",
|
|
||||||
"RecLimitDropped");
|
|
||||||
|
|
||||||
INSIST(i == ns_statscounter_max);
|
INSIST(i == ns_statscounter_max);
|
||||||
|
|
||||||
/* Initialize resolver statistics */
|
/* Initialize resolver statistics */
|
||||||
@@ -3593,6 +3587,10 @@ named_statschannels_configure(named_server_t *server, const cfg_obj_t *config,
|
|||||||
|
|
||||||
ISC_LIST_INIT(new_listeners);
|
ISC_LIST_INIT(new_listeners);
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBXML2
|
||||||
|
xmlInitThreads();
|
||||||
|
#endif /* HAVE_LIBXML2 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the list of named.conf 'statistics-channels' statements.
|
* Get the list of named.conf 'statistics-channels' statements.
|
||||||
*/
|
*/
|
||||||
@@ -3725,6 +3723,10 @@ named_statschannels_shutdown(named_server_t *server) {
|
|||||||
ISC_LIST_UNLINK(server->statschannels, listener, link);
|
ISC_LIST_UNLINK(server->statschannels, listener, link);
|
||||||
shutdown_listener(listener);
|
shutdown_listener(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBXML2
|
||||||
|
xmlCleanupThreads();
|
||||||
|
#endif /* HAVE_LIBXML2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ named_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
|
|||||||
RETERR(dns_name_fromtext(name, &b, dns_rootname, 0, NULL));
|
RETERR(dns_name_fromtext(name, &b, dns_rootname, 0, NULL));
|
||||||
tctx->domain = isc_mem_get(mctx, sizeof(dns_name_t));
|
tctx->domain = isc_mem_get(mctx, sizeof(dns_name_t));
|
||||||
dns_name_init(tctx->domain, NULL);
|
dns_name_init(tctx->domain, NULL);
|
||||||
dns_name_dup(name, mctx, tctx->domain);
|
RETERR(dns_name_dup(name, mctx, tctx->domain));
|
||||||
}
|
}
|
||||||
|
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
@@ -114,3 +114,4 @@ named_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
|
|||||||
dns_tkeyctx_destroy(&tctx);
|
dns_tkeyctx_destroy(&tctx);
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ named_paths_init(void) {
|
|||||||
named_g_keyfile = isc_ntpaths_get(RNDC_KEY_PATH);
|
named_g_keyfile = isc_ntpaths_get(RNDC_KEY_PATH);
|
||||||
named_g_defaultsessionkeyfile = isc_ntpaths_get(SESSION_KEY_PATH);
|
named_g_defaultsessionkeyfile = isc_ntpaths_get(SESSION_KEY_PATH);
|
||||||
named_g_defaultbindkeys = isc_ntpaths_get(BIND_KEYS_PATH);
|
named_g_defaultbindkeys = isc_ntpaths_get(BIND_KEYS_PATH);
|
||||||
|
named_g_defaultdnstap = NULL;
|
||||||
|
|
||||||
Initialized = TRUE;
|
Initialized = TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
+34
-83
@@ -25,7 +25,6 @@
|
|||||||
#include <dns/ipkeylist.h>
|
#include <dns/ipkeylist.h>
|
||||||
#include <dns/fixedname.h>
|
#include <dns/fixedname.h>
|
||||||
#include <dns/journal.h>
|
#include <dns/journal.h>
|
||||||
#include <dns/kasp.h>
|
|
||||||
#include <dns/log.h>
|
#include <dns/log.h>
|
||||||
#include <dns/name.h>
|
#include <dns/name.h>
|
||||||
#include <dns/masterdump.h>
|
#include <dns/masterdump.h>
|
||||||
@@ -841,9 +840,8 @@ process_notifytype(dns_notifytype_t ntype, dns_zonetype_t ztype,
|
|||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||||
const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac,
|
const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac,
|
||||||
dns_kasplist_t *kasplist, dns_zone_t *zone,
|
dns_zone_t *zone, dns_zone_t *raw)
|
||||||
dns_zone_t *raw)
|
|
||||||
{
|
{
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
const char *zname;
|
const char *zname;
|
||||||
@@ -855,7 +853,6 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
const cfg_obj_t *options = NULL;
|
const cfg_obj_t *options = NULL;
|
||||||
const cfg_obj_t *obj;
|
const cfg_obj_t *obj;
|
||||||
const char *filename = NULL;
|
const char *filename = NULL;
|
||||||
const char *kaspname = NULL;
|
|
||||||
const char *dupcheck;
|
const char *dupcheck;
|
||||||
dns_notifytype_t notifytype = dns_notifytype_yes;
|
dns_notifytype_t notifytype = dns_notifytype_yes;
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
@@ -871,8 +868,7 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
int32_t journal_size;
|
int32_t journal_size;
|
||||||
bool multi;
|
bool multi;
|
||||||
bool alt;
|
bool alt;
|
||||||
dns_view_t *view = NULL;
|
dns_view_t *view;
|
||||||
dns_kasp_t *kasp = NULL;
|
|
||||||
bool check = false, fail = false;
|
bool check = false, fail = false;
|
||||||
bool warn = false, ignore = false;
|
bool warn = false, ignore = false;
|
||||||
bool ixfrdiff;
|
bool ixfrdiff;
|
||||||
@@ -1049,8 +1045,8 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
} else if (result == ISC_R_SUCCESS) {
|
} else if (result == ISC_R_SUCCESS) {
|
||||||
dns_ttl_t maxttl = 0; /* unlimited */
|
dns_ttl_t maxttl = 0; /* unlimited */
|
||||||
|
|
||||||
if (cfg_obj_isduration(obj))
|
if (cfg_obj_isuint32(obj))
|
||||||
maxttl = cfg_obj_asduration(obj);
|
maxttl = cfg_obj_asuint32(obj);
|
||||||
dns_zone_setmaxttl(zone, maxttl);
|
dns_zone_setmaxttl(zone, maxttl);
|
||||||
if (raw != NULL)
|
if (raw != NULL)
|
||||||
dns_zone_setmaxttl(raw, maxttl);
|
dns_zone_setmaxttl(raw, maxttl);
|
||||||
@@ -1196,24 +1192,6 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
*/
|
*/
|
||||||
if (ztype != dns_zone_stub && ztype != dns_zone_staticstub &&
|
if (ztype != dns_zone_stub && ztype != dns_zone_staticstub &&
|
||||||
ztype != dns_zone_redirect) {
|
ztype != dns_zone_redirect) {
|
||||||
obj = NULL;
|
|
||||||
result = named_config_get(maps, "dnssec-policy", &obj);
|
|
||||||
if (result == ISC_R_SUCCESS) {
|
|
||||||
kaspname = cfg_obj_asstring(obj);
|
|
||||||
if (strcmp(kaspname, "none") != 0) {
|
|
||||||
result = dns_kasplist_find(kasplist, kaspname,
|
|
||||||
&kasp);
|
|
||||||
if (result != ISC_R_SUCCESS) {
|
|
||||||
cfg_obj_log(obj, named_g_lctx,
|
|
||||||
ISC_LOG_ERROR,
|
|
||||||
"'dnssec-policy '%s' not "
|
|
||||||
"found ", kaspname);
|
|
||||||
RETERR(result);
|
|
||||||
}
|
|
||||||
dns_zone_setkasp(zone, kasp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
result = named_config_get(maps, "notify", &obj);
|
result = named_config_get(maps, "notify", &obj);
|
||||||
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
||||||
@@ -1503,52 +1481,38 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
bool allow = false, maint = false;
|
bool allow = false, maint = false;
|
||||||
bool sigvalinsecs;
|
bool sigvalinsecs;
|
||||||
|
|
||||||
if (kasp) {
|
obj = NULL;
|
||||||
seconds = (uint32_t) dns_kasp_sigvalidity_dnskey(kasp);
|
result = named_config_get(maps, "dnskey-sig-validity", &obj);
|
||||||
} else {
|
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
||||||
obj = NULL;
|
seconds = cfg_obj_asuint32(obj) * 86400;
|
||||||
result = named_config_get(maps, "dnskey-sig-validity",
|
|
||||||
&obj);
|
|
||||||
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
|
||||||
seconds = cfg_obj_asuint32(obj) * 86400;
|
|
||||||
}
|
|
||||||
dns_zone_setkeyvalidityinterval(zone, seconds);
|
dns_zone_setkeyvalidityinterval(zone, seconds);
|
||||||
|
|
||||||
if (kasp) {
|
obj = NULL;
|
||||||
seconds = (uint32_t) dns_kasp_sigvalidity(kasp);
|
result = named_config_get(maps, "sig-validity-interval", &obj);
|
||||||
dns_zone_setsigvalidityinterval(zone, seconds);
|
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
||||||
seconds = (uint32_t) dns_kasp_sigrefresh(kasp);
|
|
||||||
dns_zone_setsigresigninginterval(zone, seconds);
|
|
||||||
} else {
|
|
||||||
obj = NULL;
|
|
||||||
result = named_config_get(maps, "sig-validity-interval",
|
|
||||||
&obj);
|
|
||||||
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
|
||||||
|
|
||||||
sigvalinsecs = ns_server_getoption(named_g_server->sctx,
|
sigvalinsecs = ns_server_getoption(named_g_server->sctx,
|
||||||
NS_SERVER_SIGVALINSECS);
|
NS_SERVER_SIGVALINSECS);
|
||||||
validity = cfg_tuple_get(obj, "validity");
|
validity = cfg_tuple_get(obj, "validity");
|
||||||
seconds = cfg_obj_asuint32(validity);
|
seconds = cfg_obj_asuint32(validity);
|
||||||
if (!sigvalinsecs) {
|
if (!sigvalinsecs) {
|
||||||
seconds *= 86400;
|
seconds *= 86400;
|
||||||
}
|
|
||||||
dns_zone_setsigvalidityinterval(zone, seconds);
|
|
||||||
|
|
||||||
resign = cfg_tuple_get(obj, "re-sign");
|
|
||||||
if (cfg_obj_isvoid(resign)) {
|
|
||||||
seconds /= 4;
|
|
||||||
} else if (!sigvalinsecs) {
|
|
||||||
seconds = cfg_obj_asuint32(resign);
|
|
||||||
if (seconds > 7 * 86400) {
|
|
||||||
seconds *= 86400;
|
|
||||||
} else {
|
|
||||||
seconds *= 3600;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
seconds = cfg_obj_asuint32(resign);
|
|
||||||
}
|
|
||||||
dns_zone_setsigresigninginterval(zone, seconds);
|
|
||||||
}
|
}
|
||||||
|
dns_zone_setsigvalidityinterval(zone, seconds);
|
||||||
|
|
||||||
|
resign = cfg_tuple_get(obj, "re-sign");
|
||||||
|
if (cfg_obj_isvoid(resign)) {
|
||||||
|
seconds /= 4;
|
||||||
|
} else if (!sigvalinsecs) {
|
||||||
|
if (seconds > 7 * 86400) {
|
||||||
|
seconds = cfg_obj_asuint32(resign) * 86400;
|
||||||
|
} else {
|
||||||
|
seconds = cfg_obj_asuint32(resign) * 3600;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
seconds = cfg_obj_asuint32(resign);
|
||||||
|
}
|
||||||
|
dns_zone_setsigresigninginterval(zone, seconds);
|
||||||
|
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
result = named_config_get(maps, "key-directory", &obj);
|
result = named_config_get(maps, "key-directory", &obj);
|
||||||
@@ -1577,20 +1541,12 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
||||||
dns_zone_setoption(zone, DNS_ZONEOPT_UPDATECHECKKSK,
|
dns_zone_setoption(zone, DNS_ZONEOPT_UPDATECHECKKSK,
|
||||||
cfg_obj_asboolean(obj));
|
cfg_obj_asboolean(obj));
|
||||||
/*
|
|
||||||
* This setting will be ignored if dnssec-policy is used.
|
|
||||||
* named-checkconf will error if both are configured.
|
|
||||||
*/
|
|
||||||
|
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
result = named_config_get(maps, "dnssec-dnskey-kskonly", &obj);
|
result = named_config_get(maps, "dnssec-dnskey-kskonly", &obj);
|
||||||
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
INSIST(result == ISC_R_SUCCESS && obj != NULL);
|
||||||
dns_zone_setoption(zone, DNS_ZONEOPT_DNSKEYKSKONLY,
|
dns_zone_setoption(zone, DNS_ZONEOPT_DNSKEYKSKONLY,
|
||||||
cfg_obj_asboolean(obj));
|
cfg_obj_asboolean(obj));
|
||||||
/*
|
|
||||||
* This setting will be ignored if dnssec-policy is used.
|
|
||||||
* named-checkconf will error if both are configured.
|
|
||||||
*/
|
|
||||||
|
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
result = named_config_get(maps, "dnssec-loadkeys-interval",
|
result = named_config_get(maps, "dnssec-loadkeys-interval",
|
||||||
@@ -1601,11 +1557,7 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
|
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
result = cfg_map_get(zoptions, "auto-dnssec", &obj);
|
result = cfg_map_get(zoptions, "auto-dnssec", &obj);
|
||||||
if (dns_zone_getkasp(zone) != NULL) {
|
if (result == ISC_R_SUCCESS) {
|
||||||
dns_zone_setkeyopt(zone, DNS_ZONEKEY_ALLOW, true);
|
|
||||||
dns_zone_setkeyopt(zone, DNS_ZONEKEY_CREATE, true);
|
|
||||||
dns_zone_setkeyopt(zone, DNS_ZONEKEY_MAINTAIN, true);
|
|
||||||
} else if (result == ISC_R_SUCCESS) {
|
|
||||||
const char *arg = cfg_obj_asstring(obj);
|
const char *arg = cfg_obj_asstring(obj);
|
||||||
if (strcasecmp(arg, "allow") == 0) {
|
if (strcasecmp(arg, "allow") == 0) {
|
||||||
allow = true;
|
allow = true;
|
||||||
@@ -1618,7 +1570,6 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
ISC_UNREACHABLE();
|
ISC_UNREACHABLE();
|
||||||
}
|
}
|
||||||
dns_zone_setkeyopt(zone, DNS_ZONEKEY_ALLOW, allow);
|
dns_zone_setkeyopt(zone, DNS_ZONEKEY_ALLOW, allow);
|
||||||
dns_zone_setkeyopt(zone, DNS_ZONEKEY_CREATE, false);
|
|
||||||
dns_zone_setkeyopt(zone, DNS_ZONEKEY_MAINTAIN, maint);
|
dns_zone_setkeyopt(zone, DNS_ZONEKEY_MAINTAIN, maint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -906,7 +906,7 @@ setup_system(void) {
|
|||||||
result = isc_timermgr_create(gmctx, &timermgr);
|
result = isc_timermgr_create(gmctx, &timermgr);
|
||||||
check_result(result, "dns_timermgr_create");
|
check_result(result, "dns_timermgr_create");
|
||||||
|
|
||||||
result = isc_taskmgr_create(gmctx, 1, 0, NULL, &taskmgr);
|
result = isc_taskmgr_create(gmctx, 1, 0, &taskmgr);
|
||||||
check_result(result, "isc_taskmgr_create");
|
check_result(result, "isc_taskmgr_create");
|
||||||
|
|
||||||
result = isc_task_create(taskmgr, 0, &global_task);
|
result = isc_task_create(taskmgr, 0, &global_task);
|
||||||
@@ -3210,6 +3210,9 @@ cleanup(void) {
|
|||||||
ddebug("Shutting down timer manager");
|
ddebug("Shutting down timer manager");
|
||||||
isc_timermgr_destroy(&timermgr);
|
isc_timermgr_destroy(&timermgr);
|
||||||
|
|
||||||
|
ddebug("Destroying name state");
|
||||||
|
dns_name_destroy();
|
||||||
|
|
||||||
ddebug("Removing log context");
|
ddebug("Removing log context");
|
||||||
isc_log_destroy(&glctx);
|
isc_log_destroy(&glctx);
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ main(int argc, char *argv[]) {
|
|||||||
if (errflg || (id && (label != NULL))) {
|
if (errflg || (id && (label != NULL))) {
|
||||||
fprintf(stderr, "Usage:\n");
|
fprintf(stderr, "Usage:\n");
|
||||||
fprintf(stderr, "\tpkcs11-destroy [-m module] [-s slot] "
|
fprintf(stderr, "\tpkcs11-destroy [-m module] [-s slot] "
|
||||||
"{-i id | -l label} [-p pin] [-w waittime]\n");
|
"[-i id | -l label] [-p pin] [-w waittime]\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
<copyright>
|
<copyright>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -40,7 +40,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
+4
-6
@@ -276,8 +276,7 @@ See also
|
|||||||
Fetch all DNSSEC keys for the given zone from the key directory\&. If they are within their publication period, merge them into the zone\*(Aqs DNSKEY RRset\&. Unlike
|
Fetch all DNSSEC keys for the given zone from the key directory\&. If they are within their publication period, merge them into the zone\*(Aqs DNSKEY RRset\&. Unlike
|
||||||
\fBrndc sign\fR, however, the zone is not immediately re\-signed by the new keys, but is allowed to incrementally re\-sign over time\&.
|
\fBrndc sign\fR, however, the zone is not immediately re\-signed by the new keys, but is allowed to incrementally re\-sign over time\&.
|
||||||
.sp
|
.sp
|
||||||
This command requires that the zone is configured with a
|
This command requires that the
|
||||||
\fBdnssec\-policy\fR, or that the
|
|
||||||
\fBauto\-dnssec\fR
|
\fBauto\-dnssec\fR
|
||||||
zone option be set to
|
zone option be set to
|
||||||
maintain, and also requires the zone to be configured to allow dynamic DNS\&. (See "Dynamic Update Policies" in the Administrator Reference Manual for more details\&.)
|
maintain, and also requires the zone to be configured to allow dynamic DNS\&. (See "Dynamic Update Policies" in the Administrator Reference Manual for more details\&.)
|
||||||
@@ -516,7 +515,7 @@ timer\&.
|
|||||||
\fBsecroots \fR\fB[\-]\fR\fB \fR\fB[\fIview \&.\&.\&.\fR]\fR
|
\fBsecroots \fR\fB[\-]\fR\fB \fR\fB[\fIview \&.\&.\&.\fR]\fR
|
||||||
.RS 4
|
.RS 4
|
||||||
Dump the security roots (i\&.e\&., trust anchors configured via
|
Dump the security roots (i\&.e\&., trust anchors configured via
|
||||||
\fBtrust\-anchors\fR
|
\fBdnssec\-keys\fR
|
||||||
statements, or the managed\-keys or trusted\-keys statements (both deprecated), or via
|
statements, or the managed\-keys or trusted\-keys statements (both deprecated), or via
|
||||||
\fBdnssec\-validation auto\fR) and negative trust anchors for the specified views\&. If no view is specified, all views are dumped\&. Security roots will indicate whether they are configured as trusted keys, managed keys, or initializing managed keys (managed keys that have not yet been updated by a successful key refresh query)\&.
|
\fBdnssec\-validation auto\fR) and negative trust anchors for the specified views\&. If no view is specified, all views are dumped\&. Security roots will indicate whether they are configured as trusted keys, managed keys, or initializing managed keys (managed keys that have not yet been updated by a successful key refresh query)\&.
|
||||||
.sp
|
.sp
|
||||||
@@ -567,8 +566,7 @@ Fetch all DNSSEC keys for the given zone from the key directory (see the
|
|||||||
\fBkey\-directory\fR
|
\fBkey\-directory\fR
|
||||||
option in the BIND 9 Administrator Reference Manual)\&. If they are within their publication period, merge them into the zone\*(Aqs DNSKEY RRset\&. If the DNSKEY RRset is changed, then the zone is automatically re\-signed with the new key set\&.
|
option in the BIND 9 Administrator Reference Manual)\&. If they are within their publication period, merge them into the zone\*(Aqs DNSKEY RRset\&. If the DNSKEY RRset is changed, then the zone is automatically re\-signed with the new key set\&.
|
||||||
.sp
|
.sp
|
||||||
This command requires that the zone is configured with a
|
This command requires that the
|
||||||
\fBdnssec\-policy\fR, or that the
|
|
||||||
\fBauto\-dnssec\fR
|
\fBauto\-dnssec\fR
|
||||||
zone option be set to
|
zone option be set to
|
||||||
allow
|
allow
|
||||||
@@ -704,7 +702,7 @@ in each view\&. The list includes both statically configured keys and dynamic TK
|
|||||||
.PP
|
.PP
|
||||||
\fBvalidation ( on | off | status ) \fR\fB[\fIview \&.\&.\&.\fR]\fR\fB \fR
|
\fBvalidation ( on | off | status ) \fR\fB[\fIview \&.\&.\&.\fR]\fR\fB \fR
|
||||||
.RS 4
|
.RS 4
|
||||||
Enable, disable, or check the current status of DNSSEC validation\&. By default, validation is enabled\&. The cache is flushed when validation is turned on or off to avoid using data that might differ between states\&.
|
Enable, disable, or check the current status of DNSSEC validation\&. By default, validation is enabled\&.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\fBzonestatus \fR\fB\fIzone\fR\fR\fB \fR\fB[\fIclass\fR [\fIview\fR]]\fR
|
\fBzonestatus \fR\fB\fIzone\fR\fR\fB \fR\fB[\fIclass\fR [\fIview\fR]]\fR
|
||||||
|
|||||||
+21
-24
@@ -75,9 +75,7 @@ static isccc_region_t secret;
|
|||||||
static bool failed = false;
|
static bool failed = false;
|
||||||
static bool c_flag = false;
|
static bool c_flag = false;
|
||||||
static isc_mem_t *rndc_mctx;
|
static isc_mem_t *rndc_mctx;
|
||||||
static atomic_uint_fast32_t sends = ATOMIC_VAR_INIT(0);
|
static isc_refcount_t sends, recvs, connects;
|
||||||
static atomic_uint_fast32_t recvs = ATOMIC_VAR_INIT(0);
|
|
||||||
static atomic_uint_fast32_t connects = ATOMIC_VAR_INIT(0);
|
|
||||||
static char *command;
|
static char *command;
|
||||||
static char *args;
|
static char *args;
|
||||||
static char program[256];
|
static char program[256];
|
||||||
@@ -279,8 +277,8 @@ rndc_senddone(isc_task_t *task, isc_event_t *event) {
|
|||||||
fatal("send failed: %s", isc_result_totext(sevent->result));
|
fatal("send failed: %s", isc_result_totext(sevent->result));
|
||||||
}
|
}
|
||||||
isc_event_free(&event);
|
isc_event_free(&event);
|
||||||
if (atomic_fetch_sub_release(&sends, 1) == 1 &&
|
if (isc_refcount_decrement(&sends) == 1 &&
|
||||||
atomic_load_acquire(&recvs) == 0)
|
isc_refcount_current(&recvs) == 0)
|
||||||
{
|
{
|
||||||
isc_socket_detach(&sock);
|
isc_socket_detach(&sock);
|
||||||
isc_task_shutdown(task);
|
isc_task_shutdown(task);
|
||||||
@@ -297,7 +295,7 @@ rndc_recvdone(isc_task_t *task, isc_event_t *event) {
|
|||||||
char *textmsg = NULL;
|
char *textmsg = NULL;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
atomic_fetch_sub_release(&recvs, 1);
|
isc_refcount_decrement(&recvs);
|
||||||
|
|
||||||
if (ccmsg.result == ISC_R_EOF)
|
if (ccmsg.result == ISC_R_EOF)
|
||||||
fatal("connection to remote host closed\n"
|
fatal("connection to remote host closed\n"
|
||||||
@@ -350,8 +348,8 @@ rndc_recvdone(isc_task_t *task, isc_event_t *event) {
|
|||||||
|
|
||||||
isc_event_free(&event);
|
isc_event_free(&event);
|
||||||
isccc_sexpr_free(&response);
|
isccc_sexpr_free(&response);
|
||||||
if (atomic_load_acquire(&sends) == 0
|
if (isc_refcount_current(&sends) == 0
|
||||||
&& atomic_load_acquire(&recvs) == 0) {
|
&& isc_refcount_current(&recvs) == 0) {
|
||||||
isc_socket_detach(&sock);
|
isc_socket_detach(&sock);
|
||||||
isc_task_shutdown(task);
|
isc_task_shutdown(task);
|
||||||
isc_app_shutdown();
|
isc_app_shutdown();
|
||||||
@@ -371,7 +369,7 @@ rndc_recvnonce(isc_task_t *task, isc_event_t *event) {
|
|||||||
isccc_sexpr_t *data;
|
isccc_sexpr_t *data;
|
||||||
isc_buffer_t b;
|
isc_buffer_t b;
|
||||||
|
|
||||||
atomic_fetch_sub_release(&recvs, 1);
|
isc_refcount_decrement(&recvs);
|
||||||
|
|
||||||
if (ccmsg.result == ISC_R_EOF)
|
if (ccmsg.result == ISC_R_EOF)
|
||||||
fatal("connection to remote host closed\n"
|
fatal("connection to remote host closed\n"
|
||||||
@@ -432,10 +430,10 @@ rndc_recvnonce(isc_task_t *task, isc_event_t *event) {
|
|||||||
isccc_ccmsg_cancelread(&ccmsg);
|
isccc_ccmsg_cancelread(&ccmsg);
|
||||||
DO("schedule recv", isccc_ccmsg_readmessage(&ccmsg, task,
|
DO("schedule recv", isccc_ccmsg_readmessage(&ccmsg, task,
|
||||||
rndc_recvdone, NULL));
|
rndc_recvdone, NULL));
|
||||||
atomic_fetch_add_relaxed(&recvs, 1);
|
isc_refcount_increment(&recvs);
|
||||||
DO("send message", isc_socket_send(sock, &r, task, rndc_senddone,
|
DO("send message", isc_socket_send(sock, &r, task, rndc_senddone,
|
||||||
NULL));
|
NULL));
|
||||||
atomic_fetch_add_relaxed(&sends, 1);
|
isc_refcount_increment(&sends);
|
||||||
|
|
||||||
isc_event_free(&event);
|
isc_event_free(&event);
|
||||||
isccc_sexpr_free(&response);
|
isccc_sexpr_free(&response);
|
||||||
@@ -454,7 +452,7 @@ rndc_connected(isc_task_t *task, isc_event_t *event) {
|
|||||||
isc_buffer_t b;
|
isc_buffer_t b;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
atomic_fetch_sub_release(&connects, 1);
|
isc_refcount_decrement(&connects);
|
||||||
|
|
||||||
if (sevent->result != ISC_R_SUCCESS) {
|
if (sevent->result != ISC_R_SUCCESS) {
|
||||||
isc_sockaddr_format(&serveraddrs[currentaddr], socktext,
|
isc_sockaddr_format(&serveraddrs[currentaddr], socktext,
|
||||||
@@ -500,10 +498,10 @@ rndc_connected(isc_task_t *task, isc_event_t *event) {
|
|||||||
|
|
||||||
DO("schedule recv", isccc_ccmsg_readmessage(&ccmsg, task,
|
DO("schedule recv", isccc_ccmsg_readmessage(&ccmsg, task,
|
||||||
rndc_recvnonce, NULL));
|
rndc_recvnonce, NULL));
|
||||||
atomic_fetch_add_relaxed(&recvs, 1);
|
isc_refcount_increment(&recvs);
|
||||||
DO("send message", isc_socket_send(sock, &r, task, rndc_senddone,
|
DO("send message", isc_socket_send(sock, &r, task, rndc_senddone,
|
||||||
NULL));
|
NULL));
|
||||||
atomic_fetch_add_relaxed(&sends, 1);
|
isc_refcount_increment(&sends);
|
||||||
isc_event_free(&event);
|
isc_event_free(&event);
|
||||||
isccc_sexpr_free(&request);
|
isccc_sexpr_free(&request);
|
||||||
}
|
}
|
||||||
@@ -538,7 +536,7 @@ rndc_startconnect(isc_sockaddr_t *addr, isc_task_t *task) {
|
|||||||
}
|
}
|
||||||
DO("connect", isc_socket_connect(sock, addr, task, rndc_connected,
|
DO("connect", isc_socket_connect(sock, addr, task, rndc_connected,
|
||||||
NULL));
|
NULL));
|
||||||
atomic_fetch_add_relaxed(&connects, 1);
|
isc_refcount_increment(&connects);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -938,14 +936,11 @@ main(int argc, char **argv) {
|
|||||||
serial = isc_random32();
|
serial = isc_random32();
|
||||||
|
|
||||||
isc_mem_create(&rndc_mctx);
|
isc_mem_create(&rndc_mctx);
|
||||||
DO("create socket manager", isc_socketmgr_create(rndc_mctx,
|
DO("create socket manager", isc_socketmgr_create(rndc_mctx, &socketmgr));
|
||||||
&socketmgr));
|
DO("create task manager", isc_taskmgr_create(rndc_mctx, 1, 0, &taskmgr));
|
||||||
DO("create task manager", isc_taskmgr_create(rndc_mctx, 1, 0,
|
|
||||||
NULL, &taskmgr));
|
|
||||||
DO("create task", isc_task_create(taskmgr, 0, &task));
|
DO("create task", isc_task_create(taskmgr, 0, &task));
|
||||||
|
|
||||||
DO("create logging context", isc_log_create(rndc_mctx, &log,
|
DO("create logging context", isc_log_create(rndc_mctx, &log, &logconfig));
|
||||||
&logconfig));
|
|
||||||
isc_log_setcontext(log);
|
isc_log_setcontext(log);
|
||||||
DO("setting log tag", isc_log_settag(logconfig, progname));
|
DO("setting log tag", isc_log_settag(logconfig, progname));
|
||||||
logdest.file.stream = stderr;
|
logdest.file.stream = stderr;
|
||||||
@@ -1005,9 +1000,9 @@ main(int argc, char **argv) {
|
|||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
fatal("isc_app_run() failed: %s", isc_result_totext(result));
|
fatal("isc_app_run() failed: %s", isc_result_totext(result));
|
||||||
|
|
||||||
if (atomic_load_acquire(&connects) > 0 ||
|
if (isc_refcount_current(&connects) > 0 ||
|
||||||
atomic_load_acquire(&sends) > 0 ||
|
isc_refcount_current(&sends) > 0 ||
|
||||||
atomic_load_acquire(&recvs) > 0)
|
isc_refcount_current(&recvs) > 0)
|
||||||
{
|
{
|
||||||
isc_socket_cancel(sock, task, ISC_SOCKCANCEL_ALL);
|
isc_socket_cancel(sock, task, ISC_SOCKCANCEL_ALL);
|
||||||
}
|
}
|
||||||
@@ -1024,6 +1019,8 @@ main(int argc, char **argv) {
|
|||||||
isc_mem_put(rndc_mctx, args, argslen);
|
isc_mem_put(rndc_mctx, args, argslen);
|
||||||
isccc_ccmsg_invalidate(&ccmsg);
|
isccc_ccmsg_invalidate(&ccmsg);
|
||||||
|
|
||||||
|
dns_name_destroy();
|
||||||
|
|
||||||
isc_buffer_free(&databuf);
|
isc_buffer_free(&databuf);
|
||||||
|
|
||||||
if (show_final_mem)
|
if (show_final_mem)
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
<year>2016</year>
|
<year>2016</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
|
|||||||
@@ -44,7 +44,6 @@
|
|||||||
<year>2017</year>
|
<year>2017</year>
|
||||||
<year>2018</year>
|
<year>2018</year>
|
||||||
<year>2019</year>
|
<year>2019</year>
|
||||||
<year>2020</year>
|
|
||||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</docinfo>
|
</docinfo>
|
||||||
@@ -444,8 +443,7 @@
|
|||||||
allowed to incrementally re-sign over time.
|
allowed to incrementally re-sign over time.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
This command requires that the zone is configured with a
|
This command requires that the
|
||||||
<command>dnssec-policy</command>, or that the
|
|
||||||
<command>auto-dnssec</command> zone option
|
<command>auto-dnssec</command> zone option
|
||||||
be set to <literal>maintain</literal>,
|
be set to <literal>maintain</literal>,
|
||||||
and also requires the zone to be configured to
|
and also requires the zone to be configured to
|
||||||
@@ -774,7 +772,7 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Dump the security roots (i.e., trust anchors
|
Dump the security roots (i.e., trust anchors
|
||||||
configured via <command>trust-anchors</command> statements, or the
|
configured via <command>dnssec-keys</command> statements, or the
|
||||||
managed-keys or trusted-keys statements (both deprecated), or
|
managed-keys or trusted-keys statements (both deprecated), or
|
||||||
via <command>dnssec-validation auto</command>) and negative trust
|
via <command>dnssec-validation auto</command>) and negative trust
|
||||||
anchors for the specified views. If no view is specified, all
|
anchors for the specified views. If no view is specified, all
|
||||||
@@ -851,8 +849,7 @@
|
|||||||
re-signed with the new key set.
|
re-signed with the new key set.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
This command requires that the zone is configured with a
|
This command requires that the
|
||||||
<command>dnssec-policy</command>, or that the
|
|
||||||
<command>auto-dnssec</command> zone option be set
|
<command>auto-dnssec</command> zone option be set
|
||||||
to <literal>allow</literal> or
|
to <literal>allow</literal> or
|
||||||
<literal>maintain</literal>,
|
<literal>maintain</literal>,
|
||||||
@@ -1081,8 +1078,6 @@
|
|||||||
<para>
|
<para>
|
||||||
Enable, disable, or check the current status of
|
Enable, disable, or check the current status of
|
||||||
DNSSEC validation. By default, validation is enabled.
|
DNSSEC validation. By default, validation is enabled.
|
||||||
The cache is flushed when validation is turned on or off
|
|
||||||
to avoid using data that might differ between states.
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|||||||
+3
-7
@@ -366,8 +366,7 @@
|
|||||||
allowed to incrementally re-sign over time.
|
allowed to incrementally re-sign over time.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
This command requires that the zone is configured with a
|
This command requires that the
|
||||||
<span class="command"><strong>dnssec-policy</strong></span>, or that the
|
|
||||||
<span class="command"><strong>auto-dnssec</strong></span> zone option
|
<span class="command"><strong>auto-dnssec</strong></span> zone option
|
||||||
be set to <code class="literal">maintain</code>,
|
be set to <code class="literal">maintain</code>,
|
||||||
and also requires the zone to be configured to
|
and also requires the zone to be configured to
|
||||||
@@ -654,7 +653,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
Dump the security roots (i.e., trust anchors
|
Dump the security roots (i.e., trust anchors
|
||||||
configured via <span class="command"><strong>trust-anchors</strong></span> statements, or the
|
configured via <span class="command"><strong>dnssec-keys</strong></span> statements, or the
|
||||||
managed-keys or trusted-keys statements (both deprecated), or
|
managed-keys or trusted-keys statements (both deprecated), or
|
||||||
via <span class="command"><strong>dnssec-validation auto</strong></span>) and negative trust
|
via <span class="command"><strong>dnssec-validation auto</strong></span>) and negative trust
|
||||||
anchors for the specified views. If no view is specified, all
|
anchors for the specified views. If no view is specified, all
|
||||||
@@ -722,8 +721,7 @@
|
|||||||
re-signed with the new key set.
|
re-signed with the new key set.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
This command requires that the zone is configured with a
|
This command requires that the
|
||||||
<span class="command"><strong>dnssec-policy</strong></span>, or that the
|
|
||||||
<span class="command"><strong>auto-dnssec</strong></span> zone option be set
|
<span class="command"><strong>auto-dnssec</strong></span> zone option be set
|
||||||
to <code class="literal">allow</code> or
|
to <code class="literal">allow</code> or
|
||||||
<code class="literal">maintain</code>,
|
<code class="literal">maintain</code>,
|
||||||
@@ -916,8 +914,6 @@
|
|||||||
<p>
|
<p>
|
||||||
Enable, disable, or check the current status of
|
Enable, disable, or check the current status of
|
||||||
DNSSEC validation. By default, validation is enabled.
|
DNSSEC validation. By default, validation is enabled.
|
||||||
The cache is flushed when validation is turned on or off
|
|
||||||
to avoid using data that might differ between states.
|
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><span class="term"><strong class="userinput"><code>zonestatus <em class="replaceable"><code>zone</code></em> [<span class="optional"><em class="replaceable"><code>class</code></em> [<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
|
<dt><span class="term"><strong class="userinput"><code>zonestatus <em class="replaceable"><code>zone</code></em> [<span class="optional"><em class="replaceable"><code>class</code></em> [<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ create_managers(void) {
|
|||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
taskmgr = NULL;
|
taskmgr = NULL;
|
||||||
result = isc_taskmgr_create(mctx, 5, 0, NULL, &taskmgr);
|
result = isc_taskmgr_create(mctx, 5, 0, &taskmgr);
|
||||||
check_result(result, "isc_taskmgr_create");
|
check_result(result, "isc_taskmgr_create");
|
||||||
|
|
||||||
timermgr = NULL;
|
timermgr = NULL;
|
||||||
@@ -244,7 +244,8 @@ lookup(const char *target) {
|
|||||||
result = dns_name_fromtext(&name, &t, dns_rootname, 0, &namebuf);
|
result = dns_name_fromtext(&name, &t, dns_rootname, 0, &namebuf);
|
||||||
check_result(result, "dns_name_fromtext %s", target);
|
check_result(result, "dns_name_fromtext %s", target);
|
||||||
|
|
||||||
dns_name_dup(&name, mctx, &client->name);
|
result = dns_name_dup(&name, mctx, &client->name);
|
||||||
|
check_result(result, "dns_name_dup %s", target);
|
||||||
|
|
||||||
options = 0;
|
options = 0;
|
||||||
options |= DNS_ADBFIND_INET;
|
options |= DNS_ADBFIND_INET;
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
taskmgr = NULL;
|
taskmgr = NULL;
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, NULL, &taskmgr)
|
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, &taskmgr)
|
||||||
== ISC_R_SUCCESS);
|
== ISC_R_SUCCESS);
|
||||||
task = NULL;
|
task = NULL;
|
||||||
RUNTIME_CHECK(isc_task_create(taskmgr, 0, &task)
|
RUNTIME_CHECK(isc_task_create(taskmgr, 0, &task)
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
taskmgr = NULL;
|
taskmgr = NULL;
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, NULL, &taskmgr) ==
|
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, &taskmgr) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
task = NULL;
|
task = NULL;
|
||||||
RUNTIME_CHECK(isc_task_create(taskmgr, 0, &task) ==
|
RUNTIME_CHECK(isc_task_create(taskmgr, 0, &task) ==
|
||||||
|
|||||||
@@ -470,7 +470,7 @@ main(int argc, char *argv[]) {
|
|||||||
RUNCHECK(dst_lib_init(mctx, NULL));
|
RUNCHECK(dst_lib_init(mctx, NULL));
|
||||||
|
|
||||||
taskmgr = NULL;
|
taskmgr = NULL;
|
||||||
RUNCHECK(isc_taskmgr_create(mctx, 1, 0, NULL, &taskmgr));
|
RUNCHECK(isc_taskmgr_create(mctx, 1, 0, &taskmgr));
|
||||||
task = NULL;
|
task = NULL;
|
||||||
RUNCHECK(isc_task_create(taskmgr, 0, &task));
|
RUNCHECK(isc_task_create(taskmgr, 0, &task));
|
||||||
timermgr = NULL;
|
timermgr = NULL;
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ main(int argc, char *argv[]) {
|
|||||||
isc_interval_set(&linterval, 1, 0);
|
isc_interval_set(&linterval, 1, 0);
|
||||||
|
|
||||||
isc_mem_create(&mctx);
|
isc_mem_create(&mctx);
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx, 3, 0, NULL, &taskmgr) ==
|
RUNTIME_CHECK(isc_taskmgr_create(mctx, 3, 0, &taskmgr) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
RUNTIME_CHECK(isc_timermgr_create(mctx, &timermgr) ==
|
RUNTIME_CHECK(isc_timermgr_create(mctx, &timermgr) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ main(int argc, char *argv[]) {
|
|||||||
isc_mem_create(&mctx);
|
isc_mem_create(&mctx);
|
||||||
mctx2 = NULL;
|
mctx2 = NULL;
|
||||||
isc_mem_create(&mctx2);
|
isc_mem_create(&mctx2);
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, NULL, &task_manager) ==
|
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, &task_manager) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
RUNTIME_CHECK(isc_timermgr_create(mctx, &timer_manager) ==
|
RUNTIME_CHECK(isc_timermgr_create(mctx, &timer_manager) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ main(int argc, char *argv[]) {
|
|||||||
dst_result_register();
|
dst_result_register();
|
||||||
|
|
||||||
taskmgr = NULL;
|
taskmgr = NULL;
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx, 2, 0, NULL, &taskmgr) ==
|
RUNTIME_CHECK(isc_taskmgr_create(mctx, 2, 0, &taskmgr) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
task1 = NULL;
|
task1 = NULL;
|
||||||
RUNTIME_CHECK(isc_task_create(taskmgr, 0, &task1) == ISC_R_SUCCESS);
|
RUNTIME_CHECK(isc_task_create(taskmgr, 0, &task1) == ISC_R_SUCCESS);
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ main(int argc, char *argv[]) {
|
|||||||
* The task manager is independent (other than memory context)
|
* The task manager is independent (other than memory context)
|
||||||
*/
|
*/
|
||||||
manager = NULL;
|
manager = NULL;
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, NULL, &manager) ==
|
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, &manager) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
isc_mem_create(&mctx);
|
isc_mem_create(&mctx);
|
||||||
|
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, NULL, &manager) ==
|
RUNTIME_CHECK(isc_taskmgr_create(mctx, workers, 0, &manager) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
|
|
||||||
RUNTIME_CHECK(isc_task_create(manager, 0, &t1) == ISC_R_SUCCESS);
|
RUNTIME_CHECK(isc_task_create(manager, 0, &t1) == ISC_R_SUCCESS);
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ main(int argc, char *argv[]) {
|
|||||||
printf("%u workers\n", workers);
|
printf("%u workers\n", workers);
|
||||||
|
|
||||||
isc_mem_create(&mctx1);
|
isc_mem_create(&mctx1);
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx1, workers, 0, NULL, &manager) ==
|
RUNTIME_CHECK(isc_taskmgr_create(mctx1, workers, 0, &manager) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
RUNTIME_CHECK(isc_timermgr_create(mctx1, &timgr) == ISC_R_SUCCESS);
|
RUNTIME_CHECK(isc_timermgr_create(mctx1, &timgr) == ISC_R_SUCCESS);
|
||||||
|
|
||||||
|
|||||||
@@ -146,11 +146,12 @@ query(void) {
|
|||||||
dns_fixedname_t name;
|
dns_fixedname_t name;
|
||||||
dns_fixedname_t found;
|
dns_fixedname_t found;
|
||||||
dns_db_t *db;
|
dns_db_t *db;
|
||||||
|
char *s;
|
||||||
isc_buffer_t buffer;
|
isc_buffer_t buffer;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
dns_rdataset_t rdataset;
|
dns_rdataset_t rdataset;
|
||||||
dns_rdataset_t sigset;
|
dns_rdataset_t sigset;
|
||||||
fd_set rfdset = { { 0 } };
|
fd_set rfdset;
|
||||||
|
|
||||||
db = NULL;
|
db = NULL;
|
||||||
result = dns_zone_getdb(zone, &db);
|
result = dns_zone_getdb(zone, &db);
|
||||||
@@ -165,7 +166,7 @@ query(void) {
|
|||||||
dns_rdataset_init(&sigset);
|
dns_rdataset_init(&sigset);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
char *s;
|
|
||||||
fprintf(stdout, "zone_test ");
|
fprintf(stdout, "zone_test ");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
FD_ZERO(&rfdset);
|
FD_ZERO(&rfdset);
|
||||||
@@ -280,7 +281,7 @@ main(int argc, char **argv) {
|
|||||||
|
|
||||||
RUNTIME_CHECK(isc_app_start() == ISC_R_SUCCESS);
|
RUNTIME_CHECK(isc_app_start() == ISC_R_SUCCESS);
|
||||||
isc_mem_create(&mctx);
|
isc_mem_create(&mctx);
|
||||||
RUNTIME_CHECK(isc_taskmgr_create(mctx, 2, 0, NULL, &taskmgr) ==
|
RUNTIME_CHECK(isc_taskmgr_create(mctx, 2, 0, &taskmgr) ==
|
||||||
ISC_R_SUCCESS);
|
ISC_R_SUCCESS);
|
||||||
RUNTIME_CHECK(isc_timermgr_create(mctx, &timermgr) == ISC_R_SUCCESS);
|
RUNTIME_CHECK(isc_timermgr_create(mctx, &timermgr) == ISC_R_SUCCESS);
|
||||||
RUNTIME_CHECK(isc_socketmgr_create(mctx, &socketmgr) == ISC_R_SUCCESS);
|
RUNTIME_CHECK(isc_socketmgr_create(mctx, &socketmgr) == ISC_R_SUCCESS);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ named.lock
|
|||||||
named.pid
|
named.pid
|
||||||
named.run
|
named.run
|
||||||
/feature-test
|
/feature-test
|
||||||
/test.output.*
|
**/test.output
|
||||||
/systests.output
|
/systests.output
|
||||||
/random.data
|
/random.data
|
||||||
parallel.mk
|
parallel.mk
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ parallel.mk:
|
|||||||
|
|
||||||
test: parallel.mk subdirs
|
test: parallel.mk subdirs
|
||||||
@$(MAKE) -f parallel.mk check
|
@$(MAKE) -f parallel.mk check
|
||||||
@$(SHELL) ./runsequential.sh
|
@$(SHELL) ./runsequential.sh -r
|
||||||
@$(SHELL) ./testsummary.sh
|
@$(SHELL) ./testsummary.sh
|
||||||
|
|
||||||
check: test
|
check: test
|
||||||
|
|||||||
+74
-21
@@ -98,6 +98,19 @@ Optional flags are:
|
|||||||
ports 7900 through 7999). If not specified, the test will
|
ports 7900 through 7999). If not specified, the test will
|
||||||
have ports 5000 to 5099 available to it.
|
have ports 5000 to 5099 available to it.
|
||||||
|
|
||||||
|
-r The "runall" flag. This is related to cleaning up after
|
||||||
|
the tests (see "Maintenance Notes" below). If specified,
|
||||||
|
it prevents a copy of the test's output listing from being
|
||||||
|
deleted when the directory is cleaned up after the test
|
||||||
|
completes. (The test's output listing comprises messages
|
||||||
|
produced by the test during its execution; it does not
|
||||||
|
include the output files produced by utilities such as
|
||||||
|
"dig" or "rndc", nor any logging output from named itself.)
|
||||||
|
It is usually only used when "run.sh" is being called
|
||||||
|
during a run of the entire test suite. Note that if "-n"
|
||||||
|
is specified on the "run.sh" command line, the test output
|
||||||
|
is retained even if this option is omitted.
|
||||||
|
|
||||||
Arguments are:
|
Arguments are:
|
||||||
|
|
||||||
test-name Mandatory. The name of the test, which is the name of the
|
test-name Mandatory. The name of the test, which is the name of the
|
||||||
@@ -240,12 +253,22 @@ Re-Running the Tests
|
|||||||
---
|
---
|
||||||
If there is a requirement to re-run a test (or the entire test suite), the
|
If there is a requirement to re-run a test (or the entire test suite), the
|
||||||
files produced by the tests should be deleted first. Normally, these files are
|
files produced by the tests should be deleted first. Normally, these files are
|
||||||
deleted if the test succeeds but are retained on error. The run.sh script
|
deleted if the test succeeds but are retained on error.
|
||||||
automatically calls a given test's clean.sh script before invoking its setup.sh
|
|
||||||
script.
|
Deletion of files produced by an individual test can be done with the command:
|
||||||
|
|
||||||
|
sh clean.sh [-r] <test-name>
|
||||||
|
|
||||||
|
The optional flag is:
|
||||||
|
|
||||||
|
-r The "runall" flag. This is related to cleaning up after
|
||||||
|
the tests (see "Maintenance Notes" below). If specified,
|
||||||
|
it prevents a copy of the test's output listing from being
|
||||||
|
deleted when the directory is cleaned after the test
|
||||||
|
completes.
|
||||||
|
|
||||||
Deletion of the files produced by the set of tests (e.g. after the execution
|
Deletion of the files produced by the set of tests (e.g. after the execution
|
||||||
of "runall.sh") can be carried out using the command:
|
of "runall.sh") can be deleted by the command:
|
||||||
|
|
||||||
sh cleanall.sh
|
sh cleanall.sh
|
||||||
|
|
||||||
@@ -561,6 +584,10 @@ By default, start.pl starts a "named" server with the following options:
|
|||||||
preventing multiple instances of this named running in this
|
preventing multiple instances of this named running in this
|
||||||
directory (which could possibly interfere with the test).
|
directory (which could possibly interfere with the test).
|
||||||
|
|
||||||
|
In addition, start.pl also sets the following undocumented flag:
|
||||||
|
|
||||||
|
-T clienttest Makes clients single-shot with their own memory context.
|
||||||
|
|
||||||
All output is sent to a file called "named.run" in the nameserver directory.
|
All output is sent to a file called "named.run" in the nameserver directory.
|
||||||
|
|
||||||
The options used to start named can be altered. There are three ways of doing
|
The options used to start named can be altered. There are three ways of doing
|
||||||
@@ -581,9 +608,9 @@ the named command-line arguments. The rest of the file is ignored.
|
|||||||
|
|
||||||
3. Tweaking the default command line arguments with "-T" options. This flag is
|
3. Tweaking the default command line arguments with "-T" options. This flag is
|
||||||
used to alter the behavior of BIND for testing and is not documented in the
|
used to alter the behavior of BIND for testing and is not documented in the
|
||||||
ARM. The presence of certain files in the "nsN" directory adds flags to
|
ARM. The "clienttest" option has already been mentioned, but the presence of
|
||||||
the default command line (the content of the files is irrelevant - it
|
certain files in the "nsN" directory adds flags to the default command line
|
||||||
is only the presence that counts):
|
(the content of the files is irrelevant - it is only the presence that counts):
|
||||||
|
|
||||||
named.noaa Appends "-T noaa" to the command line, which causes
|
named.noaa Appends "-T noaa" to the command line, which causes
|
||||||
"named" to never set the AA bit in an answer.
|
"named" to never set the AA bit in an answer.
|
||||||
@@ -608,6 +635,7 @@ is only the presence that counts):
|
|||||||
the additional section if the response is triggered by RPZ
|
the additional section if the response is triggered by RPZ
|
||||||
rewriting).
|
rewriting).
|
||||||
|
|
||||||
|
|
||||||
Starting Other Nameservers
|
Starting Other Nameservers
|
||||||
---
|
---
|
||||||
In contrast to "named", nameservers written in Perl or Python (whose script
|
In contrast to "named", nameservers written in Perl or Python (whose script
|
||||||
@@ -686,7 +714,7 @@ the ports are assigned when the tests are run. This is achieved by having the
|
|||||||
when "make check" is run, and contains a target for each test of the form:
|
when "make check" is run, and contains a target for each test of the form:
|
||||||
|
|
||||||
<test-name>:
|
<test-name>:
|
||||||
@$(SHELL) run.sh -p <baseport> <test-name>
|
@$(SHELL) run.sh -r -p <baseport> <test-name>
|
||||||
|
|
||||||
The <baseport> is unique and the values of <baseport> for each test are
|
The <baseport> is unique and the values of <baseport> for each test are
|
||||||
separated by at least 100 ports.
|
separated by at least 100 ports.
|
||||||
@@ -694,27 +722,52 @@ separated by at least 100 ports.
|
|||||||
|
|
||||||
Cleaning Up From Tests
|
Cleaning Up From Tests
|
||||||
---
|
---
|
||||||
When a test is run, up to three different types of files are created:
|
When a test is run, files are created in the test directory. These files fall
|
||||||
|
into three categories:
|
||||||
|
|
||||||
1. Files generated by the test itself, e.g. output from "dig" and "rndc", are
|
1. Files generated by the test itself, e.g. output from "dig" and "rndc".
|
||||||
stored in the test directory.
|
|
||||||
|
|
||||||
2. Files produced by named which may not be cleaned up if named exits
|
2. Files produced by named which may not be cleaned up if named exits
|
||||||
abnormally, e.g. core files, PID files etc., are stored in the test directory.
|
abnormally, e.g. core files, PID files etc.
|
||||||
|
|
||||||
3. A file "test.output.<test-name>" containing the text written to stdout by the
|
3. The file "test.output" containing the text written to stdout by the test.
|
||||||
test is written to bin/tests/system/. This file is only produced when the test
|
This is only produced when the test is run as part of the entire test suite
|
||||||
is run as part of the entire test suite (e.g. via "runall.sh").
|
(e.g. via "runall.sh").
|
||||||
|
|
||||||
If the test fails, all these files are retained. But if the test succeeds,
|
If the test fails, all these files are retained. But if the test succeeds,
|
||||||
they are cleaned up at different times:
|
they are cleaned up at different times:
|
||||||
|
|
||||||
1. Files generated by the test itself are cleaned up by the test's own
|
1. Files generated by the test itself are cleaned up by the test's own
|
||||||
"clean.sh", which is called from "run.sh".
|
"clean.sh". This is called from the system's "clean.sh", which in turn is
|
||||||
|
called from "run.sh".
|
||||||
|
|
||||||
2. Files that may not be cleaned up if named exits abnormally can be removed
|
2. Files that may not be cleaned up if named exits abnormally are removed
|
||||||
using the "cleanall.sh" script.
|
by the system's "clean.sh".
|
||||||
|
|
||||||
3. "test.output.*" files are deleted when the test suite ends. At this point,
|
3. "test.output" files are deleted when the test suite ends. At this point,
|
||||||
the file "testsummary.sh" is called which concatenates all the "test.output.*"
|
the file "testsummary.sh" is called which concatenates all the "test.output"
|
||||||
files into a single "systests.output" file before deleting them.
|
files into a single "systest.output" file before deleting them.
|
||||||
|
|
||||||
|
A complication arises with the "test.output" file however:
|
||||||
|
|
||||||
|
1. "clean.sh" is called by "run.sh" if the test ends successfully. For
|
||||||
|
this reason, "clean.sh" cannot delete "test.output" as, if the test is
|
||||||
|
being run as part of a test suite, the file must be retained.
|
||||||
|
|
||||||
|
2. If the deletion of "test.output" were to be solely the responsibility of
|
||||||
|
"testsummary.sh", should a test suite terminate abnormally, cleaning up a test
|
||||||
|
directory with "sh clean.sh <test-directory>" would leave the file present.
|
||||||
|
|
||||||
|
3. An additional step could be added to "cleanall.sh" (which calls the
|
||||||
|
system's "clean.sh" for each test) to remove the "test.output" file. However,
|
||||||
|
although the file would be deleted should all test directories be cleaned,
|
||||||
|
it would still mean that running "clean.sh" on a particular test directory
|
||||||
|
could leave the file present.
|
||||||
|
|
||||||
|
To get round this, the system's "clean.sh" script takes an optional flag, "-r"
|
||||||
|
(the "runall" flag). When the test suite is run, each invocation of "run.sh"
|
||||||
|
is passed the runall flag. In turn, "run.sh" passes the flag to "clean.sh",
|
||||||
|
which causes that script not to delete the "tests.output" file. In other
|
||||||
|
words, when the system's "clean.sh" is invoked standalone on a test directory
|
||||||
|
(or as part of a run of "cleanall.sh"), it will delete the "test.output" if it
|
||||||
|
is present. When invoked during a run of the entire test suite, it won't.
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# this server runs named with only one worker thread
|
# this server runs named with only one worker thread
|
||||||
-m record,size,mctx -c named.conf -d 99 -D additional-ns1 -X named.lock -g -n 1
|
-m record,size,mctx -c named.conf -d 99 -D additional-ns1 -X named.lock -g -T clienttest -n 1
|
||||||
|
|||||||
@@ -9,34 +9,32 @@
|
|||||||
# See the COPYRIGHT file distributed with this work for additional
|
# See the COPYRIGHT file distributed with this work for additional
|
||||||
# information regarding copyright ownership.
|
# information regarding copyright ownership.
|
||||||
|
|
||||||
rm -f ./dig.out.*
|
rm -f dig.out.*
|
||||||
rm -f ./rndc.out*
|
rm -f rndc.out*
|
||||||
rm -f ./showzone.out*
|
rm -f showzone.out*
|
||||||
rm -f ./zonestatus.out*
|
rm -f zonestatus.out*
|
||||||
rm -f ./*/named.conf
|
rm -f */named.conf
|
||||||
rm -f ./*/named.memstats
|
rm -f */named.memstats
|
||||||
rm -f ./ns1/*.nzf ./ns1/*.nzf~
|
rm -f ns1/*.nzf ns1/*.nzf~
|
||||||
rm -f ./ns1/*.nzd ./ns1/*.nzd-lock
|
rm -f ns1/*.nzd ns1/*.nzd-lock
|
||||||
rm -f ./ns2/*.nzf ./ns2/*.nzf~
|
rm -f ns2/*.nzf ns2/*.nzf~
|
||||||
rm -f ./ns2/*.nzd ./ns2/*.nzd-lock
|
rm -f ns2/*.nzd ns2/*.nzd-lock
|
||||||
rm -f ./ns3/*.nzf ./ns3/*.nzf~
|
rm -f ns3/*.nzf ns3/*.nzf~
|
||||||
rm -f ./ns3/*.nzd ./ns3/*.nzd-lock
|
rm -f ns3/*.nzd ns3/*.nzd-lock
|
||||||
rm -f ./ns2/core*
|
rm -f ns2/core*
|
||||||
rm -f ./ns2/inline.db.jbk
|
rm -f ns2/inline.db.jbk
|
||||||
rm -f ./ns2/inline.db.signed
|
rm -f ns2/inline.db.signed
|
||||||
rm -f ./ns2/inlineslave.bk*
|
rm -f ns2/inlineslave.bk*
|
||||||
rm -rf ./ns2/new-zones
|
rm -rf ns2/new-zones
|
||||||
rm -f ./ns*/named.lock
|
rm -f ns*/named.lock
|
||||||
rm -f ./ns*/named.run ./ns*/named.run.prev
|
rm -f ns*/named.run
|
||||||
rm -f ./ns2/nzf-*
|
rm -f ns2/nzf-*
|
||||||
rm -f ./ns3/named.conf
|
rm -f ns3/named.conf
|
||||||
rm -f ./ns3/*.nzf ./ns3/*.nzf~
|
rm -f ns3/*.nzf ns3/*.nzf~
|
||||||
rm -f ./ns3/*.nzd ns3/*.nzd-lock
|
rm -f ns3/*.nzd ns3/*.nzd-lock
|
||||||
rm -f ./ns3/inlineslave.db
|
rm -f ns3/inlineslave.db
|
||||||
rm -f ./ns1/redirect.db
|
rm -f ns1/redirect.db
|
||||||
rm -f ./ns2/redirect.db
|
rm -f ns2/redirect.db
|
||||||
rm -f ./ns2/redirect.bk
|
rm -f ns2/redirect.bk
|
||||||
rm -f ./ns3/redirect.db
|
rm -f ns3/redirect.db
|
||||||
rm -f ./ns*/managed-keys.bind* ns*/*.mkeys*
|
rm -f ns*/managed-keys.bind* ns*/*.mkeys*
|
||||||
rm -f ./nzd2nzf.out.*
|
|
||||||
rm -f ./wait_for_message.*
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user