HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Difference between nslookup command mode and i...
Operating System - HP-UX
1833756
Members
2547
Online
110063
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
09-13-2001 02:15 AM
09-13-2001 02:15 AM
Hi,
I found that there is a difference in using nslookup command mode and interactive mode. Does anyone knows that it is a bug or it is normal? I'm using HP-UX 11.0 and BIND 8.1.2.
1. nslookup 10.1.2.3 10.1.8.9
From the sniffer, I found that the first message going to the DNS 10.1.8.9 is a query of 9.8.1.10.in-addr.arpa.
2. nslookup
>server 10.1.8.9
>10.1.2.3
.....
From the sniffer, the first message going to the DNS 10.1.8.9 is a query of 3.2.1.10.in-addr.arpa.
Why did the command mode of nslookup need to query the PTR of the DNS server first?
Thank you in advance!
Victoria
I found that there is a difference in using nslookup command mode and interactive mode. Does anyone knows that it is a bug or it is normal? I'm using HP-UX 11.0 and BIND 8.1.2.
1. nslookup 10.1.2.3 10.1.8.9
From the sniffer, I found that the first message going to the DNS 10.1.8.9 is a query of 9.8.1.10.in-addr.arpa.
2. nslookup
>server 10.1.8.9
>10.1.2.3
.....
From the sniffer, the first message going to the DNS 10.1.8.9 is a query of 3.2.1.10.in-addr.arpa.
Why did the command mode of nslookup need to query the PTR of the DNS server first?
Thank you in advance!
Victoria
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2001 04:26 AM
09-13-2001 04:26 AM
Solution
This is a security issue and a common point of failure for DNS servers. nslookup is validating that the DNS server's IP address has an assigned name. If the DNS server doesn't know it's own name, this is an error condition and DNS will be skipped by choosing the next item in /etc/nsswitch.conf (if present).
Bill Hassell, sysadmin
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2001 08:50 AM
09-13-2001 08:50 AM
Re: Difference between nslookup command mode and interactive mode?
Bill, you are exactly right, as usual, nslookup does a reverse lookup of the server to ensure the server is valid. If not valid, it uses secondary means in nsswitch.conf. The question here is what really happens inside nslookup when you issue the server IP directive, does it do a gethostbyIP lookup? I am not sure, but I would guess so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2001 12:14 PM
09-13-2001 12:14 PM
Re: Difference between nslookup command mode and interactive mode?
it queried the PTR record because it feels compelled to tell you the name of the name server. presumeably, the code that does that is only in the initialization path when a server IP is on the command line, not in the path taken when you just say nslookup.
most folks seem to be suggesting using other tools to query DNS these days. either dig or perhaps nsquery.
most folks seem to be suggesting using other tools to query DNS these days. either dig or perhaps nsquery.
there is no rest for the wicked yet the virtuous have no pillows
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP