ftp is not resolving hostname from hosts file -


i have hostname in /etc/hosts,
10.0.0.124 hostname.domain hostname
can ping , ssh hostname. when enter
ftp 10.0.0.124
or ftp hostname
"no route host" in response. when comment out line, , try
ftp hostname
ftp responds "name or service not known". ftp looking in hosts file apparently not believe it. why not?? on centos 6.5 , ftp installed using yum install ftp. ftp daemon running on hostname vsftpd.

and fixed! problem hostname's firewall configured drop ftp packets. obvious! inserted
-a input -m state --state new -m tcp -p tcp --dport 21 -j accept
in /etc/sysconfig/iptables, , restarted iptables service. done!


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -