dns in linux

Dear Sir/Madam:

Have linux as local nameserver for the lan and the same as ftp server , dns is configured and from the clients the name resolve is happening correctly i,e nslookup with name and with ip address but when the client in the lan connects to the ftp account after the user session it waits for 05 to 07 minutes on the password prompt and then the login happens ( ftp login is very much slow ) then i thought of putting the client ipaddress in the /etc/hosts file and did the same for few ipaddress after doing this the ip's which ever is in the /etc/hosts are able to login to the ftp server very much fast , please please tell me why is this happening even thhough the DNS is working fine



D_wathiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

juanolleCommented:
Do you have reverse configured in dns for yours clients?
0
D_wathiAuthor Commented:
thanks for the reply :

nslookup computer29.scriptacom.org
Server:  parrot.scriptacom.org
Address:  192.168.1.250

Name:    computer29.scriptacom.org
Address:  192.168.1.29

----------------reverse------------------------------
nslookup 192.168.1.29
Server:  parrot.scriptacom.org
Address:  192.168.1.250

Name:    computer29.scriptacom.org
Address:  192.168.1.29


please help me

0
juanolleCommented:
It still looks like ftp-server is tryin to do reverse lookup but can't. If there is setting in ftp-server where You can disable reverse lookup, that would solve it.
0
MSSPs - Are you paying too much?

WEBINAR: Managed security service providers often deploy & manage products from a variety of solution vendors. But is this really the best approach when it comes to saving time AND money? Join us on Aug. 15th to learn how you can improve your total cost of ownership today!

juanolleCommented:
...and if You want to check what is wrong with yours reverse this might be helpful:
http://www.landfield.com/wu-ftpd/mail-archive/wuftpd-doc/2001/Sep/0000.html
0
D_wathiAuthor Commented:
Sir . reverse lookup is happening :

nslookup 192.168.1.29
Server:  parrot.scriptacom.org
Address:  192.168.1.250

Name:    computer29.scriptacom.org
Address:  192.168.1.29


but still the same problem,.


0
z3r3Commented:
Your issue is a common one and definitely relates to reverse lookup! 100% certain of that. What can happen is one of many things but here are most common problems and the solutions.

1) Check the resolve order i.e. you may find that resolution if localhost then the internet then another local server which has the dhcp addresses so changing the order to look at the local server may help improve the speed.
2) Sometimes I find this occurs if users are in the same subnet as the server and putting through a gateway where they are on different IPs helps
3) Similar to the 2nd solution is where you put in NATted gateway so all clients have same source IP and then you simply put this into the local hosts file.
4) Alter the configuration file for your FTP server to not do reverse lookups.

Option 1 is the best solution though but only works if there is another dns server on the network holding the reverse lookup for all client addreses.
0
juanolleCommented:
Yes, I see that there is reverse happening. But is it happening from ftp-server? If adding client ip to hosts file solves it, it looks like reverse error.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
D_wathiAuthor Commented:
Thanks for the reply , yes sir it is also happening from the ftp server the nameserver and ftp server both are in the same linux server
0
juanolleCommented:
What is in /etc/resolv.conf of that server?
0
D_wathiAuthor Commented:
Sir:
/etc/resolv.conf of the server is :

nameserver 202.56.230.6    #  this is ISP name server
nameserver 192.168.1.250  # the same systems ip address because this  is working as name server and ftp server


0
juanolleCommented:
Does it help if You change the order...

nameserver 192.168.1.250
nameserver 202.56.230.6
0
z3r3Commented:
if u use resolv.conf the order is very important!!!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Server Software

From novice to tech pro — start learning today.