From 834e6eabb87675c74f425d8510dc72bb0149a41a Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 10 Dec 2014 12:27:08 +0100 Subject: [PATCH] root MX test --- regression-tests/tests/root-mx/command | 2 ++ regression-tests/tests/root-mx/description | 1 + regression-tests/tests/root-mx/expected_result | 4 ++++ regression-tests/zones/test.com | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 regression-tests/tests/root-mx/command create mode 100644 regression-tests/tests/root-mx/description create mode 100644 regression-tests/tests/root-mx/expected_result diff --git a/regression-tests/tests/root-mx/command b/regression-tests/tests/root-mx/command new file mode 100755 index 000000000..bf4af4781 --- /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 000000000..411ed27bd --- /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 000000000..c4c3dccea --- /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 7a74777bf..818e1ff0a 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 -- 2.49.0