Followup-For: Bug #303595
Package: lftp
Version: 3.5.0-1

Regarding Alexander V. Lukyanov's reply and workaround,

> Most probably lftp tries to resolve the name to IPv6 address.
> You can disable it with:
>
>   set dns:order inet

I can say that it doesn't seem to work here at all.

~$ grep 10.1.1.5 /etc/hosts
10.1.1.5    stinky.localdomain      stinky

~$ cat /etc/host.conf 
order hosts,bind
multi on

~$ cat /etc/resolv.conf 
search localdomain
nameserver 127.0.0.1

~$ ping 10.1.1.5
PING 10.1.1.5 (10.1.1.5) 56(84) bytes of data.
64 bytes from 10.1.1.5: icmp_seq=1 ttl=128 time=1.27 ms
64 bytes from 10.1.1.5: icmp_seq=2 ttl=128 time=0.179 ms

--- 10.1.1.5 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.179/0.729/1.279/0.550 ms

~$ ping stinky
PING stinky.localdomain (10.1.1.5) 56(84) bytes of data.
64 bytes from stinky.localdomain (10.1.1.5): icmp_seq=1 ttl=128 time=0.177 ms
64 bytes from stinky.localdomain (10.1.1.5): icmp_seq=2 ttl=128 time=0.208 ms

--- stinky.localdomain ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.177/0.192/0.208/0.020 ms

~$ grep dns:order /etc/lftp.conf /home/b/.lftprc 
/etc/lftp.conf:set dns:order inet
/home/b/.lftprc:set dns:order "inet"

And it is picking up the last entry above:

~$ strace lftp 2>&1 | grep open
(snip)
open("/etc/lftp.conf", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 4
open("/home/b/.lftprc", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 4
open("/home/b/.lftp/rl_history", O_RDONLY) = 4
open("/etc/inputrc", O_RDONLY)          = 4
open("/home/b/.inputrc", O_RDONLY) = 4

Yet:

~$ lftp stinky
open: host name resolve timeout

And surprisingly:

~$ lftp 10.1.1.5
lftp: host name resolve timeout

-- 
Brian Clark



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to