PHP中的DNS查找 [英] DNS Lookup in PHP
问题描述
基本上如果查找成功,它应该尝试查找一些常见的主机名和显示成功。
该站点运行PHP,所以我希望监视器脚本为在PHP中,但如果有人知道如何在ASP / .Net中执行此操作。
http://www.php.net/manual/en/function.dns-get -record.php 是php中的函数,它听起来像你以后。
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.
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 is the function in php it sounds like you are after.
这篇关于PHP中的DNS查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!