diff options
author | [Thomas Green] <thomas.green@afnic.fr> | 2023-03-07 17:54:15 +0100 |
---|---|---|
committer | [Thomas Green] <thomas.green@afnic.fr> | 2023-03-07 17:54:15 +0100 |
commit | 5280022cd7c9f27ab16f7701019f84841c684d99 (patch) | |
tree | b4a15dff650f41386dbd0b8721a13bf5f5819395 /t | |
parent | dfee31922853fba06b19c8665f20a60920400c65 (diff) |
Expand DNAME RR support - initial commit
- Allow access to DNAME RR
- Add unitary test
Diffstat (limited to 't')
-rw-r--r-- | t/rr.t | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -235,6 +235,12 @@ subtest 'SPF' => sub { }; +subtest 'DNAME' => sub { + my $rr = Zonemaster::LDNS::RR->new( 'examplë.fake 3600 IN DNAME example.fake' ); + isa_ok( $rr, 'Zonemaster::LDNS::RR::DNAME' ); + is($rr->dname(), 'example.fake.'); +}; + subtest 'croak when given malformed CAA records' => sub { my $will_croak = sub { # This will croak if LDNS.xs is compiled with -DUSE_ITHREADS |