DNS times out repeatedly - cache external domains?

gebickford
Posts: 6
Joined: Mon Jun 18, 2001 3:25 pm

DNS times out repeatedly - cache external domains?

Post by gebickford »

The site I'm working on has a reference on almost every page to an external domain that isn't live right now. I've set the timeout to 5 seconds, which has improved things greatly. But I wondered if there was a way to ask gw to cache the domain results and not wait each time? As it is, the dns timeout generally exceeds the rest of the processing time.

I suppose I could consider this reducing the load on the server' :O)
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

DNS times out repeatedly - cache external domains?

Post by mark »

gw will never cache the lack of a DNS answer. You could add the bad hostname to your /etc/hosts file so that the lookup succeeds.