in reply to Remote Host and DNS

You can use this module too Net::DNS::Resolver have a lot of option