- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nslookup problem
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
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
тАО07-13-2004 09:19 PM
тАО07-13-2004 09:19 PM
I have a problem on some machines:
ok is: nslookup server1
output: name: server1
fault:
nslookup server2
output: server2.xxx.yyy.de
where can I change this ?
Thanks
Ralf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2004 09:29 PM
тАО07-13-2004 09:29 PM
Re: nslookup problem
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2004 09:32 PM
тАО07-13-2004 09:32 PM
Re: nslookup problem
Make an entry in /etc/resolve.conf as
domain xxx.yyy.de
or make an alias in /etc/hosts file
nslookup will process from /etc/nsswitch.conf file's hosts:
Regards,
Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2004 09:41 PM
тАО07-13-2004 09:41 PM
Re: nslookup problem
Can u post the name records set for these two server's ?. It may be from two diffrent nameservers ... !
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2004 09:58 PM
тАО07-13-2004 09:58 PM
Re: nslookup problem
rightly said by kapil, you need to check /etc/resolv.conf file of your system.
It looks like this:
domain abc.xyz.com
nameserver
Make sure server1 and server2 lies in same domain or else try adding domain of server1 and its DNS server IP address as above.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2004 10:13 PM
тАО07-13-2004 10:13 PM
Solutionnslookup command resolves ip-address or hostname using the hosts: tag entries in /etc/nsswitch.conf file.
make an entry in /etc/hosts as,
if your file entry is at first.
else do that change in /etc/resolv.conf as,
domain xxx.yyy.de
nameserver
If your check nslookup
It will try to resolve using the nsswitch.conf file's hosts: entry.
Regards,
Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2004 10:22 PM
тАО07-13-2004 10:22 PM
Re: nslookup problem
I am afraid ur statements are incorrect .. I can agree "gethostbyname" reads entries in nsswitch.conf not nslookup command. nslookup stands for Nameserver Lookup. So i am sure it will loook for a nameserver (bind).
Your statements are correct for commands like host,ping,telnet,ftp etc ... these commands internally call some functions which read entries from nsswitch.conf
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2004 10:53 PM
тАО07-13-2004 10:53 PM
Re: nslookup problem
Thanks for your question. Let us start to get hostname resolvation with only file.
change your entry in /etc/nsswitch.conf as,
hosts: files
edit the /etc/hosts files as,
nslookup hostname
It will resolve your entries now without dns and any problem. It is orally specified in nslookup man page.
Regards,
Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2004 01:33 AM
тАО07-14-2004 01:33 AM
Re: nslookup problem
"By default, nslookup accesses name services for name and address resolution based on the policy information obtained from the switch configuration file /etc/nsswitch.conf When the policy is set to use NIS or /etc/hosts first, or when DNS is first but unavailable, then nslookup will only provide a limited command set (a help command while in this situation will show what actions are possible when querying NIS or /etc/hosts.) To override the switch policy and query DNS servers directly, the server command can be used to specify a nameserver. This same overriding of the switch policy can also be done by providing a nameserver as the second argument on the command line. In this case, nslookup will ignore the switch policy and directly query nameservers, until a reset command is issued."
The only time nslookup only queries DNS in HP-UX is if you specify the server on the command line or with the server command in interactive mode. This is unique to HP's implementation as far as I know... nslookup on Linux, for example, is strictly DNS lookup.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2004 01:34 AM
тАО07-14-2004 01:34 AM
Re: nslookup problem
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2004 01:53 AM
тАО07-14-2004 01:53 AM
Re: nslookup problem
I was checking on an aix node and later came to know that in aix the file is netsvc.conf and it is not very similier to nsswitch.conf.
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2004 07:16 AM
тАО07-20-2004 07:16 AM
Re: nslookup problem
It is a nice and sincere analysis. Thanks for that to get more informations.
And Kapil, thanks to you to make jeff to give his nice analysis on this.