how to tell the dns to cache the domain name when request the same host machine frequently?
Kevin Darcy
kcd at daimlerchrysler.com
Fri Jun 23 22:57:48 UTC 2006
doEveryday wrote:
> I need send a request to more than 40 machines by domain name ,and each
> time maybe give different url (e.g
> www.ret.com/getdata.htm,www.ret.com/updatedata.htm....) ,I know that
> the dns server will convert the domain name(www.ret.com) to IP
> address,I think that each time the dns need to do so work, it wastes so
> much time, if I can set any parameter to tell dns server to cache the
> domain name, After the first request, it will no more do converting
> action.
> could someone tell me which module can do so work?
>
This is already built into the protocol. Every DNS record set has a TTL
(= Time To Live) associated with it, and this is set by the domain
owner. As long as the TTL has not expired, the answer can be given from
cached data obtained on previous lookups.
- Kevin
More information about the bind-users
mailing list