PHP中的DNS查找 [英] DNS Lookup in PHP

查看:144
本文介绍了PHP中的DNS查找的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows服务器间歇地失去查找DNS信息的能力。我试图解决问题的根本原因,但同时我想能够监视服务器是否可以执行查找。



基本上如果查找成功,它应该尝试查找一些常见的主机名和显示成功。



该站点运行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屋!

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