Skip to content

Conversation

@damob-byun
Copy link

@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

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

@damob-byun
Copy link
Author

I just remove IPEndpoint in code

@Neustradamus
Copy link

@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