From: Lennart Poettering Date: Mon, 18 Jan 2016 21:43:21 +0000 (+0100) Subject: resolved: add DNAME test case to the complex DNSSEC test X-Git-Tag: v229~128^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f4560c7b9ed72ceac2d094dc6a40ac6303d52c1;p=thirdparty%2Fsystemd.git resolved: add DNAME test case to the complex DNSSEC test --- diff --git a/src/resolve/test-dnssec-complex.c b/src/resolve/test-dnssec-complex.c index ee88e8e8ce4..caac251e836 100644 --- a/src/resolve/test-dnssec-complex.c +++ b/src/resolve/test-dnssec-complex.c @@ -227,5 +227,12 @@ int main(int argc, char* argv[]) { test_hostname_lookup(bus, "pöttering.de", AF_INET6, NULL); #endif + /* DNAME, pointing to NXDOMAIN */ + test_rr_lookup(bus, ".ireallyhpoethisdoesnexist.xn--kprw13d.", DNS_TYPE_A, _BUS_ERROR_DNS "NXDOMAIN"); + test_rr_lookup(bus, ".ireallyhpoethisdoesnexist.xn--kprw13d.", DNS_TYPE_RP, _BUS_ERROR_DNS "NXDOMAIN"); + test_hostname_lookup(bus, ".ireallyhpoethisdoesntexist.xn--kprw13d.", AF_UNSPEC, _BUS_ERROR_DNS "NXDOMAIN"); + test_hostname_lookup(bus, ".ireallyhpoethisdoesntexist.xn--kprw13d.", AF_INET, _BUS_ERROR_DNS "NXDOMAIN"); + test_hostname_lookup(bus, ".ireallyhpoethisdoesntexist.xn--kprw13d.", AF_INET6, _BUS_ERROR_DNS "NXDOMAIN"); + return 0; }