wget prefers IPv4 address over IPv6 one
John Summerfield
debian at herakles.homelinux.org
Sun Dec 16 23:08:54 UTC 2007
Dawid Gajownik wrote:
> Hi!
>
> Does anyone know why wget prefers IPv4 address over IPv6 one?
Perhaps:
08:03 [summer at numbat ~]$ telnet 2001:770:18:aa40::c101:c140 21
Trying 2001:770:18:aa40::c101:c140...
telnet: connect to address 2001:770:18:aa40::c101:c140: Network is
unreachable
telnet: Unable to connect to remote host: Network is unreachable
perhaps because it is less likely to work?
Here's another client:
08:07 [summer at numbat ~]$ lftp -d 2001:770:18:aa40::c101:c140
lftp 2001:770:18:aa40::c101:c140:~> dir
---- Connecting to 2001:770:18:aa40::c101:c140
(2001:770:18:aa40::c101:c140) port 21
connect(control_sock): Network is unreachable
---- Closing control socket
---- Connecting to 2001:770:18:aa40::c101:c140
(2001:770:18:aa40::c101:c140) port 21
connect(control_sock): Network is unreachable
---- Closing control socket
---- Connecting to 2001:770:18:aa40::c101:c140
(2001:770:18:aa40::c101:c140) port 21
connect(control_sock): Network is unreachable
---- Closing control socket
`ls' at 0 [Delaying before reconnect: 58]
>
> [gajownik at cyklop tmp]$ LANG=C wget
> ftp://ftp.heanet.ie/pub/fedora/linux/releases/8/Fedora/i386/iso/Fedora-8-i386-rescuecd.iso
>
> --14:34:30--
> ftp://ftp.heanet.ie/pub/fedora/linux/releases/8/Fedora/i386/iso/Fedora-8-i386-rescuecd.iso
>
> => `Fedora-8-i386-rescuecd.iso'
> Resolving ftp.heanet.ie... 193.1.193.64, 2001:770:18:aa40::c101:c140
> Connecting to ftp.heanet.ie|193.1.193.64|:21... connected.
>
> [snip]
>
> What do you think about adding to the default /etc/wgetrc file this
> statement:
>
> prefer-family = IPv6
>
Not much, but feel free to try it.
> Regards,
> Dawid
>
--
Cheers
John
-- spambait
1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
More information about the fedora-test-list
mailing list