It's more precise to use dig rather than ping. The stock ubuntu image doesn't come with dig (in package dnsutils), but luckily Aanand made an image which is exactly ubuntu+dnsutils.