-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:NLnetLabs/nsd
- Loading branch information
Showing
10 changed files
with
195 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule simdzone
updated
13 files
+134 −62 | FORMAT.md | |
+2 −0 | README.md | |
+26 −5 | include/zone.h | |
+1 −1 | src/bench.c | |
+10 −0 | src/generic/endian.h | |
+17 −4 | src/generic/format.h | |
+1 −1 | src/generic/types.h | |
+12 −2 | src/zone.c | |
+1 −1 | tests/CMakeLists.txt | |
+11 −11 | tests/bits.c | |
+112 −0 | tests/include.c | |
+1 −1 | tests/tools.c | |
+174 −0 | tests/ttl.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
server: | ||
zonesdir: "" | ||
username: "" | ||
chroot: "" | ||
pidfile: nsd.pid | ||
logfile: nsd.log | ||
xfrdfile: nsd.xfrd | ||
zonelistfile: "zone.list" | ||
interface: 127.0.0.1 | ||
zonefiles-check: yes | ||
|
||
zone: | ||
name: example.com | ||
zonefile: example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
BaseName: includes | ||
Version: 1.0 | ||
Description: Test for tracking include dependencies | ||
CreationDate: Fri Aug 23 9:47:00 CET 2024 | ||
Maintainer: Jeroen Koekkoek | ||
Category: | ||
Component: | ||
Depends: | ||
Help: | ||
Pre: | ||
Post: | ||
Test: includes.test | ||
AuxFiles: includes.conf | ||
Passed: | ||
Failure: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
# #-- includes.test --# | ||
# source the master var file when it's there | ||
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master | ||
# use .tpkg.var.test for in test variable passing | ||
[ -f .tpkg.var.test ] && source .tpkg.var.test | ||
. ../common.sh | ||
get_random_port 1 | ||
|
||
# start NSD | ||
PRE="../.." | ||
NSD="$PRE/nsd" | ||
|
||
example_com=" | ||
\$ORIGIN example.com. | ||
\$INCLUDE example.com.soa | ||
\$INCLUDE example.com.data | ||
" | ||
|
||
soa="@ IN SOA ns hostmaster 2024082300 6h 2h 7h 1h" | ||
|
||
data="\$INCLUDE example.com.hosts" | ||
|
||
hosts="www A 192.0.2.2" | ||
|
||
echo "$example_com" > example.com | ||
echo "$soa" > example.com.soa | ||
echo "$data" > example.com.data | ||
echo "$hosts" > example.com.hosts | ||
|
||
$NSD -c includes.conf -p $RND_PORT | ||
wait_nsd_up nsd.log | ||
dig @127.0.0.1 -p $RND_PORT www.example.com | ||
if dig @127.0.0.1 -p $RND_PORT www.example.com A | grep 192.0.2.2; then | ||
echo "started successfully" | ||
else | ||
cat nsd.log | ||
echo "failed to start" | ||
kill_from_pidfile nsd.pid | ||
exit 1 | ||
fi | ||
|
||
hosts="www A 192.0.2.3" | ||
echo "$hosts" > example.com.hosts | ||
kill -1 `cat nsd.pid` | ||
|
||
wait_logfile nsd.log "SIGHUP received, reloading..." | ||
sleep 1 | ||
dig @127.0.0.1 -p $RND_PORT www.example.com | ||
if dig @127.0.0.1 -p $RND_PORT www.example.com A | grep 192.0.2.3; then | ||
echo "reloaded successfully" | ||
else | ||
cat nsd.log | ||
echo "failed to reload" | ||
kill_from_pidfile nsd.pid | ||
exit 1 | ||
fi | ||
|
||
kill_from_pidfile nsd.pid | ||
rm -f example.com example.com.soa example.com.data example.com.hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters