Solved

telnet respond slowly

Posted on 2001-06-11
7
336 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now