First I would like to suggest that you first post some sort of code so we may look at what you have thus far and then we may guide you in the correct direction. Secondly this is a place of learning and not a place to get your job done. Yes we are here to help you out but dont expect the Monks to finish your work for you we are more guides than anything and will help in anyway possible, but dont expect this to be a place you can just run to and get a finished product. Thirdly I would suggest taking a look at the PerlDoc for the mod, most every mod author puts examples in the docs this is always the first place to start at and once you have some sort of work done from the example then post the code with a question and we can then take a deeper look into your issue and help guide you in the correct direction.
in reply to header information of a DNS
perldoc Net::DNS::RR:HINFO should get you to the example code you need ok.