I’m using LWP::UserAgent to request a lot of page content. I already know the ip of the urls I am requesting so I’d like to be able to specify the ip address of where the url I am requesting is hosted, so that LWP does not have to spend time doing a dns lookup. I’ve looked through the documentation but haven’t found any solutions. Does anyone know of a way to do this? Thanks!
Share
So I found a module that does exactly what I’m looking for: LWP::UserAgent::DNS::Hosts
Here is an example script that I tested and does what I specified in my question: