- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: advantage of dig compared to 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
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
тАО01-10-2006 11:53 AM
тАО01-10-2006 11:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 12:40 PM
тАО01-10-2006 12:40 PM
Solutionu may like to refer to this:
http://www.unix.org.ua/orelly/networking_2ndEd/dns/ch12_09.htm
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:14 PM
тАО01-10-2006 03:14 PM
Re: advantage of dig compared to nslookup
Domain Information Groper. Similar to nslookup, dig does an Internet "name server lookup" on a host.
With dig, you specify all aspects of the query you'd like to send on the command line; there's no interactive mode. You specify the domain name you want to look up as an argument, and the type of query you want to send (e.g., a for address records, mx for MX records) as another argument; the default is to look up address records. You specify the name server you'd like to query after an "@." You can use either a domain name or an IP address to designate a name server. The default is to query the name servers in resolv.conf.
dig is smart about arguments, too. You can specify the arguments in any order you like, and dig will figure out that mx is probably the type of records, not the domain name, you want to look up.
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:16 PM
тАО01-10-2006 03:16 PM
Re: advantage of dig compared to nslookup
Dig is used to query name servers and it is more general than nslookup, it is used by many other tools because its consistent output format is easy to parse automatically.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:30 PM
тАО01-10-2006 03:30 PM
Re: advantage of dig compared to nslookup
If you are interested in DNS tools, have a look at this page. It has got many tools available.
http://www.dns.net/dnsrd/tools.html
Here is a live site where can play with many DNS tools,
http://codeflux.com/tools/
Type any address and select tools, click apply.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:35 PM
тАО01-10-2006 03:35 PM
Re: advantage of dig compared to nslookup
Refer this for difference:
http://www.unix.org.ua/orelly/networking_2ndEd/dns/ch12_01.htm
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:38 PM
тАО01-10-2006 03:38 PM
Re: advantage of dig compared to nslookup
HP-UX dig is available as,
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/dig-2.0/
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 03:47 PM
тАО01-10-2006 03:47 PM
Re: advantage of dig compared to nslookup
# which dig
/usr/bin/dig
# what /usr/bin/dig
/usr/bin/dig:
Copyright (C) 1995-1998 Eric Young.All rights reserved.
$Revision: 1.0 $ Fri Feb 6 00:04:09 GMT 2004
dig/host 1.51/1.29 Fri Feb 6 00:04:09 GMT 2004
$Revision: B11.23.0409LR
It is part InternetSrvcs.INETSVCS2-RUN: /usr/bin/dig
http://docs.hp.com/en/B3921-90010/dig.1M.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 04:07 PM
тАО01-10-2006 04:07 PM
Re: advantage of dig compared to nslookup
Compared with nslookup, in the "Domain Information Groper" (dig) you specify all aspects of the query you'd like to send on the command line; there's no interactive mode. You specify the domain name you want to look up as an argument, and the type of query you want to send (e.g., a for address records, mx for MX records) as another argument; the default is to look up address records. You specify the name server you'd like to query after an "@." You can use either a domain name or an IP address to designate a name server. The default is to query the name servers in resolv.conf.
dig is smart about arguments, too. You can specify the arguments in any order you like, and dig will figure out that mx is probably the type of records, not the domain name, you want to look up
the url below talks more about the DIG:
http://www.unix.org.ua/orelly/networking_2ndEd/dns/ch12_09.htm
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 04:19 PM
тАО01-10-2006 04:19 PM
Re: advantage of dig compared to nslookup
nslookup, dig, dnsquery, and host, are some of the tools that are used to query DNS servers. These are most commonly used to retrieve basic domain information such as what name goes with what IP address, aliases, or how a domain is organized.
For most purposes, there is not much difference among these programs. Your choice will largely be a matter of personal preference. However, you should be aware that some other programs may be built on top of dig, so be sure to keep it around even if you prefer one of the other tools.
nslookup is a fairly rudimentary DNS tool. It is the most ubiquitous and the most likely to be installed by default. It is even available under Windows. It can be used either in command-line mode or interactively. In command-line mode, you use the name or IP address of interest as an argument:
A much better one is dig (short for Domain Internet Groper). dig shows a breakdown of the complete packet returned from the DNS server.
Many administrators prefer dig to nslookup. While not quite as ubiquitous as nslookup, it is included as a tool with bind and is also available as a separate tool. dig is a command-line tool that is quite easy to use. It seems to have a few more options and, since it is command line oriented, it is more suited for shell scripts. On the other hand, using nslookup interactively may be better if you are groping around and not really sure what you are looking for.
A simple dig provides a lot more information, by default at least, than does nslookup. It begins with information about the name server and resolver flags used. Next come the header fields and flags followed by the query being answered. These are followed by the answer, authority records, and additional records. The format is the domain name, TTL field, type code for the record, and the data field. Finally, summary information about the exchange is included.
You can also use dig to get other types of information. For example, the -x option is used to do a reverse name lookup.
Indira A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2006 04:29 PM
тАО01-10-2006 04:29 PM
Re: advantage of dig compared to nslookup
Another advantage.
nslookup is considered a security hazard and the standards boards are recommended it be made obsolete and de-supported.
So, its probably time to learn dig.
I also however find the host command quite useful.
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
тАО01-12-2006 04:49 AM
тАО01-12-2006 04:49 AM
Re: advantage of dig compared to nslookup
Under many Linux distros it's deprecated and warns you to use dig instead when executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2006 04:50 AM
тАО01-12-2006 04:50 AM
Re: advantage of dig compared to nslookup
Under many Linux distros it's deprecated and warns you to use dig instead when executed.