]> git.ipfire.org Git - thirdparty/pdns.git/blame - regression-tests.nobackend/negcache-tests-dotted-cname/command
portablise
[thirdparty/pdns.git] / regression-tests.nobackend / negcache-tests-dotted-cname / command
CommitLineData
48b10621
PL
1#!/usr/bin/env bash
2set -e
9091cf89
PL
3if [ "${PDNS_DEBUG}" = "YES" ]; then
4 set -x
5fi
48b10621
PL
6
7port=5501
8rm -f pdns*.pid
9
411869d9 10PYTHONUNBUFFERED=1 $PDNS --daemon=no --local-port=$port --socket-dir=./ \
48b10621
PL
11 --no-shuffle --launch=bind,pipe --bind-config=negcache-tests-dotted-cname/named.conf \
12 --pipe-command=negcache-tests-dotted-cname/pipe.py \
40fc506f 13 --cache-ttl=60 --no-config --module-dir=../regression-tests/modules &
48b10621
PL
14
15sleep 3
16
17$SDIG 127.0.0.1 5501 cname.example2.com A | LC_ALL=C sort
18
19# check if we didn't neg-cache .com
20$SDIG 127.0.0.1 5501 www.example.com A | LC_ALL=C sort
21
22kill $(cat pdns*.pid)
23rm pdns*.pid