dnsproxy
dnsproxy copied to clipboard
请求解析不到
正常
/root/dns/dnsproxy -p 53 --insecure -u tls://8.8.4.4 --ipv6-disabled --edns --edns-addr=1.1.1.1 --cache --cache-min-ttl=10 --cache-max-ttl=60
不正常:
/root/dns/dnsproxy -p 53 --insecure -u https://[2001:4860:4860::64]/resolve --ipv6-disabled --edns --edns-addr=1.1.1.1 --cache --cache-min-ttl=10 --cache-max-ttl=60
/root/dns/dnsproxy -p 53 --insecure -u https://[2001:4860:4860::64]/dns-query --ipv6-disabled --edns --edns-addr=1.1.1.1 --cache --cache-min-ttl=10 --cache-max-ttl=60
/root/dns/dnsproxy -p 53 --insecure -u quic://[2001:4860:4860::64]:443 --ipv6-disabled --edns --edns-addr=1.1.1.1 --cache --cache-min-ttl=10 --cache-max-ttl=60
C:\Users\xx>curl -k -H "accept: application/dns-json" "https://[2001:4860:4860::64]/resolve?name=cloudflare.com&type=A" -v --insecure
* Trying 2001:4860:4860::64:443...
* Connected to 2001:4860:4860::64 (2001:4860:4860::64) port 443 (#0)
* schannel: disabled automatic use of client certificate
* schannel: using IP address, SNI is not supported by OS.
* schannel: ALPN, offering http/1.1
* schannel: ALPN, server accepted to use http/1.1
> GET /resolve?name=cloudflare.com&type=A HTTP/1.1
> Host: [2001:4860:4860::64]
> User-Agent: curl/7.79.1
> accept: application/dns-json
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< X-Content-Type-Options: nosniff
< Access-Control-Allow-Origin: *
< Date: Fri, 08 Apr 2022 13:53:30 GMT
< Expires: Fri, 08 Apr 2022 13:53:30 GMT
< Cache-Control: private, max-age=300
< Content-Type: application/json; charset=UTF-8
< Server: HTTP server (unknown)
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
< Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
< Accept-Ranges: none
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
<
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":true,"CD":false,"Question":[{"name":"cloudflare.com.","type":1}],"Answer":[{"name":"cloudflare.com.","type":1,"TTL":300,"data":"104.16.133.229"},{"name":"cloudflare.com.","type":1,"TTL":300,"data":"104.16.132.229"}],"Comment":"Response from 162.159.2.9."}* Connection #0 to host 2001:4860:4860::64 left intact
你又想用ipv6,又把他禁用,所以,你没有懂
这里禁用ipv6,是解析记录剔除ipv6,不是禁止连接ipv6.
这个跟adh一样
这里禁用ipv6,是解析记录剔除ipv6,不是禁止连接ipv6.