Best way to check if there is internet?

Grant Edwards grant.b.edwards at gmail.com
Mon Feb 7 16:02:42 EST 2022


On 2022-02-07, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Mon, 07 Feb 2022 11:40:24 -0800 (PST), Grant Edwards
><grant.b.edwards at gmail.com> declaimed the following:
>
>>On 2022-02-07, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
>>
>>> Also, for a machine freshly booted, with no cache, even pinging
>>> Google first requires making contact with a DNS server to ask for
>>> Google's IP address. With no network, the DNS look-up will fail
>>> before ping even tries to hit Google.
>>
>>Ah, c'mon... Every geek worth his salt knows a few real world IP
>>addresses without relying on DNS. If you want to "ping Google", it's
>>
>> $ ping 8.8.8.8
>>or
>> $ ping 8.8.4.4
>>
>
> Which happen to be Google's DNS servers -- not what most think of as
> "Google"

Right. So even asking "do you have Google" is too vague. :)

> Manipulates network routing tables.

Sorry, I didn't know that the Windows "route" command didn't recognize the
standard -n option.

--
Grant



More information about the Python-list mailing list