Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k

I am trying to curl ipv6 adressesaddresses, but without success.

If iI try lets say:

curl https://google.com

I wait for a timeout and get network unreachable

If iI force ipv4, everything is fine.

curl -4 https://google.com

Then again if iI force ipv6, like this:

curl -6 https://google.com

iI get:

curl: (7) Failed to connect to 2800:3f0:4001:806::1005: Network is unreachable

I suppose it has to do somehow with resolving ipv6 adressesaddresses.

I saw that on other computers that have a newer version of some linuxLinux distro, these requests go fine, so i'mI'm guessing it has to do something with me using ubuntuUbuntu 10.10, where this problem isn't solved.

I want to be able to curl normally without using the option: -4, what do iI have to modify to be able to use curl normally with ipv6 adressesaddresses?

I am trying to curl ipv6 adresses, but without success.

If i try lets say:

curl https://google.com

I wait for a timeout and get network unreachable

If i force ipv4, everything is fine.

curl -4 https://google.com

Then again if i force ipv6, like this:

curl -6 https://google.com

i get:

curl: (7) Failed to connect to 2800:3f0:4001:806::1005: Network is unreachable

I suppose it has to do somehow with resolving ipv6 adresses.

I saw that on other computers that have a newer version of some linux distro, these requests go fine, so i'm guessing it has to do something with me using ubuntu 10.10, where this problem isn't solved.

I want to be able to curl normally without using the option: -4, what do i have to modify to be able to use curl normally with ipv6 adresses?

I am trying to curl ipv6 addresses, but without success.

If I try lets say:

curl https://google.com

I wait for a timeout and get network unreachable

If I force ipv4, everything is fine.

curl -4 https://google.com

Then again if I force ipv6, like this:

curl -6 https://google.com

I get:

curl: (7) Failed to connect to 2800:3f0:4001:806::1005: Network is unreachable

I suppose it has to do somehow with resolving ipv6 addresses.

I saw that on other computers that have a newer version of some Linux distro, these requests go fine, so I'm guessing it has to do something with me using Ubuntu 10.10, where this problem isn't solved.

I want to be able to curl normally without using the option: -4, what do I have to modify to be able to use curl normally with ipv6 addresses?

Source Link
Zippie
  • 1.9k
  • 2
  • 14
  • 14

Curl with ipv6 not working by default

I am trying to curl ipv6 adresses, but without success.

If i try lets say:

curl https://google.com

I wait for a timeout and get network unreachable

If i force ipv4, everything is fine.

curl -4 https://google.com

Then again if i force ipv6, like this:

curl -6 https://google.com

i get:

curl: (7) Failed to connect to 2800:3f0:4001:806::1005: Network is unreachable

I suppose it has to do somehow with resolving ipv6 adresses.

I saw that on other computers that have a newer version of some linux distro, these requests go fine, so i'm guessing it has to do something with me using ubuntu 10.10, where this problem isn't solved.

I want to be able to curl normally without using the option: -4, what do i have to modify to be able to use curl normally with ipv6 adresses?