Skip to content

pusateri/doh-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doh-webpack

Web DNS over HTTP (DOH) in browser test tool

This sample code provides a client implementation for https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-03

This is an IETF work in progress.

You may notice that this code may not return an answer and instead end in a pre-flight 400 or 405 error. This is to be expected since we are sending a POST method with:

Content-Type: 'application/dns-udpwireformat'

See CORS for more info.

If DNS over HTTPS servers want to support arbitrary requests from a web page over HTTPS, the server will have to support OPTIONS pre-flight requests to allow the POST to be sent.

Install

npm install

Run

npm start

About

Web DNS over HTTP (DOH) test tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published