forked from LittleChest/dns-packet
add example links to README
This commit is contained in:
parent
428d5adc8f
commit
8db141efa7
@ -37,11 +37,13 @@ socket.send(buf, 0, buf.length, 53, '8.8.8.8')
|
|||||||
|
|
||||||
Also see [the UDP example](examples/udp.js).
|
Also see [the UDP example](examples/udp.js).
|
||||||
|
|
||||||
## TCP Usage
|
## TCP, TLS, HTTPS
|
||||||
|
|
||||||
While DNS has traditionally been used over a datagram transport, it is increasingly being carried over TCP for larger responses commonly including DNSSEC responses and TCP/TLS for privacy reasons.
|
While DNS has traditionally been used over a datagram transport, it is increasingly being carried over TCP for larger responses commonly including DNSSEC responses and TLS or HTTPS for enhanced security. See below examples on how to use `dns-packet` to wrap DNS packets in these protocols:
|
||||||
|
|
||||||
See [the TCP example](examples/tcp.js).
|
- [TCP](examples/tcp.js)
|
||||||
|
- [DNS over TLS](examples/tls.js)
|
||||||
|
- [DNS over HTTPS](examples/doh.js)
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
|
|||||||
@ -50,4 +50,3 @@ request.on('error', (e) => {
|
|||||||
})
|
})
|
||||||
request.write(encodedPacket)
|
request.write(encodedPacket)
|
||||||
request.end()
|
request.end()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user