hirose31/cdbtoroute53 — Issue #1: method Net::DNS::Domain::decode undefined
Author: elijahchancey
Created: 2012-02-08 06:44:14+00:00
State: open

Thanks for keeping this program up to date after amazon released it. I tried running it and ran into this error:

./cdbtoroute53.pl --zonename example.com --cdb data.cdb > example.com.xml
method Net::DNS::Domain::decode undefined at ./cdbtoroute53.pl line 127
main::parse_cdb('example.com.', 'data.cdb') called at ./cdbtoroute53.pl line 229f

I looked up the docs on the Net::DNS::Domain module and discovered that no decode method exists. I also found that the Net::DNS::DomainName module exists and has a decode method. I then modified the script to use the DomainName module and it failed with:

Can't use string ("Net::DNS::RR") as a HASH ref while "strict refs" in use at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Net/DNS/RR.pm line 903.

I'm not sure what to do from here, other than rewrite the program in Ruby. Do you have any ideas?