Try: wget http://ip.of.new.sitename --header="Host: sitename.com" --mirror

For example: wget http://66.233.187.99 --header="Host: google.com" --mirror

Tony
-----Original Message-----
From: Kelly Jones [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 17, 2007 6:10 PM
To: wget@sunsite.dk
Subject: Suppressing DNS lookups when using wget, forcing specific IP
address

I'm moving a site from one server to another, and want to use "wget
-m" combined w/ "diff -auwr" to help make sure the site looks the same
on both servers.

My problem: "wget -m sitename.com" always downloads the site at its
*current* IP address. Can I tell wget: "download sitename.com, but
pretend the IP address of sitename.com is ip.address.of.new.server
instead of ip.address.of.old.server. In other words, suppress the DNS
lookup for sitename.com and force it to use a given IP address.

I've considered kludges like using "old.sitename.com" vs
"new.sitename.com", editing "/etc/hosts", using a proxy server, etc,
but I'm wondering if there's a clean solution here?

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.

Reply via email to