Periodically (not that regular but perhaps once every 2-3 weeks), I see my emonPi unable to resolve emoncms.org. Consequently, it then becomes unable to upload data to emoncms.org, so I see data missing on there. Local emoncms continues getting the data just fine.
When this happens, if I SSH onto the emonPi and run wget www.emoncms.org > /dev/null
it shows that it’s unable to resolve the address. If I reboot the pi, or even just just restart the network service on it (sudo service networking restart
) it will then begin resolving the URL again and uploading data.
No other devices on my network suffer this problem (that is, I can browse emoncms.org okay), so I’m not sure where the fault lies. Is there a quick command that I can schedule daily on the pi that will flush its DNS cache (i.e. the equivalent of ‘ipconfig /flushdns’ on Windows)? I’d rather not have to schedule a restart of the networking service or the pi, as that seems a little heavy-handed and may produce gaps in data.