in reply to How to create DNS Responses?

Did you check out Net::DNS::RR::NAPTR?
--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]