Github.com times out on M1 Mac but other devices are okay

Recently I have been unable to load GitHub.com on my M1 Mac mini.

All other devices on my network can access without issue.

When trying to access from Safari or any other browser such as Chrome or Firefox it just hangs in loading.

If I try a curl from the terminal such as installing Homebrew, I get a 'could not resolve host' error...


/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
curl: (6) Could not resolve host: raw.githubusercontent.com

However, if I connect to a VPN, it loads fine.


I tried deleting the DNS servers in the Network settings (I read somewhere this might help) but it didn't change anything.

I checked for Proxies and nothing is checked and there is nothing in the Bypass field.


I'm at a loss here. Can anyone suggest something I need to check?

Posted on Feb 21, 2022 11:13 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 21, 2022 12:11 PM

Try adding a manual DNS server. Here are a few of the public DNS servers you can use:


Google

8.8.8.8


Quad9

9.9.9.9


Cloudflare

1.1.1.1


If either of these work, then you have a DNS issue with whatever provider is being assigned by your router via DHCP. Likely your ISP. Consider adding these Public DNS servers to your router and override your ISP's DNS servers. There's a lot to learn about DNS and these big DNS providers typically do a far better job with DNS than an ISP. But I would recommend that you search online for Public DNS to read up on the topic and decide what would work best for your needs.

3 replies
Question marked as Top-ranking reply

Feb 21, 2022 12:11 PM in response to spcurtis81

Try adding a manual DNS server. Here are a few of the public DNS servers you can use:


Google

8.8.8.8


Quad9

9.9.9.9


Cloudflare

1.1.1.1


If either of these work, then you have a DNS issue with whatever provider is being assigned by your router via DHCP. Likely your ISP. Consider adding these Public DNS servers to your router and override your ISP's DNS servers. There's a lot to learn about DNS and these big DNS providers typically do a far better job with DNS than an ISP. But I would recommend that you search online for Public DNS to read up on the topic and decide what would work best for your needs.

Feb 21, 2022 12:12 PM in response to spcurtis81

Try adding a manual DNS server. Here are a few of the public DNS servers you can use:


Google

8.8.8.8


Quad9

9.9.9.9


Cloudflare

1.1.1.1


If either of these work, then you have a DNS issue with whatever provider is being assigned by your router via DHCP. Likely your ISP. Consider adding these Public DNS servers to your router and override your ISP's DNS servers. There's a lot to learn about DNS and these big DNS providers typically do a far better job with DNS than an ISP. But I would recommend that you search online for Public DNS to read up on the topic and decide what would work best for your needs.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Github.com times out on M1 Mac but other devices are okay

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.