Repository navigation
Commit 9e38cd1
committed
dns: add resolveSvcb() and resolveHttps()
Add support for the SVCB and HTTPS service binding records defined in
RFC 9460 through dns.resolveSvcb(), dns.resolveHttps(), the matching
Resolver and dns.promises methods, the 'SVCB' and 'HTTPS' rrtypes for
dns.resolve(), and dns.resolveAny().
Known SvcParams (mandatory, alpn, no-default-alpn, port, ipv4hint, ech,
ipv6hint, dohpath and ohttp) are decoded. All other keys, including
private-use keys, are returned as keyNNNNN with the raw value as an
ArrayBuffer. SvcParams on AliasMode records are ignored. Records with
malformed SvcParams fail resolveSvcb() and resolveHttps() with EBADRESP
and are dropped from resolveAny() results.
Refs: #38173
Refs: #64280
Signed-off-by: Ingmar Van Glabbeek <ivanglabbeek@infoblox.com>1 parent c9b3082 commit 9e38cd1
13 files changed
Lines changed: 779 additions & 0 deletions
File tree
- doc/api
- lib/internal/dns
- src
- test
- common
- internet
- parallel
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| 308 | + | |
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
| 314 | + | |
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
| |||
0 commit comments