@aws-sdk/types 3.267.0 → 3.271.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/dns.d.ts +10 -3
- package/package.json +1 -1
package/dist-types/dns.d.ts
CHANGED
|
@@ -45,9 +45,16 @@ export interface HostResolverArguments {
|
|
|
45
45
|
*/
|
|
46
46
|
export interface HostResolver {
|
|
47
47
|
/**
|
|
48
|
-
* Resolves the address(es) for {@link HostResolverArguments}
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* Resolves the address(es) for {@link HostResolverArguments} and returns a
|
|
49
|
+
* list of addresses with (most likely) two addresses, one {@link HostAddressType.AAAA}
|
|
50
|
+
* and one {@link HostAddressType.A}. Calls to this function will likely alter
|
|
51
|
+
* the cache (if implemented) so that if there's multiple addresses, a different
|
|
52
|
+
* set will be returned on the next call.
|
|
53
|
+
* In the case of multi-answer, still only a maximum of two records should be
|
|
54
|
+
* returned. The resolver implementation is responsible for caching and rotation
|
|
55
|
+
* of the multiple addresses that get returned.
|
|
56
|
+
* Implementations don't have to explictly call getaddrinfo(), they can use
|
|
57
|
+
* high level abstractions provided in their language runtimes/libraries.
|
|
51
58
|
* @param args arguments with host name query addresses for
|
|
52
59
|
* @returns promise with a list of {@link HostAddress}
|
|
53
60
|
*/
|