./launch-pdns
-dig -p 5301 @127.0.0.1 smoke.bind.example.org 2>&1 | tee "$TMPFILE"
+../../pdns/sdig 127.0.0.1 5301 smoke.bind.example.org A 2>&1 | tee "$TMPFILE"
if grep -c '127\.0\.0\.123' "$TMPFILE"; then
echo success
./launch-pdns
-dig -p 5301 @127.0.0.1 smoke.lmdb.example.org SOA 2>&1 | tee "$TMPFILE"
+../../pdns/sdig 127.0.0.1 5301 smoke.lmdb.example.org SOA 2>&1 | tee "$TMPFILE"
if grep -c 'a.misconfigured' "$TMPFILE"; then
echo success
Tests: smoke-bind
-Depends: dnsutils,
- pdns-backend-bind,
- pdns-server
+Depends: pdns-backend-bind,
+ pdns-server,
+ pdns-tools
Restrictions: needs-root
Tests: smoke-mysql
-Depends: dnsutils,
- mariadb-server,
+Depends: mariadb-server,
pdns-backend-mysql,
- pdns-server
+ pdns-server,
+ pdns-tools
Restrictions: needs-root, isolation-container
Tests: smoke-mysql-sp
-Depends: dnsutils,
- mariadb-server,
+Depends: mariadb-server,
pdns-backend-mysql,
- pdns-server
+ pdns-server,
+ pdns-tools
Restrictions: needs-root, isolation-container
Tests: smoke-pgsql
-Depends: dnsutils,
- pdns-backend-pgsql,
+Depends: pdns-backend-pgsql,
pdns-server,
+ pdns-tools,
postgresql
Restrictions: needs-root, isolation-container
}
trap cleanup EXIT
-dig @127.0.0.1 smoke.$ZONE 2>&1 | tee "$TMPFILE"
+sdig 127.0.0.1 53 smoke.$ZONE A 2>&1 | tee "$TMPFILE"
if grep -c '127\.0\.0\.222' "$TMPFILE"; then
echo success
}
trap cleanup EXIT
-dig @127.0.0.1 smoke.$ZONE 2>&1 | tee "$TMPFILE"
+sdig 127.0.0.1 53 smoke.$ZONE A 2>&1 | tee "$TMPFILE"
if grep -c '127\.0\.0\.222' "$TMPFILE"; then
echo success
}
trap cleanup EXIT
-dig @127.0.0.1 smoke.$ZONE 2>&1 | tee "$TMPFILE"
+sdig 127.0.0.1 53 smoke.$ZONE A 2>&1 | tee "$TMPFILE"
if grep -c '127\.0\.0\.222' "$TMPFILE"; then
echo success
}
trap cleanup EXIT
-dig @127.0.0.1 smoke.$ZONE 2>&1 | tee "$TMPFILE"
+sdig 127.0.0.1 53 smoke.$ZONE A 2>&1 | tee "$TMPFILE"
if grep -c '127\.0\.0\.222' "$TMPFILE"; then
echo success