I assume this issue is to do with my DNS server, but I can't seem to figure it out. I am running Arch inside a Hyper-V virtual machine which is set up with a "Legacy Network Adapter" to my host's wireless network adapter.

When I run ping, an IP address for www.google.com, I get the following output and a successful ping (as expected):

PING 56(84) bytes of data.

When I run ping www.google.com, I get the following output and 100% packet loss:

Ping www.google.com(ord36s01-in-x04.ie100.net (2607::f8bo::4009::80c::2004)) 56 data bytes

The internet connection on my host PC (running Windows 10) works just fine.

I have also noticed that the host PC has a different DNS server set. It is using Google's and, while the Arch virtual machine is using my ISP's (Time Warner Cable). However, even when I change to the Google DNS servers, the issue persists.

Any help would be greatly appreciated.


When I run ping, I get the following output and a successful ping:

PING 56(84) bytes of data

When I run nslookup stackexchange.com, I get the following:


Non-authoritative answer:
Name:   stackexchange.com
Name:   stackexchange.com
Name:   stackexchange.com
Name:   stackexchange.com
  • 4
    Suggest you turn off ipv6. And expand question to include output of ping and nslookup stackexchange.com – steve Mar 5 '17 at 16:30
  • 2
    Or better still, turn on or otherwise fix ipv6, since it is obviously not working, even though the DNS is returning ipv6 addresses. – Johan Myréen Mar 5 '17 at 17:31
  • I'm sorry, I'm a bit of a newbie and don't know how to do either of those things. Could you please be a bit more specific on how I would achieve this? – Theo Sandstrom Mar 5 '17 at 19:52
  • 1
    Please see my answer to this related question, and implement it. unix.stackexchange.com/questions/308283/… – Rui F Ribeiro Mar 5 '17 at 20:17
  • Excellent, glad I could help – Rui F Ribeiro Mar 6 '17 at 0:23

I have worked this out using Rui F Ribeiro's answer here.

I opened /etc/gai.conf and added the following to the last line:

precedence ::ffff:0:0/96 100

I then created a file at /etc/sysctl.conf and added net.ipv6.conf.all.disable_ipv6=1 to the last line. I then ran sudo sysctl -p. Then everything worked perfectly.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.