Solved

telnet respond slowly

Posted on 2001-06-11
7
338 Views
Last Modified: 2013-12-27
I have a solaris2.6 server, in /etc/nsswitch.conf: hosts xfn nisplus,dns,files, then telnet respond slowly; when modified /etc/nsswitch.conf like this: hosts xfn,nisplus,files, then telnet respond quickly. I don't understand why? Please give me directions. thanks.
(BTW, on the other machine(another solaris2.6), use the same dns service, its telnet respond normally.)
0
Comment
Question by:RebeccaYue
7 Comments
 
LVL 5

Expert Comment

by:Nisus091197
ID: 6176562
Hi,

The client must determine the IP address of the machine you are telnetting to.  It first looks up the /etc/nsswitch.conf file to see the order in which it should attempt to find the IP.

The fastest way is to put the IPs in the local /etc/hosts file and specify files first in the ordered list.

To make the system run even faster, put the client's IP address into the local /etc/hosts file on the machine you are telnetting to and change its /etc/nsswitch.conf file to specify 'files' first as well.

Regards, Nisus
http://www.omnimodo.com
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6177432
Yes, but in this case it looks like it's not so much that files are faster than DNS (true, but usually not noticable) but rather that one or more DNS servers are down, causing the access to them to timeout before the lookup continues
0
 

Expert Comment

by:arunmozhi
ID: 6185246
Hai,
    I hope you know about name servers and /etc/nsswitch.conf is the file that is useful to decide which resources to be used for determining the ip-address (in your case) .
     Resources may be files,dns,nis,nis+. When you are referring the files it is refers the needed information from the local /etc/ directory . so it will be very fast compare to the remaining resources.
     In case your telnet session is slow is because of the packet forwading by the routers will be slow and because of firewalls installed on both sending and receiving sides.
Check out all these. Changing the order is only based on the environmental needs of the project.
 
0
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

Expert Comment

by:arunmozhi
ID: 6185248
Hai,
    I hope you know about name servers and /etc/nsswitch.conf is the file that is useful to decide which resources to be used for determining the ip-address (in your case) .
     Resources may be files,dns,nis,nis+. When you are referring the files it is refers the needed information from the local /etc/ directory . so it will be very fast compare to the remaining resources.
     In case your telnet session is slow is because of the packet forwading by the routers will be slow and because of firewalls installed on both sending and receiving sides.
Check out all these. Changing the order is only based on the environmental needs of the project.
 
0
 
LVL 4

Expert Comment

by:jlms
ID: 6214829
You have to know which name services are available for host name resolution in your network.

If you have NIS+ and DNS and host name can be resolved by both means then it is pretty much a matter of trial and error to see which service is faster, keep in mind that a NIS+ server is dealing not only with hosts, but also passwords, groups, netgroups, automounter points and whatever else your sysadmin decides to throw at it. DNS deals with hosts names only, so it should be the preferd method:

hosts: files dns nisplus

Forget about puting stuff in /etc/hosts if you have a big network, it eventualy becomes a nightmare to administer.

You can speed things up a bit by enebling the Name Service cache daemon (nscd). Please check its man page.
0
 
LVL 20

Expert Comment

by:tfewster
ID: 8003142
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- PAQ, no points refunded

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8066008
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help stop mail server from sending spam. 27 127
Python Assistance 7 81
unix in java example 9 64
How do disable only TLSv1.0 in Oracle Sun One 7.1 Server 9 98
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question