Tuesday, July 28, 2015

Ubuntu DNS error on Virtualbox

Quite often on my Guest Ubuntu system on virtual box, I face this problem, where network is accessible via IP but not my domain name. I am able to ping any IP but DNS resolution fails. In those scenarios I have found the following command quite useful:

sudo dpkg-reconfigure resolvconf
This resets/regenrates the resolv.conf and everything is back to normal :)