DNS turns a name like example.com into an IP address. When a site 'doesn't work', checking DNS is one of the first steps.
ping -c 4 example.com nslookup example.com dig example.com +short # Linux/macOS