Skip to content
New issue

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

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

Already on GitHub? # to your account

Make able to set own DNS server address (like NextDNS) #1

Closed
ZhymabekRoman opened this issue Feb 11, 2023 · 3 comments · Fixed by #2
Closed

Make able to set own DNS server address (like NextDNS) #1

ZhymabekRoman opened this issue Feb 11, 2023 · 3 comments · Fixed by #2

Comments

@ZhymabekRoman
Copy link

ZhymabekRoman commented Feb 11, 2023

Thanks for the library! Might be good functionality to set own DOH address.

@mansuf
Copy link
Owner

mansuf commented Feb 12, 2023

I have made PR #2 that will close this issue. If you can test it, that would be helpful 👍

Usage:

from requests_doh import add_dns_provider, DNSOverHTTPSSession

add_dns_provider("another-dns", "https://another-dns.example.com/dns-query")

session = DNSOverHTTPSSession("another-dns")
session.get("https://google.com")

mansuf added a commit that referenced this issue Feb 12, 2023
@ZhymabekRoman
Copy link
Author

ZhymabekRoman commented Feb 12, 2023

Thanks! Works great! Tested using NextDNS.

@mansuf mansuf closed this as completed in #2 Feb 12, 2023
mansuf added a commit that referenced this issue Feb 12, 2023
Add ability to add custom DoH provider
@mansuf
Copy link
Owner

mansuf commented Feb 12, 2023

The PR has been merged and it will be released soon.

Thanks for the idea 💖

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

Successfully merging a pull request may close this issue.

2 participants