- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Slow "login" after adding DNS server entry int...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
03-28-2001 02:04 AM
03-28-2001 02:04 AM
Everything was fine and I could happily ping away at other hosts not specified in /etc/hosts but now I find that pulling up a login screen takes an age unless I remove the NAMESERVER entry. I don't want to set my system hostname to the fully qualified domain entry listed in /etc/resolv.conf for other reasons.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2001 02:12 AM
03-28-2001 02:12 AM
Re: Slow "login" after adding DNS server entry into /etc/resolv.conf
Normal config in resolv.conf is;
domain
nameserver
And your hostname set to: <8 chars>
You should not set your hostname to your fully qualified domainname (eg. <8 chars.domain>). No need to.
Have you got the standard
127.0.0.1 localhost loopback
entry in your /etc/hosts file ?
So with the above looking like it is and your server is slow then you need to look at your DNS server. Firstly, your brave using an NT box as your mission critical dns server. How is your /etc/nsswitch.conf file setup ? to look elsewhere if the DNS server doesnt reply ?
Look at the default nsswitch.conf files in /usr/newconfig/etc/nsswitch.*
You should be defaulting to files if your DNS server doesnt respond.
How fast is your dns server? if you continually do nslookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2001 02:34 AM
03-28-2001 02:34 AM
Re: Slow "login" after adding DNS server entry into /etc/resolv.conf
(1) The resolv file just has two entries one for "Domain fred.co.uk" and one for "nameserver n.n.n.n" - You mention that the hostname should be here, do you mean just a new line with just the hostname or using the localdomain variable(I tried both but no success).
(2) Loop back IP address is in place in /etc/hosts.
(3) The nsswitch.conf file is correct (/etc/hosts then dns)
(4) nslookup searches /etc/host first and then dns before giving correct response and is instantaneous.
Any more help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2001 04:21 AM
03-28-2001 04:21 AM
Re: Slow "login" after adding DNS server entry into /etc/resolv.conf
You resolv.con file only should have 2 entries;
domain
nameserver
You can have multiple nameserver entries but only need one.
You said nslookup is instantaneous, this is great. So, we need to look elsewhere for your problem. Can you explain your problem in more detail please including specs on the HP server its on ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2001 04:54 AM
03-28-2001 04:54 AM
SolutionFrom what type of system are you attempting to bring up a login screen (I assume you are referring to a CDE login screen, but what I am about to say also refers to telnet).
When users connect to the system, one of the first things the system does is attempts to perform a DNS lookup on the IP address of the originating system (using gethostbyaddr()). If you are not using DNS, and the entry isn't in your /etc/hosts file, this will quickly fail and the system will continue and simply use your IP address in lieu of your hostname in any references to the originating system (via either "who -u" or your DISPLAY variable for CDE).
This problem can usually be rectified by ensuring that the DNS server in question serves both A records and PTR records for the hosts it serves -- I have seen a number of NT DNS administrators that will simply leave out the PTR records, since they feel that they are unneccessary.
You can verify this by using the "nslookup" command:
nslookup
nslookup
nslookup
nslookup
If you see an inconsistency between the first/second and the third/fourth, then you should contact your DNS administrator and attempt to rectify this.
Also, if the system cannot resolve its OWN hostname and/or IP address via DNS, you will certainly need to resolve this. The easiest way is to add the following line to your /etc/nsswitch.conf file:
hosts: files [NOTFOUND=continue] dns
This will force lookups to resolve via your /etc/hosts file first and then via the DNS server. (This also has the added benefit that if the DNS server goes down, your system will still know what its own hostname/IP address resolve to)
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2001 08:04 AM
03-28-2001 08:04 AM