Sometimes, when your internet is down, it may be your router (or Freebox in France) which has gone crazy. A power cycle sometimes fixes the issue.
The idea is to DIY a reset plug : http://resetplug.com/
The idea here is to use an ESP8266 which pings a website. When ping fails, the ESP8266 uses a relay to power cycle a plug.