如何验证Azure的反向DNS是否工作正常? [英] How to verify that Azure Reverse DNS is working properly?

查看:259
本文介绍了如何验证Azure的反向DNS是否工作正常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚得到一个静态IP,跑到下面的命令来获得一个保留DNS:

I just got a static IP and ran the command below to get a reserved DNS:

设置 - AzureService -ServiceName以人DNS-Description以人DNS
  反向DNS-ReverseDnsFqdnpeople-dns.cloudapp.net。

Set-AzureService -ServiceName "people-dns" -Description "people-dns reverse DNS" -ReverseDnsFqdn "people-dns.cloudapp.net."

现在,如果我跑获取-AzureService 它表明:

Now if I run Get-AzureService it shows:

ReverseDnsFqdn:people-dns.cloudapp.net

ReverseDnsFqdn : people-dns.cloudapp.net.

如何可以验证它是否工作正常?

(这将是很好自动进行此测试,所以我可以知道,如果它停止工作太)

(it would be nice to automate this test so I can know if it stops working too)

更新:我发现的网站,可以检查如 http://mxtoolbox.com 但我想知道他们是如何做

UPDATE : I found web sites that can check like http://mxtoolbox.com but I like to know how they do it

推荐答案

在Windows上,可以在命令行中使用ping或NSLOOKUP。 w.x.y.z是你的IP服务。

On Windows you can use ping or nslookup in command line. w.x.y.z is ip of your service.

对于

ping -a w.x.y.z

对于 NSLOOKUP

nslookup
set type=PTR
w.x.y.z

有关自动化使用PowerShell中使用此命令:

For automation use powershell with this command:

[System.Net.Dns]::GetHostEntry("w.x.y.z")

这篇关于如何验证Azure的反向DNS是否工作正常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆