DNS resolution fails after wakeup from standby (Ubuntu 16.10)

Solution 1:

I've had the same issue with Ubuntu 16.10 on MacbookPro.

Fixed it by disabling dnsmasq in network manager by commenting out dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf.

Solution 2:

What I've found is this thread where users are complaining for dnsmasq and advising to restart it. I've tried (sudo service dnsmasq restart) and it helped. So I configured this restarting to cron job every minute as temporary solution.