mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-05-25 02:39:34 -04:00
The Additional section of the answers should be compared with BIND on expected delegations. Knot DNS also puts A/AAAA records into the Additional section for NS, MX, and SRV records. |
||
|---|---|---|
| .. | ||
| data | ||
| tests | ||
| tools | ||
| .gitignore | ||
| Dockerfile | ||
| README | ||
| requirements.txt | ||
| runtests.py | ||
Prerequisites: ============= Python >=3.3 python3-dnspython >=1.11.1 psutil (sudo pip3 install psutil) dnssec-signzone dnssec-keygen dnssec-verify Bind 9.9.x lsof gawk (valgrind) (gdb) Python modules: --------------- To install necessary Python modules using pip, run: $ pip install -r requirements.txt Ubuntu: ------- Disable apparmor protection for system Bind: # sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.named Allow ptrace: # echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope or change file /etc/sysctl.d/10-ptrace.conf kernel.yama.ptrace_scope = 0 Running in docker container: ---------------------------- There is a Dockerfile that can be used to build containers with the tests-extra, the main benefit is that each test runs in an isolated container and can be run in parallel. Run tests on the upstream branch: --------------------------------- $ docker pull cznic/knot:tests-extra # Or build with 'docker build -t tests-extra .' $ docker run -it -v cznic/knot:tests-extra basic Run tests on the local executables: ----------------------------------- You can bind-mount the /src with the current working copy. $ docker run -it -v $(pwd)/..:/knot-src cznic/knot:tests-extra basic