in reply to How to create a DNS message in perl?

If you don't want to reinvent the wheel, look at Net::DNS, and perhaps gethostbyname in very simple cases.
  • Comment on Re: How to create a DNS message in perl?