modify /etc/hosts temporarily on the computer you are running wget to add a line similar to
1.2.3.4 sitename.com # temporary hack to get new web site pull the files then remove that line from /etc/hosts. this assumes that /etc/hosts has precedence over dns (and yp or whatever) on your machine; most do. Jim On Sun, 17 Jun 2007, Kelly Jones wrote: > 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. > >