问题描述
我有一台 Windows 服务器,它间歇性地失去了查找 DNS 信息的能力.我正在尝试找出问题的根本原因,但同时我希望能够监控服务器是否可以执行查找.
I have a Windows server that is intermittently losing the ability to lookup DNS information. I'm trying to get to the root cause of the problem but in the mean time I'd like to be able to monitor whether the server can perform lookups.
基本上,它应该尝试查找一些常见的主机名,如果查找成功则显示成功".
Basically, it should attempt to lookup some common hostnames and the display 'Success' if the lookups are successful.
该站点运行 PHP,因此我希望监视器脚本使用 PHP,但如果有人知道如何在 ASP/.Net 中执行此操作,那也可以.
The site runs PHP so I'd prefer that the monitor script be in PHP but if someone knows how to do this in ASP / .Net that would work as well.
推荐答案
http://www.php.net/manual/en/function.dns-get-record.php 是 php 中的函数,听起来像是您在追求.
http://www.php.net/manual/en/function.dns-get-record.php is the function in php it sounds like you are after.
这篇关于PHP 中的 DNS 查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)