lua-resty-dns icon indicating copy to clipboard operation
lua-resty-dns copied to clipboard

Added DoH support GET/POST

Open pr4u4t opened this issue 4 years ago • 3 comments

This adds DoH support with POST and GET requests, this requests could be cached.

local r, err = resolver:new{ nameservers = { "https://cloudflare-dns.com/dns-query" }, retrans = 5, -- 5 retransmissions on receive timeout timeout = 2000, -- 2 sec no_random = true, -- always start with first nameserver, doh = 'POST' }

pr4u4t avatar Nov 01 '21 20:11 pr4u4t

And the DoH client should provide an option to setting up bootstrap DNS

xiaocang avatar Nov 03 '21 14:11 xiaocang

And the DoH client should provide an option to setting up bootstrap DNS

Should I add bootstrap DNS?

pr4u4t avatar Nov 19 '21 16:11 pr4u4t

And the DoH client should provide an option to setting up bootstrap DNS

Should I add bootstrap DNS?

you need to add test cases for the new feature. And the bootstrap DNS option is still needed.

zhuizhuhaomeng avatar Nov 23 '21 01:11 zhuizhuhaomeng