changeset 806:ffdd33c64193

Tests: use DNAME type in PTR type checking test in mail_resolver.t. Use RR type different but compatible with CNAME to make sure that resolving will still fail with resolver support added for CNAME type in return to PTR.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 16 Dec 2015 13:43:15 +0300
parents b8db75ef1f00
children 5540ee8a12ce
files mail_resolver.t
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mail_resolver.t
+++ b/mail_resolver.t
@@ -252,6 +252,7 @@ sub reply_handler {
 	use constant A		=> 1;
 	use constant CNAME	=> 5;
 	use constant PTR	=> 12;
+	use constant DNAME      => 39;
 
 	use constant IN 	=> 1;
 
@@ -303,7 +304,8 @@ sub reply_handler {
 				PTR, IN, $ttl, 15, ('a', 'example', 'net'));
 
 		} elsif ($port == 8086) {
-			push @rdata, rd_name(CNAME, $ttl, 'a.example.net');
+			push @rdata, rd_name(DNAME, $ttl, 'a.example.net');
+
 		}
 
 	} elsif ($name eq '1.1.0.0.127.in-addr.arpa' && $type == PTR) {