Detect domain and network connectivity in real-time.