HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Nameserver setting
Operating System - Linux
1828235
Members
2239
Online
109975
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2002 06:01 PM
08-25-2002 06:01 PM
My new setup linux server is quite slow now when conneting (telnet)from client , someone said to me , it would be better if modify the ??? resolv.conf ??? , what nameserver should I add to? How do I modify it to improve the connection speed? Thanks.
Andy
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2002 07:17 PM
08-25-2002 07:17 PM
Solution
Hi
I guess "someone" try to give you advice that hostname resolution cause your problem.
If you want to do trouble shoot,
check following.
1) telnet to server ip
2) telnet to server hostname
3) do "nslookup client ip" on the server.
4) do "nslookup client hostname" on the server
5) do "nslookup server ip" on the client.
6) do "nslookup server hostname" on the client.
If all DNS information are configured without problem, you will find no difference in the tests.
If "telnet to IP" = "telnet to hostname", then you need to find another reason.
> what nameserver should I add?
Are they on the Internet or LAN?
Also check /etc/nsswitch.conf.
This file control which method to use when name lookup required.
good luck
I guess "someone" try to give you advice that hostname resolution cause your problem.
If you want to do trouble shoot,
check following.
1) telnet to server ip
2) telnet to server hostname
3) do "nslookup client ip" on the server.
4) do "nslookup client hostname" on the server
5) do "nslookup server ip" on the client.
6) do "nslookup server hostname" on the client.
If all DNS information are configured without problem, you will find no difference in the tests.
If "telnet to IP" = "telnet to hostname", then you need to find another reason.
> what nameserver should I add?
Are they on the Internet or LAN?
Also check /etc/nsswitch.conf.
This file control which method to use when name lookup required.
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2002 02:09 AM
08-29-2002 02:09 AM
Re: Nameserver setting
Slow connections like that can be caused by linux trying to do a reverse lookup on the IP that's connecting: I've noticed it particularly with SSH but I am not sure if telnetd does it.
In any case, if you're on a small LAN the chances are you wont have any name servers, so adding arbitrary ones to resolv.conf wont help.
You could try adding the client workstation to /etc/hosts, so linux will know the hostname of the IP which connects. So for example, your /etc/hosts might look like this:
127.0.0.1 banana localhost.localdomain
HTH.
In any case, if you're on a small LAN the chances are you wont have any name servers, so adding arbitrary ones to resolv.conf wont help.
You could try adding the client workstation to /etc/hosts, so linux will know the hostname of the IP which connects. So for example, your /etc/hosts might look like this:
127.0.0.1 banana localhost.localdomain
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2002 02:47 AM
08-29-2002 02:47 AM
Re: Nameserver setting
Hello,
some fundamental informations:
in most cases there are 3 kinds of nameservices: files, dns and nis.
First check your /etc/nsswitch.conf file. In this file it is configured, which service the system use in which order.
the system tries first the first entry and so on.
for example:
hosts: files dns
means, if a programm tries to resolv a systemname from a known IP-adress or a IP-adress from a known systemname it looks first in the file /etc/hosts. If resolv is successful, procedure stops. Otherwise the system send a request to a configured dns-server. nis is not used in this example.
If dns is used, the next important file is /etc/resolv.conf. In this file you configure the ip-adress of one or more dns-servers and the domains to search for adresses.
It's a good idea to configure first files to reduce network traffic.
For configuring a dns server you of course must know if there is one reachable.
Some tips:
- if you have a dns-server its important that the dns-tables are actual. Your new linux-server must be register on the dns server in both directions (name->ip, ip->name)
- to speed up your performance you can configure you linux server as a caching only dns server. That means, the linux server cached all dns information he has once requested from the dns server.
hope this is helpful
Dirk
some fundamental informations:
in most cases there are 3 kinds of nameservices: files, dns and nis.
First check your /etc/nsswitch.conf file. In this file it is configured, which service the system use in which order.
the system tries first the first entry and so on.
for example:
hosts: files dns
means, if a programm tries to resolv a systemname from a known IP-adress or a IP-adress from a known systemname it looks first in the file /etc/hosts. If resolv is successful, procedure stops. Otherwise the system send a request to a configured dns-server. nis is not used in this example.
If dns is used, the next important file is /etc/resolv.conf. In this file you configure the ip-adress of one or more dns-servers and the domains to search for adresses.
It's a good idea to configure first files to reduce network traffic.
For configuring a dns server you of course must know if there is one reachable.
Some tips:
- if you have a dns-server its important that the dns-tables are actual. Your new linux-server must be register on the dns server in both directions (name->ip, ip->name)
- to speed up your performance you can configure you linux server as a caching only dns server. That means, the linux server cached all dns information he has once requested from the dns server.
hope this is helpful
Dirk
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP