Skip to content

Add DNS over HTTPS#94

Open
damob-byun wants to merge 4 commits into
kapetan:masterfrom
damob-byun:master
Open

Add DNS over HTTPS#94
damob-byun wants to merge 4 commits into
kapetan:masterfrom
damob-byun:master

Conversation

@damob-byun
Copy link
Copy Markdown

@damob-byun damob-byun commented Aug 25, 2022

Hi I Added "DNS over HTTPS" to this project

https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/

Simply change your code like this:
Client
DnsClient client = new DnsClient("1.1.1.1");
->
DnsClient client = new DnsClient(new Uri("https://1.1.1.1/dns-query"));
Server
DnsServer server = new DnsServer(masterFile, "1.1.1.1");
->
DnsServer server = new DnsServer(masterFile, new Uri("https://1.1.1.1/dns-query"));

@raviruia522
Copy link
Copy Markdown

Error :Argument 2: cannot convert from 'System.Uri' to 'System.Net.IPEndPoint'

@damob-byun
Copy link
Copy Markdown
Author

I just remove IPEndpoint in code

@Neustradamus
Copy link
Copy Markdown

@kapetan: Have you seen this PR?

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.

3 participants