Hello,
I'm getting these errors quite often and I don't know why exactly. Sometimes it works sometimes it does no work:
git fetch -p
ssh: Could not resolve hostname bitbucket.org: Name or service not known
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists
I'm using google DNS servers:
cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
And this is what I get for host command
host bitbucket.org
bitbucket.org has address 18.205.93.1
bitbucket.org has address 18.205.93.2
bitbucket.org has address 18.205.93.0
bitbucket.org has IPv6 address 2406:da00:ff00::22cd:e0db
bitbucket.org has IPv6 address 2406:da00:ff00::34cc:ea4a
bitbucket.org has IPv6 address 2406:da00:ff00::22c0:3470
bitbucket.org mail is handled by 1 aspmx.l.google.com.
bitbucket.org mail is handled by 10 aspmx2.googlemail.com.
bitbucket.org mail is handled by 10 aspmx3.googlemail.com.
bitbucket.org mail is handled by 5 alt1.aspmx.l.google.com.
bitbucket.org mail is handled by 5 alt2.aspmx.l.google.com.
After waiting some time the command works. But it is really annoying. It happens from multiple internet providers.
traceroute bitbucket.org
traceroute to bitbucket.org (18.205.93.1), 30 hops max, 60 byte packets
1 _gateway (192.168.1.1) 1.610 ms 1.602 ms 4.525 ms
2 109.100.112.1 (109.100.112.1) 17.877 ms 18.232 ms 19.192 ms
3 * * *
4 10.0.240.194 (10.0.240.194) 50.436 ms 10.0.240.190 (10.0.240.190) 54.632 ms 55.802 ms
5 10.0.240.125 (10.0.240.125) 47.976 ms 49.128 ms 10.0.240.145 (10.0.240.145) 51.965 ms
6 ffm-b10-link.telia.net (62.115.154.68) 53.067 ms 48.106 ms 51.216 ms
7 ffm-bb4-link.telia.net (62.115.137.210) 147.213 ms 149.721 ms 147.047 ms
8 prs-bb4-link.telia.net (62.115.114.98) 130.802 ms prs-bb4-link.telia.net (62.115.122.138) 149.593 ms prs-bb4-link.telia.net (62.115.114.98) 131.697 ms
9 ash-bb3-link.telia.net (62.115.122.159) 151.900 ms 151.877 ms 151.845 ms
10 ash-b1-link.telia.net (62.115.143.79) 135.953 ms ash-b1-link.telia.net (80.91.248.157) 137.386 ms 146.642 ms
11 vadata-ic-333119-ash-b1.c.telia.net (213.248.92.171) 142.172 ms 142.164 ms vadata-ic-333118-ash-b1.c.telia.net (62.115.11.183) 148.981 ms
12 54.239.108.40 (54.239.108.40) 158.908 ms 54.239.108.38 (54.239.108.38) 154.195 ms *
13 52.93.114.65 (52.93.114.65) 143.057 ms 52.93.114.63 (52.93.114.63) 136.194 ms 52.93.114.17 (52.93.114.17) 137.820 ms
14 52.93.28.178 (52.93.28.178) 139.016 ms * *
15 * * *
16 * * *
17 * 52.93.28.166 (52.93.28.166) 132.455 ms 52.93.28.172 (52.93.28.172) 136.668 ms
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
Any help is appreciated.
Thanks,