#!/bin/sh
# This runs the upstream testsuite, but with a local DNS server
# to prevent the test suite from reaching out to the internet.
set -eux

sudo sh -c 'echo include \"/etc/bind/zones.rfc1918\"\; > /etc/bind/named.conf.local'
sudo systemctl reload named

export TESTDATA_UPSTREAM_SERVER="localhost"

exec /usr/bin/dh_golang_autopkgtest
