From: Kees Monshouwer Date: Wed, 10 Dec 2014 11:27:08 +0000 (+0100) Subject: root MX test X-Git-Tag: rec-3.7.0-rc1~109^2~14^2~10^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=834e6eabb87675c74f425d8510dc72bb0149a41a;p=thirdparty%2Fpdns.git root MX test --- diff --git a/regression-tests/tests/root-mx/command b/regression-tests/tests/root-mx/command new file mode 100755 index 0000000000..bf4af4781e --- /dev/null +++ b/regression-tests/tests/root-mx/command @@ -0,0 +1,2 @@ +#!/bin/sh +cleandig test.com MX diff --git a/regression-tests/tests/root-mx/description b/regression-tests/tests/root-mx/description new file mode 100644 index 0000000000..411ed27bd9 --- /dev/null +++ b/regression-tests/tests/root-mx/description @@ -0,0 +1 @@ +This test makes sure an MX record pointing at the root works diff --git a/regression-tests/tests/root-mx/expected_result b/regression-tests/tests/root-mx/expected_result new file mode 100644 index 0000000000..c4c3dccea9 --- /dev/null +++ b/regression-tests/tests/root-mx/expected_result @@ -0,0 +1,4 @@ +0 test.com. IN MX 3600 10 . +0 test.com. IN MX 3600 15 smtp-servers.test.com. +Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 +Reply to question for qname='test.com.', qtype=MX diff --git a/regression-tests/zones/test.com b/regression-tests/zones/test.com index 7a74777bf5..818e1ff0a6 100644 --- a/regression-tests/zones/test.com +++ b/regression-tests/zones/test.com @@ -9,7 +9,7 @@ $ORIGIN test.com. @ IN NS ns1 @ IN NS ns2 -@ IN MX 10 smtp-servers.example.com. +@ IN MX 10 . @ IN MX 15 smtp-servers ns1 IN A 1.1.1.1 ns2 IN A 2.2.2.2