Re: /etc/hosts used only sometimes

From: Tauno Voipio (tauno.voipio_at_iki.fi.NOSPAM.invalid)
Date: 03/07/05


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


Relevant Pages

  • Sample iptables rules list, inviting your suggestions / criticisms (thanks) :-)
    ... Redirected here from the "Post iptables rules in newsgroups" and "What ... allowing DNS to work to/from the name server that runs on that host. ... # Allow ftp, ssh, mail, http, https. ... # Rule set for the FORWARD chain. ...
    (comp.security.firewalls)
  • Re: RPC over HTTP conection delay issue
    ... internal server hostname on the external dns server. ... "Jay" wrote: ... > I can confirm that both are checked, On fast and on slow networks use HTTP ...
    (microsoft.public.exchange.connectivity)
  • Re: Webseitenzugriff mit Anmeldung (Bsp. hotmail)
    ... also habe mal alle Regeln auf deaktiviert gesetzt ausser DNS undd http. ... der http Regel alles auf "standard". ... Kriege leider immer noch Fehlermeldung: ... Logfile zeigt seltsamerweise auch den DNS Fehler nicht mehr. ...
    (microsoft.public.de.german.isaserver)
  • Re: Secure Subsite Problem.
    ... Our site has a main site.com and a secure subsite ... : HTTP Error 403.4 - Forbidden: SSL is required to view this resource. ... without even the implied warranty of merchantability ... How-to: Windows 2000 DNS: ...
    (microsoft.public.inetserver.iis)