bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Problem with IPv4/IPv6 DNS resolution


From: Nelson A. de Oliveira
Subject: [Bug-wget] Problem with IPv4/IPv6 DNS resolution
Date: Thu, 14 Jul 2011 10:42:36 -0300

Hi!

I am seeing a wget behavior that in my opinion shouldn't be seen.
While trying to resolve a domain that has both IPv4 and IPv6 address,
wget fails to resolve.
For example:

=====
$ wget -d git.wifi.pps.jussieu.fr
DEBUG output created by Wget 1.12 on linux-gnu.

--2011-07-14 10:36:33--  http://git.wifi.pps.jussieu.fr/
Resolving git.wifi.pps.jussieu.fr... failed: Name or service not known.
wget: unable to resolve host address `git.wifi.pps.jussieu.fr'
=====

Saying to prefer IPv4 also doesn't work:

=====
$ wget -d --prefer-family=IPv4 git.wifi.pps.jussieu.fr
Setting --prefer-family (preferfamily) to IPv4
DEBUG output created by Wget 1.12 on linux-gnu.

--2011-07-14 10:07:47--  http://git.wifi.pps.jussieu.fr/
Resolving git.wifi.pps.jussieu.fr... failed: Name or service not known.
wget: unable to resolve host address `git.wifi.pps.jussieu.fr'
=====

But forcing to use IPv4 works:

=====
$ wget -d -4 git.wifi.pps.jussieu.fr
Setting --inet4-only (inet4only) to 1
DEBUG output created by Wget 1.12 on linux-gnu.

--2011-07-14 10:11:01--  http://git.wifi.pps.jussieu.fr/
Resolving git.wifi.pps.jussieu.fr... 91.121.16.100
Caching git.wifi.pps.jussieu.fr => 91.121.16.100
Connecting to git.wifi.pps.jussieu.fr|91.121.16.100|:80... connected.
(...)
=====

It's possible to see that the record has both IPv4 and IPv6 addresses:

=====
$ host git.wifi.pps.jussieu.fr
git.wifi.pps.jussieu.fr is an alias for coloquinte.cristau.org.
coloquinte.cristau.org has address 91.121.16.100
coloquinte.cristau.org has IPv6 address 2001:41d0:1:6364::1
=====

It's strange that everything else works here: GET, all the browsers,
ping and everything else. Only wget fails to connect to them (not only
with this example domain, but with a lot of domains that have both
IPv4 and IPv6 records).

In /etc/wgetrc I have only "passive_ftp = on"

wget -V gives:

=====
GNU Wget 1.12 built on linux-gnu.

+digest +ipv6 +nls +ntlm +opie +md5/openssl +https -gnutls +openssl
-iri

Wgetrc:
    /etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
    -DLOCALEDIR="/usr/share/locale" -I. -I../lib -g -O2 -DNO_SSLv2
    -D_FILE_OFFSET_BITS=64 -O2 -g -Wall
Link: gcc -g -O2 -DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -O2 -g -Wall
    /usr/lib/libssl.so /usr/lib/libcrypto.so -ldl -lrt ftp-opie.o
    openssl.o http-ntlm.o gen-md5.o ../lib/libgnu.a
=====

wget is Debian's package 1.12-3.1 if it helps.

Thank you!

Best regards,
Nelson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]