fi
if [ "$zone" = "stest.com" ]; then
if [[ $skipreasons != *nolua* ]]; then
- $PDNSUTIL --config-dir=. --config-name=gmysql2 set-meta stest.com AXFR-SOURCE 127.0.0.2
+ $PDNSUTIL --config-dir=. --config-name=godbc2 set-meta stest.com AXFR-SOURCE 127.0.0.2
fi
fi
done
[ -z "$GPGSQLDB" ] && GPGSQLDB=pdnstest
[ -z "$GPGSQLUSER" ] && GPGSQLUSER=$(whoami)
- dropdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring mysqladmin drop failure
- createdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring mysqladmin drop failure
+ dropdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring dropdb failure
+ createdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring createdb failure
psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../modules/gpgsqlbackend/schema.pgsql.sql
tosql gpgsql | psql --user="$GPGSQLUSER" "$GPGSQLDB" 2>&1 | uniq -c
psql --user="$GPGSQLUSER" -c "ANALYZE" "$GPGSQLDB"
- context=${context}-presigned-gpgql
+ context=${context}-presigned-gpgsql
[ -z "$GPGSQ2LDB" ] && GPGSQL2DB=pdnstest2
[ -z "$GPGSQL2USER" ] && GPGSQL2USER=$(whoami)
- dropdb --user="$GPGSQL2USER" "$GPGSQL2DB" || echo ignoring mysqladmin drop failure
- createdb --user="$GPGSQL2USER" "$GPGSQL2DB" || echo ignoring mysqladmin drop failure
+ dropdb --user="$GPGSQL2USER" "$GPGSQL2DB" || echo ignoring dropdb failure
+ createdb --user="$GPGSQL2USER" "$GPGSQL2DB" || echo ignoring createdb failure
psql --user="$GPGSQL2USER" "$GPGSQL2DB" < ../modules/gpgsqlbackend/schema.pgsql.sql
cat > pdns-gpgsql2.conf << __EOF__
fi
if [ "$zone" = "stest.com" ]; then
if [[ $skipreasons != *nolua* ]]; then
- $PDNSUTIL --config-dir=. --config-name=gmysql2 set-meta stest.com AXFR-SOURCE 127.0.0.2
+ $PDNSUTIL --config-dir=. --config-name=gpgsql2 set-meta stest.com AXFR-SOURCE 127.0.0.2
fi
fi
done
fi
if [ "$zone" = "stest.com" ]; then
if [[ $skipreasons != *nolua* ]]; then
- $PDNSUTIL --config-dir=. --config-name=gmysql2 set-meta stest.com AXFR-SOURCE 127.0.0.2
+ $PDNSUTIL --config-dir=. --config-name=gsqlite32 set-meta stest.com AXFR-SOURCE 127.0.0.2
fi
fi
done
function prequery ( dnspacket )
qname, qtype = dnspacket:getQuestion()
remote = dnspacket:getRemote()
- if qname == "stest.com" and remote ~= "127.0.0.2" then
+ if qname == "stest.com." and remote ~= "127.0.0.2" then
dnspacket:setRcode(pdns.NXDOMAIN)
return true
end
rm -f pdns*.pid
rm -f *_tests
+rm -f pdns-*.conf
presigned=no
both=no
for zone in $(grep 'zone ' named.conf | cut -f2 -d\")
do
- if [ "${zone: 0:16}" != "secure-delegated" ]
+ if [ "${zone: 0:16}" != "secure-delegated" ] && [ "$zone" != "stest.com" ]
then
drill -p $port -o rd -D dnskey $zone @$nameserver | grep $'DNSKEY\t257' | grep -v 'RRSIG' | grep -v '^;' | grep -v AwEAAarTiHhPgvD28WCN8UBXcEcf8f >> trustedkeys
fi