Tauno Voipio wrote:
> (E-Mail Removed) 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
No proxy or cache on my LAN, alhtough i think my ISP may well run a
transparent proxy the problem hs lasted almost a week which seems a
rather long time to cache it. I have a small LAN connected to ADSL so
it is a consumer connection :-(
resolv.conf contains:
search localdomain
nameserver 192.168.101.1
the IP address is of the ADSL router modem.
nsswitch.conf contains the line:
hosts: files nisplus nis dns
which is the default Mandrake 10.1 setting (I am not actually using so
I assume the two middle entries will be ignored)
Can nsswtich be over-ridden by resolv.conf or elsewhere?
Thanks,
Graeme