Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 11977  / 2 Years ago, thu, july 28, 2022, 6:32:33

I cannot access to GitHub only on my Ubuntu 18.04 machine and all other machines (Windows PC, iPad, Phone) connected to the same network can access GitHub.


When I try to ping GitHub, I get


result of ping github.com


The result of run nslookup github.com:


Server:     127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: github.com
Address: 192.30.253.112

If I try sudo route -n:


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 600 0 0 wlp4s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp4s0
192.168.178.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp4s0

If I ping google.com, it works.


I can't access GitHub in the browser also. However, all other websites work fine. Also, I can access GitHub on other devices. Is there anything wrong with the DNS?


More From » networking

 Answers
3

I got exactly same problem below is how I solve it :
In short : there might be a github.com mistakenly configured in



/etc/hosts


Please comment out item below , everything works right for me  
# Github
#192.30.253.113 github.com

https://stackoverflow.com/questions/62964265/cannot-ping-github-on-ubuntu1804-suspect-network-configration-issue/62964372#62964372


[#3104] Friday, July 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
puccop

Total Points: 66
Total Questions: 99
Total Answers: 93

Location: Aruba
Member since Sun, Nov 27, 2022
1 Year ago
puccop questions
Thu, Feb 17, 22, 08:16, 2 Years ago
Fri, Jan 13, 23, 18:55, 1 Year ago
Fri, Jan 21, 22, 07:21, 2 Years ago
Sat, Jun 4, 22, 03:40, 2 Years ago
;