Re: /etc/hosts used only sometimes
From: Tauno Voipio (tauno.voipio_at_iki.fi.NOSPAM.invalid)
Date: 03/07/05
- Next message: Tauno Voipio: "Re: Telnet Server functionality"
- Previous message: Robin Barooah: "Re: Any advise on a UPnP Stack for Linux?"
- In reply to: graeme.pietersz_at_gmail.com: "/etc/hosts used only sometimes"
- Next in thread: graeme.pietersz_at_gmail.com: "Re: /etc/hosts used only sometimes"
- Reply: graeme.pietersz_at_gmail.com: "Re: /etc/hosts used only sometimes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 07 Mar 2005 17:31:55 GMT
graeme.pietersz@gmail.com wrote:
> I wanted to override DNS in order to see an old version of a web site.
>
> So I added the IP of the old version to /etc/hosts
>
> The result was:
>
> Graphical web browsers usually show the new site (IP from DNS), but
> occaisionally show the old (IP from /etc/hosts).
> HTTPS in graphical web bowser takes me to the old site - new site has
> no SSL BTW
> Ping picks up the IP from /etc/hosts, as does Telnet
> HTTP with Lynx takes me to a directory listing containing files from
> both servers - and not a full listing of either. Clicking through to a
> file or directory shows it correctly
> Https with Lynx goes to the old site (i.e. IP from /etc/hosts).
> wget behaves much as Lynx does, but gets stuck after the first few
> files over plain http (becuase it tries to get the file from the wrong
> server?).
> ftp transfers of directories containg a few hundred files seem to leave
> me with some files missing - I am not sure about this though.
>
> I do not know how it would affect things but the old version was on a
> dedicated server, new is on a shared host.
>
> Can anyone tell me what is happening and how I can get a complete
> backup (or even better wget a snapshot) of the old site. At the moment
> I am trying wget over ssl: seems to be working but very slowly.
>
What is the DNS resolution order in /etc/resolv.conf?
Do you have a HTTP cache/proxy running (squid)? The things
you see may be stale data from a cache.
-- Tauno Voipio tauno voipio (at) iki fi
- Next message: Tauno Voipio: "Re: Telnet Server functionality"
- Previous message: Robin Barooah: "Re: Any advise on a UPnP Stack for Linux?"
- In reply to: graeme.pietersz_at_gmail.com: "/etc/hosts used only sometimes"
- Next in thread: graeme.pietersz_at_gmail.com: "Re: /etc/hosts used only sometimes"
- Reply: graeme.pietersz_at_gmail.com: "Re: /etc/hosts used only sometimes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|