当我nslookup
使用"google.com"
时,我得到以下内容:
Addresses: 2607:f8b0:400a:801::1001
173.194.33.32
173.194.33.36
173.194.33.34
173.194.33.37
173.194.33.33
173.194.33.46
173.194.33.39
173.194.33.41
173.194.33.38
173.194.33.40
173.194.33.35
但是,当我致电GetAddrInfoW
并传递L"google.com"
时,我会收到以下信息:
173.194.33.41
173.194.33.39
173.194.33.46
173.194.33.33
173.194.33.37
173.194.33.38
173.194.33.40
173.194.33.34
173.194.33.35
173.194.33.36
173.194.33.32
IPv6地址在哪里?
编辑:如果我使用"localhost"
的相同代码执行相同的查找,则输出为:
0000:0000:0000:0000:0000:0000:0000:0001
127.0.0.1
这更令人头疼。