]> granicus.if.org Git - pdns/commitdiff
root MX test
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 10 Dec 2014 11:27:08 +0000 (12:27 +0100)
committermind04 <mind04@monshouwer.org>
Wed, 10 Dec 2014 11:28:39 +0000 (12:28 +0100)
regression-tests/tests/root-mx/command [new file with mode: 0755]
regression-tests/tests/root-mx/description [new file with mode: 0644]
regression-tests/tests/root-mx/expected_result [new file with mode: 0644]
regression-tests/zones/test.com

diff --git a/regression-tests/tests/root-mx/command b/regression-tests/tests/root-mx/command
new file mode 100755 (executable)
index 0000000..bf4af47
--- /dev/null
@@ -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 (file)
index 0000000..411ed27
--- /dev/null
@@ -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 (file)
index 0000000..c4c3dcc
--- /dev/null
@@ -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
index 7a74777bf5e21794048afdcdeeafa41a1dde9ea8..818e1ff0a65917e229b198656e9e541b8b1a6490 100644 (file)
@@ -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