Subject: | Problems with TSIG on ddns update |
I am trying to do a dynamic DNS update with hmac-sha256 key generated by ddns-confgen, according to the example in the Net::DNS::Update documentation, section "Another way to sign a DNS update":
#!/usr/bin/perl
use Net::DNS;
my $key_name = 'tsig-key';
my $key = 'awwLOtRfpGE+rRKF2+DEiw==';
my $tsig = new Net::DNS::RR("$key_name TSIG $key");
This fails with
no zone file representation defined for TSIG at /usr/share/perl5/vendor_perl/Net/DNS/RR.pm line 511.
in new Net::DNS::RR( tsig-key TSIG awwLOtRfpGE+rRKF2+DEiw== )
at ./test.pl line 7.
Can I still use a in-line hmac-sha256 key to sign a DDNS update? Thanks!
BTW, Fedora 31 with perl-Net-DNS-1.20-4.fc31.noarch