[virtualbox] get nameserver from network manager on ubuntu-like hosts

Tested on ubuntu 12.10. Commands checked on ubuntu 12.04, 12.10, 13.04.