]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/resolve/test-dnssec-complex.c
Merge pull request #2358 from poettering/dnssec16
[thirdparty/systemd.git] / src / resolve / test-dnssec-complex.c
index ee88e8e8ce4cba7c9e137e51e1c18a96b845f334..caac251e836fe108f56df79552c7d1b8e34baf8a 100644 (file)
@@ -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;
 }