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

Is coredns support dns over https? Could I use DoH in coredns? #4147

Closed
ghost opened this issue Sep 27, 2020 · 13 comments
Closed

Is coredns support dns over https? Could I use DoH in coredns? #4147

ghost opened this issue Sep 27, 2020 · 13 comments
Labels
anonymous Anonymous request, see https://berthub.eu/articles/posts/anonymous-help/ question

Comments

@ghost
Copy link

ghost commented Sep 27, 2020

Such as forward plugin, I cannot use DoH in it. Which plugin supports DoH?

@ghost ghost changed the title Conflict between two documents, CoreDNS Manual and Forward plugin document Is coredns support dns over https? Could I use DoH in coredns? Sep 28, 2020
@chrisohaver chrisohaver added the anonymous Anonymous request, see https://berthub.eu/articles/posts/anonymous-help/ label Sep 28, 2020
@chrisohaver
Copy link
Member

Which plugin supports DoH?

CoreDNS can serve DoH queries (https://github.com/coredns/coredns#examples). Plugins don't care over which protocol a query was received. Thus, all plugins can process a query received over DoH. As such, Forward also can process a query received over DoH. When processing a request, the forward plugin always sends the query upstream over the protocol configured for that upstream server, regardless of the protocol over which the original request was received.

@miekg
Copy link
Member

miekg commented Sep 28, 2020 via email

@corbot corbot bot added the question label Sep 28, 2020
@corbot corbot bot closed this as completed Sep 28, 2020
@ghost
Copy link
Author

ghost commented Sep 30, 2020

I'm sorry. I did not express my thoughts clearly.I want to use an upstream dns like https://dns.google in forward plugin after the word "forward . ". But I don't know how to configure it.
@miekg @chrisohaver

@chrisohaver
Copy link
Member

It's not supported. The forward plugin can forward via DNS or TLS (DoT). Not https (DoH).

@ghost
Copy link
Author

ghost commented Sep 30, 2020

@chrisohaver Thank you very much

@v-byte-cpu
Copy link

v-byte-cpu commented Jan 21, 2021

@chrisohaver I wonder why coredns team ignores requests from community to support DoH in forward plugin or create new one.

#3915
#3413
#3788
#1650

If you are interested I can work on it in spare time.

@miekg
Copy link
Member

miekg commented Jan 22, 2021 via email

@v-byte-cpu
Copy link

Hi @miekg, good, I will read CoreDNS contributing guidelines and start working on it.

@miekg
Copy link
Member

miekg commented Jan 22, 2021 via email

@v-byte-cpu
Copy link

@miekg sorry for the delay, I'm almost done with the plugin and will send the PR soon

@m-yosefpor
Copy link
Contributor

m-yosefpor commented Jul 24, 2022

@v-byte-cpu I followed this thread and it's embarrassing to see such behaviors in any open source project (and specially in a CNCF project) I'm sorry for that.

Right now, I was able to extract the plugin code from your code. However, I think it would be very helpful if you provide your plugin in a separate repo so we would be able to use it as an out-of-tree plugin with our self compiled coredns.

@v-byte-cpu
Copy link

👋 @m-yosefpor ok, I will extract the plugin code into a separate repo

@v-byte-cpu
Copy link

@m-yosefpor I extracted the plugin code
https://github.com/v-byte-cpu/coredns-https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anonymous Anonymous request, see https://berthub.eu/articles/posts/anonymous-help/ question
Projects
None yet
Development

No branches or pull requests

4 participants