Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In Linux, when you use nslookup, the following message comes up, why ?
"nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead"
What is wrong using nslookup, while you can do a name search in a very
convinent way :
e.g. nslookup -querytype=mx yahoo.com x.x.x.x (to do a domain name
resolving thru a specified bind server)
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
There's nothing really wrong with it, it's just that there are three different tools to resolve DNS information and it's redudent (the other two are "host" and "dig"). Someone made a decision that nslookup is the first one to get yanked (at some point, but I'm betting it won't be removed for a looooong time).
just do alias nslookup='/usr/sbin/nslookup -sil'
You can put that in your .bashrc, or whatever your shell's rc file is and that will alias the command every time you log in.
Oh, I should also say that the recommended action would be to learn the syntax of host and dig, that way you won't be left in the dust. dig is actually very powerful and much more informational than nslookup.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Rick, those objection pages are ancient. It would have been very easy for you to take 10 seconds and verify this is not the case with current nslookup. Speaking of very ancient, you just bumped a 5 year old post. Was that really necessary?
I agree people shouldn't use nslookup (dig is much better for diagnostics, and host is much simpler for basics), but spreading false information isn't exactly helping your cause.
Rick, those objection pages are ancient. It would have been very easy for you to take 10 seconds and verify this is not the case with current nslookup.
/me fetches the debian-squeeze package containing nslookup, verifies that it still has its own internal resolver, and behaves in various odd ways that don't impair its successors.
Nope, still pretty broken.
Quote:
Originally Posted by chort
Speaking of very ancient, you just bumped a 5 year old post. Was that really necessary?
Yes, indeed: The referenced thread comes up prominently in searches on nslookup.
Quote:
Originally Posted by chort
spreading false information isn't exactly helping your cause.
Perhaps you would not mind informing me what my "cause" is. I'm a bit vague on that point. (I hope you are not going to call me a djbware fanboy, as that would be excessively ironic.)
During the time you were conducting that exercise, I also reviewed all entries about nslookup within BIND's changelog over the past decade, and found (as expected) zero changes to address the problematic behaviour.
Anyway, aren't you going to get around to explaining to me what my "cause" is? Curious minds want to know, and all that.
This is an old post but it continues to come up as a top hit on the question of nslookup being deprecated.
Wikipedia states:
"Early in the development of BIND 9, the Internet Systems Consortium planned to deprecate nslookup in favor of host and dig. However, this decision was reversed in 2004 with the release of BIND 9.3,[1] and nslookup has been fully supported since then."
I still use nslookup at work and don't even have dig or host available.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.