If $domain isn't fully qualified and thus not ending with a dot, the origin will be appended. In both cases the finalizing dot will be cut off afterwards.
This functions is inteded to be used by the extension of Net::DNS::RR::xx parsing functionality.
To install Net::DNS::ZoneParse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNS::ZoneParse
CPAN shell
perl -MCPAN -e shell install Net::DNS::ZoneParse
For more information on module installation, please visit the detailed CPAN module installation guide.