GetHostEntry无法解析IPAddress [英] GetHostEntry could not resolve IPAddress
本文介绍了GetHostEntry无法解析IPAddress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从主机名解析IP地址.我以前使用过:
Hi,
I want to resolve the IP address from Hostname. I was previosuly using:
Dns.GetHostByAddress(Hostname);
这已经过时了,所以我尝试了:
Which is obsolete, So I tried:
Dns.GetHostEntry(Hostname);
无法解析IP地址.我正在使用Windows7(32位)
请帮忙..
在此先感谢..
Which couldn''t resolve the IP Address. I am using Windows7 (32-bit)
Please Help..
Thanks in advance..
推荐答案
在这种情况下要尝试的第一件事是:可以使用其他工具从主机名获取IP地址吗?最简单的事情是执行ping操作.
可能是您的DNS配置不正确.
The first thing to try in such a situation is: can you get the the IP address from the hostname using other tools? The simplest thing is executing a ping.
Likely, your DNS is not configured correctly.
这篇关于GetHostEntry无法解析IPAddress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文