解决linux明明有ipv6地址但是ping -6显示Name or service not known,且用ipv4 dns解析不出ipv6地址的问题

解决linux明明有ipv6地址但是ping -6显示Name or service not known,且用ipv4 dns解析不出ipv6地址的问题

canoziia
2023-09-13 / 0 评论 / 249 阅读 / 正在检测是否收录...

好像不太对

sudo ip -6 neigh flush all

nslookup可以发现,dns时而返回ipv6地址时而不返回,什么鬼

root@VM-24-4-ubuntu:/home/ubuntu# nslookup google.com
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   google.com
Address: 142.251.46.206
Name:   google.com
Address: 8.7.198.46

root@VM-24-4-ubuntu:/home/ubuntu# nslookup google.com
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   google.com
Address: 172.217.12.110
Name:   google.com
Address: 8.7.198.46

root@VM-24-4-ubuntu:/home/ubuntu# nslookup google.com
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   google.com
Address: 172.217.12.110
Name:   google.com
Address: 2607:f8b0:4005:80f::200e

root@VM-24-4-ubuntu:/home/ubuntu# nslookup google.com
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   google.com
Address: 142.251.32.46
Name:   google.com
Address: 2607:f8b0:400a:80b::200e
0

评论 (0)

取消