Re: how to tell the dns to cache the domain name when request thesame host machine frequently?
> I need send a request to more than 40 machines by domain name ,and each
> time maybe give different url (e.g
> [url]www.ret.com/getdata.htm,www.ret.com/updatedata.htm[/url]....) ,I know that
> the dns server will convert the domain name([url]www.ret.com[/url]) 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
> 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.