Skip to content

Commit

Permalink
doc: note about DNS ANY queries / RFC 8482
Browse files Browse the repository at this point in the history
PR-URL: nodejs#26695
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
tlhunter authored and targos committed Mar 27, 2019
1 parent 1a0f66b commit 7cc760f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ Here is an example of the `ret` object passed to the callback:
minttl: 60 } ]
```

DNS server operators may choose not to respond to `ANY`
queries. It may be better to call individual methods like [`dns.resolve4()`][],
[`dns.resolveMx()`][], and so on. For more details, see [RFC 8482][].

## dns.resolveCname(hostname, callback)
<!-- YAML
added: v0.3.2
Expand Down Expand Up @@ -1142,5 +1146,6 @@ uses. For instance, _they do not use the configuration from `/etc/hosts`_.
[`util.promisify()`]: util.html#util_util_promisify_original
[DNS error codes]: #dns_error_codes
[Implementation considerations section]: #dns_implementation_considerations
[RFC 8482]: https://tools.ietf.org/html/rfc8482
[rfc5952]: https://tools.ietf.org/html/rfc5952#section-6
[supported `getaddrinfo` flags]: #dns_supported_getaddrinfo_flags

0 comments on commit 7cc760f

Please sign in to comment.