Changed the script to record the ip address we are connecting to. More specifically, we are doing a dns lookup for the site, then setting the Host header to the site and connecting on port 80 to the specified site.