【问题标题】:How to know where the domains point to in vb.net如何知道域在 vb.net 中指向的位置
【发布时间】:2012-03-30 13:27:39
【问题描述】:

例如,如果我 ping google.com,我得到:

使用 32 字节的 d ping google.com [173.194.38.130] 来自 173.194.38.130 的回复:字节=32 时间=1033ms TTL=56 来自 173.194.38.130 的回复:字节=32 时间=1004ms TTL=56 来自 173.194.38.130 的回复:bytes=32 time=518ms TTL=56

这意味着 google.com 指向 173.194.38.130

如何用 vb.net 做到这一点?

【问题讨论】:

    标签: vb.net dns


    【解决方案1】:

    最好的选择是使用Dns.GetHostEntry 方法。

    Dim hostNameOrAddress As String = "google.com"
    Dim returnValue As IPHostEntry
    
    returnValue = Dns.GetHostEntry(hostNameOrAddress)
    

    More info

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-24
      • 1970-01-01
      • 2015-03-30
      • 2016-08-15
      • 1970-01-01
      • 1970-01-01
      • 2019-04-12
      • 2010-11-26
      相关资源
      最近更新 更多