You are not logged in.

#1 2021-03-03 21:24:27

lookinglass
Member
Registered: 2021-03-03
Posts: 8

[SOLVED] can't connect to github.com

I can access github.com from other devices on my home network. I can use lynx, curl, wget, git clone on my arch install with any other host I can think of. But github.com can't be found via any of those programs. I can't even open the main page much less clone a repo, so my makepkg is pretty much broken. I tried changing and adding DNS servers, no difference. It looks like it's exclusive to github.com with this machine and I can't fathom what the underlying cause might be. What am I missing here?

Last edited by lookinglass (2021-03-12 02:34:44)

Offline

#2 2021-03-03 21:32:13

loqs
Member
Registered: 2014-03-06
Posts: 13,257

Re: [SOLVED] can't connect to github.com

What is the full output from

curl -o /dev/null -v https://github.com

Offline

#3 2021-03-03 21:38:55

lookinglass
Member
Registered: 2021-03-03
Posts: 8

Re: [SOLVED] can't connect to github.com

All zeroes, resolves to 140.82.112.4:443 and then

* Immediate connect fail for 140.82.112.4: Network is unreachable
* Closing connection 0
curl: (7) Couldn't connect to server

Offline

#4 2021-03-03 21:46:34

Awebb
Member
Registered: 2010-05-06
Posts: 5,823

Re: [SOLVED] can't connect to github.com

It resolves as 140.82.112.3 for me.

Offline

#5 2021-03-03 21:57:58

loqs
Member
Registered: 2014-03-06
Posts: 13,257

Re: [SOLVED] can't connect to github.com

github has the IP block 140.82.112.0/20 which covers both the above addresses.
Edit:
What is the output of

ip r

Last edited by loqs (2021-03-03 22:13:36)

Offline

#6 2021-03-03 22:15:26

lookinglass
Member
Registered: 2021-03-03
Posts: 8

Re: [SOLVED] can't connect to github.com

No output for

ip r

Offline

#7 2021-03-03 22:25:54

loqs
Member
Registered: 2014-03-06
Posts: 13,257

Re: [SOLVED] can't connect to github.com

What about:

ip l
ip a

Without any routing I am surprised any websites worked.

Offline

#8 2021-03-03 22:36:44

lookinglass
Member
Registered: 2021-03-03
Posts: 8

Re: [SOLVED] can't connect to github.com

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DORMANT group default qlen 1000
    link/ether a4:5e:60:db:38:97 brd ff:ff:ff:ff:ff:ff
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether a4:5e:60:db:38:97 brd ff:ff:ff:ff:ff:ff
    inet6 2600:1700:6b0:fdb0::681/128 scope global dynamic noprefixroute 
       valid_lft 2590031sec preferred_lft 602831sec
    inet6 2600:1700:6b0:fdb0:8d23:87d:7cb0:94e/64 scope global dynamic noprefixroute 
       valid_lft 3557sec preferred_lft 3557sec
    inet6 fe80::288c:3697:221d:9de/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

I tried using termbin.com and it couldn't resolve that either so maybe my DNS isn't so great after all?

Offline

#9 2021-03-03 22:44:37

loqs
Member
Registered: 2014-03-06
Posts: 13,257

Re: [SOLVED] can't connect to github.com

Do the other systems without the issue have IPV4 addresses assigned to them?  If not the issue would appear to be DNS resolution returning IPV4 results instead of IPV6.

Last edited by loqs (2021-03-03 22:44:59)

Offline

#10 2021-03-03 22:45:25

lookinglass
Member
Registered: 2021-03-03
Posts: 8

Re: [SOLVED] can't connect to github.com

I think I figured something out at least. nmcli shows that the interface is set to IPv6 default and

ip -6 r

shows a routing table so maybe it's just lacking IPv4 configuration altogether?

Offline

#11 2021-03-03 22:53:34

lookinglass
Member
Registered: 2021-03-03
Posts: 8

Re: [SOLVED] can't connect to github.com

Yes they do, I think you're right. Thanks for the help!

Offline

Board footer

Powered by FluxBB