# HG changeset patch # User Sergey Kandaurov # Date 1450262595 -10800 # Node ID ffdd33c641937f460659c220d84af2d528525bf7 # Parent b8db75ef1f0041c664d4681d5d3ac1ec65545ac6 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. diff --git a/mail_resolver.t b/mail_resolver.t --- 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) {