- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Nslookup Qeustion
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
07-08-2003 06:16 AM
07-08-2003 06:16 AM
Nslookup Qeustion
I've a strange situation using nslookup.
It works correctrly, but when I try to do "set type=MX" it doesn't work, and I recive an error: "*** Invalid option: type=MX"
any suggest?
Thansk
P.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 06:20 AM
07-08-2003 06:20 AM
Re: Nslookup Qeustion
eg. for 11i its PHNE_28450
Go to the itrc home page, then individual patches, then HP-UX and search for "Bind" (as it includes nslookup)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 06:20 AM
07-08-2003 06:20 AM
Re: Nslookup Qeustion
Though it appears counter intuitive, I would suspect there is no valid mx record on the DNS server.
Please verify and get back to us.
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
07-08-2003 06:24 AM
07-08-2003 06:24 AM
Re: Nslookup Qeustion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 06:42 AM
07-08-2003 06:42 AM
Re: Nslookup Qeustion
I've installed the PHNE_28450, but nothing changes.
P.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 06:44 AM
07-08-2003 06:44 AM
Re: Nslookup Qeustion
please post a
what $(which nslookup)
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 06:48 AM
07-08-2003 06:48 AM
Re: Nslookup Qeustion
what $(which nslookup)
/usr/bin/nslookup:
Copyright (c) 1985,1989 Regents of the University of California.
nslookup $Revision: 1.1.213.3 $ Fri Jan 17 05:28:43 GMT 2003 PHNE_28450
thanks..
P.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 06:54 AM
07-08-2003 06:54 AM
Re: Nslookup Qeustion
you said that from your PC and from 10.20 works O.K.... just to be sure, are you questioning the same name server ?
Try issuing a nslookup with the " -swdebug" just to eliminate the possibility that someone put some wrong statement in the ~/.nslookuprc file.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 07:13 AM
07-08-2003 07:13 AM
Re: Nslookup Qeustion
If not, use a friends server?
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 07:17 AM
07-08-2003 07:17 AM
Re: Nslookup Qeustion
launching nslookup in system in wich it works, the query are on dns, but in all other system the output is: Using /etc/hosts on: sys_name
so, server dns_name and everything goes ok.
My question now is: I've the /etc/nsswitch.conf with files notfound continue dns, why it doesn't work in this case?
thanks everybody.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 07:55 AM
07-08-2003 07:55 AM
Re: Nslookup Qeustion
are you sure that /etc/resolv.conf is O.K. ?
What is its content ?
You didn't even mention the "trying DNS" that will appear after the host resarch failed...
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 11:55 AM
07-08-2003 11:55 AM
Re: Nslookup Qeustion
I get the same results:
[HostName:/] nslookup
Using /etc/hosts on: HostName
> set type=MX
*** Invalid option: type=MX
> help
NAME - print address information about NAME
IP-ADDRESS - print hostname information about IP-ADDRESS
policy - print switch policy information
server NAME - set default server to NAME, using current default server
lserver NAME - set default server to NAME, using initial server
set OPTION - sets the OPTION
all - print options, current server and host
[no]swtrace - print lookup result and lookup switch messages
> server yahoo.com
Specifying a server has overridden the switch policy order.
The reset command will reinstate the order specified by the switch policy.
Default Name Server: yahoo.com
Address: 66.218.71.198
> set type=MX
> help
Commands: (identifiers are shown in uppercase, [] means optional)
NAME - print info about the host/domain NAME using default server
NAME1 NAME2 - as above, but use NAME2 as server
exit - exit the program, ^D also exits
finger [USER] - finger the optional NAME at the current default host
help or ? - print info on common commands; see nslookup(1) for details
ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN (optional: output to FILE)
-a - list canonical names and aliases
-h - list HINFO (CPU type and operating system)
-s - list well-known services
-d - list all records
-t TYPE - list records of the given type (e.g., A,CNAME,MX, etc.)
policy - print switch policy information
root - set current default server to the root
server NAME - set default server to NAME, using current default server
lserver NAME - set default server to NAME, using initial server
reset - lookups use the switch policy; resets DNS servers
set OPTION - set an option
all - print options, current server and host
[no]debug - print debugging information
[no]d2 - print exhaustive debugging information
[no]defname - append domain name to each query
[no]swtrace - print source lookup and source switch messages
[no]recurse - ask for recursive answer to query
[no]vc - always use a virtual circuit
domain=NAME - set default domain name to NAME
srchlist=N1[/N2/.../N6] - set domain to N1 and search list to N1,N2, etc.
root=NAME - set root server to NAME
retry=X - set number of retries to X
timeout=X - set time-out interval to X
querytype=X - set query type, e.g., A,ANY,CNAME,HINFO,MX,NS,PTR,SOA,WKS
type=X - synonym for querytype
class=X - set query class to one of IN (Internet), CHAOS, HESIOD or ANY
view FILE - sort an 'ls' output file and view it with more
> exit
So, it looks like you're gettin' "Invalid..." 'cause you're using /etc/hosts (which makes sense - /etc/hosts doesn't contain any MX records). Specifying a server allows an MX search (at least, that's the way it looks and works for me)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 04:10 AM
07-10-2003 04:10 AM
Re: Nslookup Qeustion
I'f you have HP's BIND 9.2 you can use dig which is much more flexible than nslookup. If you don't have that version you can find dig out on the public domain for HPUX.
Example:
dig @dns_server yahoo.com MX
DiG named 9.2.0 <<>> @dns_server yahoo.com MX
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32009
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 5, ADDITIONAL: 15
;; QUESTION SECTION:
;yahoo.com. IN MX
;; ANSWER SECTION:
yahoo.com. 7022 IN MX 1 mx2.mail.yahoo.com.
yahoo.com. 7022 IN MX 5 mx4.mail.yahoo.com.
yahoo.com. 7022 IN MX 1 mx1.mail.yahoo.com.
;; AUTHORITY SECTION:
yahoo.com. 126421 IN NS ns1.yahoo.com.
yahoo.com. 126421 IN NS ns2.yahoo.com.
yahoo.com. 126421 IN NS ns3.yahoo.com.
yahoo.com. 126421 IN NS ns4.yahoo.com.
yahoo.com. 126421 IN NS ns5.yahoo.com.
;; ADDITIONAL SECTION:
mx2.mail.yahoo.com. 645 IN A 64.157.4.78
mx2.mail.yahoo.com. 645 IN A 64.157.4.82
mx2.mail.yahoo.com. 645 IN A 64.156.215.5
mx4.mail.yahoo.com. 810 IN A 66.218.86.254
mx4.mail.yahoo.com. 810 IN A 66.218.86.253
mx4.mail.yahoo.com. 810 IN A 216.136.129.5
mx4.mail.yahoo.com. 810 IN A 216.136.129.17
mx1.mail.yahoo.com. 1426 IN A 64.156.215.6
mx1.mail.yahoo.com. 1426 IN A 64.157.4.78
mx1.mail.yahoo.com. 1426 IN A 64.156.215.5
ns1.yahoo.com. 35740 IN A 66.218.71.63
ns2.yahoo.com. 29231 IN A 66.163.169.170
ns3.yahoo.com. 28321 IN A 217.12.4.104
ns4.yahoo.com. 30095 IN A 63.250.206.138
ns5.yahoo.com. 28464 IN A 216.109.116.17
;; Query time: 14 msec
;; SERVER: 15.51.240.8#53(www.atl.hp.com)
;; WHEN: Thu Jul 10 05:26:10 2003
;; MSG SIZE rcvd: 422
You can Get HP BIND 9.2 at software.hp.com
You can get a public domain version for hpux of dig here:
http://hpux.ee.ualberta.ca/hppd/hpux/Networking/Admin/dig-2.0/