From c11116822afcdaab05ccd9f76549e9089bb44f47 Mon Sep 17 00:00:00 2001 From: Tom Pusateri Date: Fri, 17 Apr 2020 09:21:31 -0400 Subject: [PATCH] Update DoH example from internet-draft to RFC 8484. (#58) --- examples/doh.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/doh.js b/examples/doh.js index 37ef19f..b9a6b91 100644 --- a/examples/doh.js +++ b/examples/doh.js @@ -26,12 +26,12 @@ const buf = dnsPacket.encode({ }) const options = { - hostname: 'dns.google.com', + hostname: 'dns.google', port: 443, - path: '/experimental', + path: '/dns-query', method: 'POST', headers: { - 'Content-Type': 'application/dns-udpwireformat', + 'Content-Type': 'application/dns-message', 'Content-Length': Buffer.byteLength(buf) } }