Replies: 4 comments 6 replies
-
Maybe you should read the documentation first, even though it's in Chinese which is not so friendly to you! Actually the documentation has the answer https://wiki.metacubex.one/en/config/dns/#doh |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. Well, in my reign all DNS requests are redirected to blocking systems, and most DoH/DoH are blocked by their domain addresses at the DNS query level. I tried this DNS config:
However, ClashMeta sends a DNS request for the dns.cloudflare.com domain and receives an incorrect result, as I mentioned earlier. |
Beta Was this translation helpful? Give feedback.
-
I think the easiest way is to use the proxy DNS feature https://wiki.metacubex.one/config/dns/#dns_1. If you still insist on direct DNS lookups
Other suggestions, you can do a certain degree of DNS by policy diversion query, some sites may perform better when using your local DNS. |
Beta Was this translation helpful? Give feedback.
-
All UDP DNS requests are forwarded by the ISP to a DNS filtering system, and since dns.cloudflare.com is blocked by the ISP at the DNS level, it returns a fake IP address: 10.20.30.40. However, the HTTP request (DoH) to the correct IP is not blocked. How can I specify the correct IP to ClashMeta and prevent it from making a UDP DNS query? Here is my configuration: hosts:
dns.cloudflare.com: [104.16.132.229]
dns:
enable: true
ipv6: false
use-hosts: true
use-system-hosts: false
default-nameserver:
- 8.8.8.8 # ISP will skip it since it forwards all UDP DNS requests to DNS blocking system.
nameserver:
- https://dns.cloudflare.com/dns-query |
Beta Was this translation helpful? Give feedback.
-
Hi, I have my own DoH server on the server's IP and I want to use it as "default-nameserver"
Because I can't afford to buy valid ssl cert for it I would like to skip error:
re-creating the http client due to requesting https://185.101.51.22:443/dns-query: Get "https://185.101.51.22:443/dns-query?dns=AAABAAABAAAAAAAAA2RvcQhjYXB0bmVtbwJpbgAAHAAB": tls: failed to verify certificate: x509: cannot validate certificate for 185.101.51.22 because it doesn't contain any IP SANs
Could you help me please?!
Beta Was this translation helpful? Give feedback.
All reactions