Search This Blog

Tuesday, April 12, 2011

Speed issues on Intranet server services: SSH MySQL FTP

Just fix this issues:

Because the server is in a intranet environment.
Every time when connect to services: SSH MySQL FTP
It will take from 20 second to 6 minutes to connect into server.

Which in some case like FTP client will tell you "Time Out"

The reason cause this issues is: Reverse DNS lookup

To fix this:

1.SSH

# sed 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config -i

# service sshd restart

2.MySQL

# vi /etc/my.cnf

Add:
[mysqld]
skip-name-resolve

3.FTP

vi /etc/resolv.conf


use "#" to disable the intranet server like:


#nameserver 1.2.3.4
#nameserver 5.6.7.8




Done.

7 comments:

  1. Update on same issues.

    If you still want use DNS for some software like:
    easyDNS

    vi /etc/resolv.conf

    nameserver 8.8.8.8
    nameserver 8.8.4.4

    ReplyDelete
  2. Well I sincerely liked studying it. This subject provided by you is very practical for correct planning.

    ReplyDelete
  3. Excellent way of telling, and pleasant piece of writing to get information concerning my presentation focus, which i am going to convey in institution of higher education.
    [url=http://getlistmoshou.blogcenter.de/]where get inexpensive wow gold on uwowgold.com.au[/url]
    where get inexpensive wow gold on uwowgold.com.au

    ReplyDelete