Bug 162299 - lftp prefers IPv4 over IPv6
lftp prefers IPv4 over IPv6
Product: Fedora
Classification: Fedora
Component: lftp (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
Depends On:
  Show dependency treegraph
Reported: 2005-07-01 21:35 EDT by Daniel Roesen
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-07-05 09:43:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Daniel Roesen 2005-07-01 21:35:18 EDT
Unfortunately, lftp prefers IPv4 over IPv6 by default. I would like to see Fedora
modifying /etc/lftp.conf with the following line:

set dns:order "inet6 inet"

This reverts the order and lets lftp prefer IPv6 if available.
Comment 1 Jason Vas Dias 2005-07-05 09:43:58 EDT
There is the 'dns:order' boolean .lftprc configuration variable for
this purpose.
Putting the line:
  'set dns:order inet6 inet'
in the lftp configuration file should do the trick - ie. in either
the system-wide /etc/lftp.conf or the per-user ~/.lftp/rc or ~/.lftprc .
You could also put the 'options inet6' statement in /etc/resolv.conf
or rebuild the lftp package with the '-DINET6' option to achieve the
same effect.

This should not be the default setting, as most systems still use 
IPv4 first by default, and the 'inet inet6' default order is as
documented in the lftp man-pages. Changing the default order would
confuse  and annoy many lftp users and make our lftp distribution
different from all others.
Comment 2 Daniel Roesen 2005-07-06 18:42:42 EDT
Of course there is "dns:order", as I wrote in my original report.

Regarding "most systems still use IPv4 first by default", this is just outright
wrong. In dual stack systems, IPv6 is to be used by default, not IPv4. And
actually I haven't seen it implemented the other way before, except in lftp.

Anyway, the upstream author of lftp understood and fixed it for the next lftp
version, so Fedora will have that fixed with the next lftp update too.

Note You need to log in before you can comment on or make changes to this bug.