I used the following command and tried to clone a repo but unfortunately the following error pops up. I cannot go further
ubuntu@ip-add-rr-ee-ss:~$ git clone https://github.com/repo/file.git
Cloning into 'file'...
fatal: unable to access 'https://github.com/repo/file.git/': Could not resolve host: github.com
Could not resolve host
This must be due to DNS issue on your EC2 instance (I can see that you're using Ubuntu here)
curl
to test the connection to that URL firstcat /etc/resolv.conf
vi /etc/resolv.conf
[Esc]
and type :wq