On Wed, 07 Apr 2004 13:06:58 GMT,
(E-Mail Removed) (Jeff
Cochran) wrote:
>You always use the same address. Once you look it up the first time,
>it's cached and you don't look it up again until the TTL expires or
>your cache flushes. Whether you look it up in DNS or Hosts makes no
>difference here.
>
>Hosts will be queried before DNS. If the name is resolved there,
>there is no DNS request made.
Thanks for your replies Jeff.
This makes sense on one level, but not on another.
I use a piece of software called Privoxy to refresh the relevant
section of the webpage every second. Privoxy creates a log file giving
details of each request made. Generally that stream involves requests
to refresh.betfair.com. As you can see these requests are being
successful but suddenly a request to the same domain
(refresh.betfair.com) fails with a "could not resolve hostname" error.
From what you have said, that would suggest the TTL for
refresh.betfair.com must be zero, i.e. a DNS lookup is required every
request? Otherwise how could it fail having been cached? If the TTL is
zero, would a hosts entry for refresh.betfair.com be a big help in
reducing the requests to the DNS server?
Apr 02 15:41:03 Privoxy(02220) Request:
refresh.betfair.com/BetMgr_Refresh.aspx?ei=1693681&typ=O&iid=0&ts=1080938463000&init=0&sb=0
Apr 02 15:41:04 Privoxy(02220) Request:
refresh.betfair.com/BetMgr_Refresh.aspx?ei=1693681&typ=O&iid=0&ts=1080938464000&init=0&sb=0
Apr 02 15:41:05 Privoxy(02220) Request:
refresh.betfair.com/BetMgr_Refresh.aspx?ei=1693681&typ=O&iid=0&ts=1080938465000&init=0&sb=0
Apr 02 15:41:06 Privoxy(02220) Request:
refresh.betfair.com/BetMgr_Refresh.aspx?ei=1693681&typ=O&iid=0&ts=1080938466000&init=0&sb=0
Apr 02 15:41:07 Privoxy(02220) Request:
refresh.betfair.com/BetMgr_Refresh.aspx?ei=1693681&typ=O&iid=0&ts=1080938467000&init=0&sb=0
Apr 02 15:41:07 Privoxy(02220) Error: could not resolve hostname
refresh.betfair.com
Apr 02 15:41:08 Privoxy(02220) Request:
refresh.betfair.com/BetMgr_Refresh.aspx?ei=1693681&typ=O&iid=0&ts=1080938468000&init=0&sb=0
Apr 02 15:41:08 Privoxy(02220) Error: could not resolve hostname
refresh.betfair.com
--
Iain Simpson
(E-Mail Removed)
(remove 'GetRidOfThis' from address)