- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Strange error in nslookup
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
02-05-2006 12:05 AM
02-05-2006 12:05 AM
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
When I try to get MX-info from nslookup, I get the next error:
> set query=MX
*** Invalid option: query=MX
If I set dns as first choice in hosts line in nsswitch.conf, nslookup works fine with MX-option, but I'd like to have hosts-file to be first choice in nsswitch. What is wrong.
On other my servers hosts-file is first choice, but nslookup takes MX-option without promlems.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 03:24 AM
02-05-2006 03:24 AM
Re: Strange error in nslookup
This is right behaviour for HPUX. If you try to do the same in LINUX, even if file is in the beginning in /etc/nsswitch.conf, everything will work.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 03:33 AM
02-05-2006 03:33 AM
Re: Strange error in nslookup
nslookup
>server {IP|hostname}
>set q=mx
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 04:01 AM
02-05-2006 04:01 AM
Re: Strange error in nslookup
This is another server HPUX 11.11, and all works fine:
# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
# nslookup
> set query=MX
> mail.com
Server: 172.24.131.127
Address: 172.24.131.127#53
Non-authoritative answer:
mail.com mail exchanger = 10 mail-com.mr.outblaze.com.
mail.com mail exchanger = 20 mail-com-bk.mr.outblaze.com.
Authoritative answers can be found from:
mail.com nameserver = ns1.portal2.com.
mail.com nameserver = ns1.outblaze.com.
ns1.portal2.com internet address = 203.86.166.3
ns1.outblaze.com internet address = 205.158.62.40
>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 05:14 AM
02-05-2006 05:14 AM
Re: Strange error in nslookup
On my hpux11.11 servers with the same configuration set q=mx does not work.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 09:55 AM
02-05-2006 09:55 AM
Re: Strange error in nslookup
It seems that the "nslookup" is not accepting the DNS specific option saying "invalid option" as "dns" is the second source (after 'files"). It expect the "dns" should be the first option.
You can cross check between the systems,the versions of "BIND" and "nslookup" installed using
# what /usr/sbin/named
# what /usr/bin/nslookup
Depending on the HP-UX OS version, you can install the latest BIND patch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 02:04 PM
02-05-2006 02:04 PM
Re: Strange error in nslookup
hosts: dns files
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 04:39 PM
02-05-2006 04:39 PM
Re: Strange error in nslookup
# nslookup
> set all
and see whether there is a default server option set or blank. if this option contains a server address then the 'set query=mx' should work . compare the default settings on both the servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 08:53 PM
02-05-2006 08:53 PM
SolutionWith hpux this option will not work. It has to do with the nslookup they provide.
With a Linux or windows host it works.
In this limited case you might wish to get your information from one of those systems.
If you must do it from HP-UX you may wish to install BIND 9.2 and explore the dig command.
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
02-05-2006 09:00 PM
02-05-2006 09:00 PM
Re: Strange error in nslookup
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=967934
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 09:34 PM
02-05-2006 09:34 PM
Re: Strange error in nslookup
Could be 11.00
There must be a patch somewhere for this.
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
02-05-2006 09:36 PM
02-05-2006 09:36 PM
Re: Strange error in nslookup
If you wish to follow this thread's adviced:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=967934
Install depot BIND from here. It includes dig
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BIND9.2
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
12-19-2006 10:32 PM
12-19-2006 10:32 PM
Re: Strange error in nslookup
# nslookup -type=mx blabla.com
Using /etc/hosts on: myserver
looking up FILES
Trying DNS
Non-authoritative answer:
blabla.com preference = 10, mail exchanger = blamail.blabla.com
Authoritative answers can be found from:
blamail.blabla.com internet address = 192.168.1.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 12:00 AM
02-07-2007 12:00 AM