RE: [PHP] Checking for internet connection.
| From: | Ashley Sheridan | Date: | Tue, 22 Dec 2009 14:22:09 +0000 |
| Subject: | RE: [PHP] Checking for internet connection. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300630@lists.php.net to get a copy of this message | ||
On Tue, 2009-12-22 at 08:27 -0500, Bob McConnell wrote:
> From: Andy Shellam
>
> >>
> >> Both at home and at work there are caching DNS on the LAN. So a DNS
> >> request may come back with a valid IP address when the WAN connection
> is
> >> down. I still won't be able to connect to the remote site.
> >
> > Dig an external server - e.g. dig @a.root-servers.net google.co.uk
> >
> > If your net is down the query will fail even if the reply is
> > cached locally, because you're specifically requesting a response
> > from a.root-servers.net.
>
> What means dig? I can't find it in the function index of the online
> manual.
>
> Bob McConnell
>
It's not a PHP thing, it's a network thing (Domain Information Groper)
http://en.wikipedia.org/wiki/Domain_Information_Groper
Thanks,
Ash
http://www.ashleysheridan.co.uk