Re: Checking for internet connection.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21 Dec 2009, at 19:40, Andy Shellam wrote:

>> 
>> 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.

I'm confused... what's the problem with just trying to hit the update server? If you can then you check for updates, if not then you, erm, don't. Simples, no?

-Stuart

-- 
http://stut.net/
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux