mr-karan / doggo

:dog: Command-line DNS Client for Humans. Written in Golang
https://doggo.mrkaran.dev/
GNU General Public License v3.0
3.06k stars 101 forks source link

Feature request: need option to specific ip of DoH #56

Closed issuex closed 2 years ago

issuex commented 2 years ago

If i query to https://cloudflare-dns.com/dns-query. Is it possible to specific ip for cloudflare-dns.com to some xxx.xxx.xxx.xxx ip? In https://github.com/ameshkov/dnslookup have feture to specific ip for it. It's really good to have this feature in some use case.

mr-karan commented 2 years ago

What is the usecase for this?

issuex commented 2 years ago
mr-karan commented 2 years ago

When dns server respond wrong ip of cloudflare-dns.com or was blocked.

This seems like a very rare scenario. How would you get the IP of cloudflare-dns.com if not without DNS? :smile:

When you don't want to leak dns query to ISP.

How does using an IP instead of a hostname for the resolver prevent a leak? You'd rather use DoH if that is your usecase.

I'll have to close this for now. Will revisit if there's an actual usecase for this.

issuex commented 2 years ago

If you stay in high censorship country, You will need it.