default /etc/hosts and ftp

Boris Samorodov bsam at
Fri Feb 22 14:58:34 UTC 2008

Hello List!

I'm seeing a strange /etc/hosts effect with ftp to the host itself.
The file /etc/hosts was created while installing (this is a fresh
8-CURRENT install). The lines in question from /etc/hosts:
-----  testbox 

The ftp service is invoked by indetd:
ftp	stream	tcp	nowait/100/100/10	root	/usr/libexec/ftpd	ftpd -ll4A

The effect:
% fetch
load: 0.02  cmd: fetch 8217 [connec] 0.00u 0.00s 0% 2216k
fetch: Operation timed out

The relevant part from netstat:
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0  testbox.61799          testbox.ftp            SYN_SENT
tcp4       0      0  *.ftp                  *.*                    LISTEN

If the first line at /etc/hosts is deletted/commented out (changing an
order of those lines doesn't help):
% fetch
portupgrade.tbz                               100% of  127 kB   91 MBps

The host resolves direct and revers just fine.

Some additional info (GENERIC-FAST is GENERIC without INVARIANTS/WITNESS):
% uname -a
FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Feb 21 16:54:25 MSK 2008     root at  amd64

Any comments? Thanks!

Boris Samorodov (bsam)
Research Engineer, Telephone & Internet SP
FreeBSD committer, The Power To Serve

More information about the freebsd-current mailing list