[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

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



0
D_wathi
Asked:
D_wathi
  • 6
  • 4
  • 2
1 Solution
 
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
Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

 
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
 
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

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 6
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now