Linux fundamentals - website not connecting

I’m currently trying to complete the Linux fundamentals box and on filter contents section I’m not able to contact the required website. When I run ping I receive

┌─[us-academy-5]─[10.10.15.91]─[htb-ac-1265294@htb-kqmpqvvwpj]─[~]
└──╼ [★]$ ping inlanefreight.com
PING inlanefreight.com (134.209.24.248) 56(84) bytes of data.
^C
--- inlanefreight.com ping statistics ---
63 packets transmitted, 0 received, 100% packet loss, time 62835ms

I thought I was doing something wrong but when I ping Google I instead receive

┌─[us-academy-5]─[10.10.15.91]─[htb-ac-1265294@htb-kqmpqvvwpj]─[~]
└──╼ [★]$ ping google.com
PING google.com (142.251.46.238) 56(84) bytes of data.
64 bytes from sfo03s27-in-f14.1e100.net (142.251.46.238): icmp_seq=1 ttl=57 time=2.27 ms

if anyone can help me I’d really appreciate

maybe you should try linking the domain to the target machine’s IP in /etc/hosts file.

I just did this and it still doesn’t work. here’s what I got when I pinged

└──╼ [★]$ ping inlanefreight.com
PING inlanefreight.com (134.209.24.248) 56(84) bytes of data.
^C
--- inlanefreight.com ping statistics --- 
5 packets transmitted, 0 received, 100% packet loss, time 4029ms

I also noticed that I cannot go to any websites in firefox from the htb website virtual machine. this is what I get when trying to visit the htb website from the online virtual machine


An error occurred during a connection to academy.hackthebox.com.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the web.


I can still ping Google from the terminal but I cant reach many other websites nor servers