- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nslookup issue after upgrading
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
Discussions
Discussions
Forums
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
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
тАО05-02-2003 05:05 AM
тАО05-02-2003 05:05 AM
nslookup issue after upgrading
While I was out last week, my partner upgraded one of the boxes from 10.20 to 11.0. He was not able to get the machine on the network because of the NIC card drivers. After the installation of the drivers, we were able to connect to the machine via network.
As I mentioned, we can connect to other machines and from other machines without a problem. We can also ping, telnet, rlogin from and to but the nslookup command does not work unless I modify the nsswitch.conf file to look at the host file first. When I came back I verified all the network information (ip, dns server info, domain, etc)which we are using the same as before. I also executed the the set_parms initial command and re-entered all the information but I am still having the same problem.
I noticed that when I go to the System Property screen on sam (Network) I have 0.0.0.0 as my internet address and also in the System's DNS Server I have the name of the DNS server insted of the DNS IP address.
Would that be the cause of the problem? If that is the case, can I resolve the issue without having to re-boot the box?
Server: k360
OS: HP-UX 11.0
Gateway info. is correct and /etc/resolv.conf file has the correct info.
As always, thank you for your help.
Regards,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 05:18 AM
тАО05-02-2003 05:18 AM
Re: nslookup issue after upgrading
YMMV with nsswitch.conf; I imagine you can seed with /etc/hosts, but I wouldn't recommend it.
If the system has no base IP other than 0.0.0.0 [i.e. #netstat -ian
doesn't show something other than the loopback address], I'd imagine that network connectivity in general wouldn't work.
You can set the network address, deal with routing, and deal with DNS all without rebooting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 05:30 AM
тАО05-02-2003 05:30 AM
Re: nslookup issue after upgrading
Sure you can do all this without rebooting system. As previous post says use ip address rather then name in /etc/resolv.conf. how is your host file looks like.
As you can ping other system so your gatway is working fine. Are you able to ping by name?
Check nslookup binary?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 05:32 AM
тАО05-02-2003 05:32 AM
Re: nslookup issue after upgrading
Thank you for your reply. That was another detail that I forgot to mention. The netstat command shows the correct information. My NIC card has the correct info too. As far as the resolv.conf file, I have IP addresses not names. Here is an example of how it looks:
domain domain-name.com
nameserver 111.111.111.1
nameserver 222.222.222.2
Regards,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 05:40 AM
тАО05-02-2003 05:40 AM
Re: nslookup issue after upgrading
/etc/hosts file is fine. As a matter of fact, I copied the file from another machine that is working thinking that that was the problem. But it did not do the magic.
I can ping, ftp and/or rlogin using IP's, server names and/or aliases. No problem doing that.
Thx,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 05:52 AM
тАО05-02-2003 05:52 AM
Re: nslookup issue after upgrading
The 11.11 upgrade leaves you with several candidates and nothing installed.
ls /etc/nsswitch.*
look at the one that most meets your needs concerning host resolution.
cp it to name /etc/nsswitch.conf
This can be done without a boot.
RE-do the nslookup tests.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 06:09 AM
тАО05-02-2003 06:09 AM
Re: nslookup issue after upgrading
Thank you. He confirmed that in fact it was a cold installation. I also looked at every nsswitch.* files under /etc. I am usning nsswitch.hp_defaults but I modified the dns line to look for file first and then it worked but with the file not the dns server.
Regards,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 06:23 AM
тАО05-02-2003 06:23 AM
Re: nslookup issue after upgrading
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 06:27 AM
тАО05-02-2003 06:27 AM
Re: nslookup issue after upgrading
You have to change file name
#cp /etc/nsswitch.hp_defaults /etc/nsswitch.conf
and hosts line should read
hosts: dns file
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 06:28 AM
тАО05-02-2003 06:28 AM
Re: nslookup issue after upgrading
nslookup IP_addr_of_DNS_server IP_addr_of_DNS_server
Notice that the IP address is listed twice? The first is the address we want to resolve to a name and the second is the server we want to do the work. nslookup tries to be a bit secure by trying to resolve an IP to a name for the DNS server, and if it fails, skip that server and follow the nsswitch.conf rules for a failed request.
There are two ways to fix this:
1. Fix the DNS server so it returns it's own name given an IP address (preferred), or
2. Put the name of your DNS server into /etc/hosts along with the IP address and then tell nsswitch.conf to look at files, then dns.
The second choice is actually a good solution. /etc/hosts should be quite small, consisting of local production servers and DNS servers. There is a major savings in network traffic (DNS lookups) using /etc/hosts for network backup software such as Omniback. For whatever reason, OB (and most other commercial network backup programs) call gethostbyname() for *every* file that is saved. By using /etc/hosts, no DNS load is presented to the DNS server. /etc/hosts is a good way for temporary IP+hostname entries to be used before they propagate into a local DNS server.
Bill Hassell, sysadmin