I could only ping ip addresses and not domain names. Tracked
the issue down to be a problem with a missing file. There needs
to be a file on the ubuntu environment in /etc/ called
resolv.conf
sudo nano /etc/resolv.conf
And then in there there needed to be the following entry:
nameserver 8.8.8.8
Add that in and save.