0

In order to submit queries to CloudSearch dommain, the documentation says that "You should also re-resolve the endpoint DNS to an IP address regularly". But I cannot find a way to do that using AWS JavaScript SDK.

niqui
  • 1,562
  • 1
  • 16
  • 28

1 Answers1

0

Depending on the context in which you're using the SDK (eg, in-browser, NodeJS, ...), you probably do not need to touch this.

DNS caching is fairly low-level stuff that is usually handled for you by whatever framework you're using. For example, if using NodeJS, the DNS Time-to-Live (TTL) can be configured like this https://nodejs.org/api/dns.html#dns_dnspromises_resolveany_hostname , whereas browsers maintain their own DNS caches (default to 60s for chrome and firefox) -- How long google chrome and firefox cache DNS records

To be safe, I would just check the DNS cache TTL that applies to your specific implementation.

alexroussos
  • 2,671
  • 1
  • 25
  • 38