: 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
: 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
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
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