diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-18 22:43:21 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-18 23:31:16 +0100 |
commit | 8f4560c7b9ed72ceac2d094dc6a40ac6303d52c1 (patch) | |
tree | e5d3d72ce48a16d11cc2cc889769647cb15ff44a | |
parent | 942eb2e71b0faba083e22f2e73b7ec544e7ac091 (diff) |
resolved: add DNAME test case to the complex DNSSEC test
-rw-r--r-- | src/resolve/test-dnssec-complex.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resolve/test-dnssec-complex.c b/src/resolve/test-dnssec-complex.c index ee88e8e8ce..caac251e83 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; } |