Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

DNS64 似乎不起作用 (可能是我理解错误? #1722

Open
wzssyqa opened this issue Apr 17, 2024 · 4 comments
Open

DNS64 似乎不起作用 (可能是我理解错误? #1722

wzssyqa opened this issue Apr 17, 2024 · 4 comments

Comments

@wzssyqa
Copy link

wzssyqa commented Apr 17, 2024

版本45.

配置里有

dns64 64:ff9b::/96

重启后,dig只有 IPv4 地址的网站,无法获取AAAA记录。

$ dig @192.168.2.1 AAAA passport.jd.com                                                                                                                               ~

; <<>> DiG 9.10.6 <<>> @192.168.2.1 AAAA passport.jd.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58327
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;passport.jd.com.		IN	AAAA

;; AUTHORITY SECTION:
passport.jd.com.	3	IN	SOA	ns1.jdcache.com. apollo.jd.com. 2015181762 10800 3600 604800 38400

;; Query time: 6 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Wed Apr 17 17:39:14 CST 2024
;; MSG SIZE  rcvd: 88

Google 的服务器就没有问题。

$ dig @dns64.dns.google AAAA passport.jd.com                                                                                                                          ~

; <<>> DiG 9.10.6 <<>> @dns64.dns.google AAAA passport.jd.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44702
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;passport.jd.com.		IN	AAAA

;; ANSWER SECTION:
passport.jd.com.	73	IN	CNAME	passport.jd.com.gslb.qianxun.com.
passport.jd.com.gslb.qianxun.com. 60 IN	AAAA	64:ff9b::676b:5ab7

;; Query time: 322 msec
;; SERVER: 2001:4860:4860::64#53(2001:4860:4860::64)
;; WHEN: Wed Apr 17 17:39:44 CST 2024
;; MSG SIZE  rcvd: 115
@PikuZheng
Copy link
Contributor

尝试关闭双栈ip优选?

@wzssyqa
Copy link
Author

wzssyqa commented Apr 17, 2024

关闭的确管用,可是这样就总是优先 nat64 了,很多地址不返回真v6地址了。

@PikuZheng
Copy link
Contributor

关闭的确管用,可是这样就总是优先 nat64 了,很多地址不返回真v6地址了。

这可能涉及到缓存测速和首次应答模式了

@pymumu
Copy link
Owner

pymumu commented Apr 18, 2024

最新代码改了一下

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

No branches or pull requests

3 participants