Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

For my firewall scripts to determine whether my ISP is up I need a few reliable, geographically distributed addresses to ping.

I could just use some major sites like Google, Akamai, etc. But that seems rude. It is also unreliable, what if they decide to start blocking ICMP traffic like so many other sites already do?

I'd prefer to use hosts that have gone on the record saying they are ok with this. Are there any hosts that have offered to serve as a public "ping" target, the way many public NTP servers offer their services?

A list, or round-robin DNS of such hosts would be excellent, but I suspect that's asking too much...

share|improve this question

2 Answers 2

up vote 2 down vote accepted

I'd recommend avoiding ping and looking at something like curl or telnet. You need to do this in two parts though, because it could be a nameserver issue.

Step 1: Verify functioning nameserver
Step 2: use curl, wget, or telnet (on port 80) and search the results for any known text.

This is better than pinging since you pretty much KNOW Google is going to be around to serve your requests on port 80.

Come to think of it, you could just do an nslookup on one of Google's nameservers (8.8.4.4 or 8.8.8.8) and if that succeeds, you're good.

share|improve this answer

Try taking a list of about 20 servers (Google, akamai, whatever), and only throw a critical fault when at least 3 fail. That way you won't be woken up at 3AM because one company decided to stop ICMP.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.