所以我在主机文件上为某个公共IP地址设置了公共IP,但它从任何地方或从DNS获取私有IP。
Content of windows hosts file C:\Windows\System32\drivers\etc\Hosts 210.210.210.10 my.domain.com nslookup my.domain.com 10.10.10.10 10.10.10.11 10.10.10.12
我希望它parsing为我在文件中分配的公有IP,而不是在查找my.publicdomain.com时显示的私有IP。
有任何解决这个问题的方法吗? 有没有人遇到这样的问题? ipconfig / flushdns没有帮助。 只是说。
nslookup
不使用hosts
文件,但使用DNS。
尝试使用ping
代替,它会返回您的hosts
文件中提供的IP。
在真正的DNS服务器中设置该域的IP。