Skip to content

Commit c111168

Browse files
authored
Update DoH example from internet-draft to RFC 8484. (#58)
1 parent cbe0521 commit c111168

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/doh.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ const buf = dnsPacket.encode({
2626
})
2727

2828
const options = {
29-
hostname: 'dns.google.com',
29+
hostname: 'dns.google',
3030
port: 443,
31-
path: '/experimental',
31+
path: '/dns-query',
3232
method: 'POST',
3333
headers: {
34-
'Content-Type': 'application/dns-udpwireformat',
34+
'Content-Type': 'application/dns-message',
3535
'Content-Length': Buffer.byteLength(buf)
3636
}
3737
}

0 commit comments

Comments
 (0)