Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DoH support GET/POST #62

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Added DoH support GET/POST #62

wants to merge 10 commits into from

Conversation

pr4u4t
Copy link

@pr4u4t pr4u4t commented Nov 1, 2021

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'
}

@xiaocang
Copy link
Contributor

xiaocang commented Nov 3, 2021

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

README.markdown Show resolved Hide resolved
lib/resty/dns/resolver.lua Outdated Show resolved Hide resolved
lib/resty/dns/resolver.lua Outdated Show resolved Hide resolved
lib/resty/dns/resolver.lua Outdated Show resolved Hide resolved
lib/resty/dns/resolver.lua Outdated Show resolved Hide resolved
lib/resty/dns/resolver.lua Outdated Show resolved Hide resolved
@pr4u4t
Copy link
Author

pr4u4t commented Nov 19, 2021

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

Should I add bootstrap DNS?

@zhuizhuhaomeng
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants