I am using ubuntu-server 19.10 and I can only ping (from what I have tried) google.com, youtube.com and ubuntu.com.

I however cannot ping, wget or git clone from github.com, cnet.com, duckduckgo.com, sourceforge.net,, ...

Whenever I try to ping them I get the message:

ping: connect: Network is unreachable

How can I connect to these websites?

EDIT: ping -n xyz gets the same result.

traceroute -n duckduckgo.com:
traceroute to duckduckgo.com ( hops max, 60 byte packets
  • 1
    A bit more info is needed to answer. At least: ping -n duckduckgo.com ping -n ubuntu.com and traceroute -n duckduckgo.com traceroute -n ubuntu.com Preferable some more info about your config, as in askubuntu.com/questions/1084865/network-is-unreachable Commented Mar 16, 2020 at 12:11
  • 1
    that was the entire output of the failed ping. Commented Mar 16, 2020 at 12:19
  • I ended up assigning a new ipv4 address to my server Commented Mar 16, 2020 at 14:59

1 Answer 1


It looks like these having A and AAAA-Records registered properly:

  • google.com
  • youtube.com
  • ubuntu.com

It looks like those dont have / misconfigured AAAA-Records but have A-Records:

  • github.com
  • cnet.com
  • duckduckgo.com

Tested with this DNS Record Viewer

Does your server get a public IPv4?

To me it looks like your server can't access servers that only have an DNS A-Record cause it doesn't have an IPv4-adress itself. If that is the case you can:

  • try / ask for assigning an IPv4 to your server
  • tuneling IPv6 to IPv4 by a proxy software i.e. 6tunnel or similar
  • wait / ask for those website IPv6 support
  • 2
    I somehow didn't have an ipv4 address. Thanks. Commented Mar 16, 2020 at 12:35
  • 2
    I had this once in my home network. It was interresting to observe which part of the internet works with IPv6 only, and which part doesn't. Commented Mar 17, 2020 at 0:43
  • 1
    @PaŭloEbermann you might already know: There are internet providers applying DS-Lite to (private) customers. This means you will get a personal IPv6 but share IPv4 with other customer. As long as you access internet from your personal router you are all good unless you want to setup a server within a DMZ etc. on your side that can be accessed from internet. This will only work if the person accessing server has IPv6 - if the person will possibly only have IPv4 you should set up a tunnel / proxy on an IPv4&IPv6-ready internet server that routes from IPv4 to IPv6 going to your router this way. Commented Mar 17, 2020 at 9:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .