How to enable internet connection in ubuntu in Azure
I have Ubuntu VM provisioned from Azure cloud.It seems by default Azure has firewall and it blocks the internet connectivity. The ping to google.com is not working.The command apt-get update gives the below output.
root@linuxserver#apt-get update Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease Temporary failure resolving 'archive.ubuntu.com' Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Temporary failure resolving 'archive.ubuntu.com' Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Temporary failure resolving 'archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
In the /etc/resolve.conf I have IP like 10.x.x.x. ( for security reasons could not give the full IP) How to check whether Internet is blocked at firewall level in Azure or from network level. How to troubleshoot and enable the internet to the Ubuntu VM.
I did google search and read that I should have the Microsoft public DNS server in my configuration. Is that right or wrong.
[EDIT] After adding the Google DNS server 8.8.8.8 to /etc/resolve.conf. The apt-get update worked. so closing this thread.
[closed]