LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-03-2003, 12:41 PM   #1
newbieA
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Rep: Reputation: 0
Why "nslookup is deprecated" ?


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)

Any idea ?
 
Old 12-03-2003, 02:41 PM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Probably there's nothing wrong with it; it just isn't being actively maintained.
 
Old 12-03-2003, 11:35 PM   #3
newbieA
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by iainr
Probably there's nothing wrong with it; it just isn't being actively maintained.
Thanks, just curious about :

are there any bugs/security holes on nslookup so it is "deprecated and may be removed from future releases"
 
Old 12-04-2003, 12:43 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
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.
 
Old 03-02-2009, 02:42 PM   #5
rickmoen
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by chort View Post
There's nothing really wrong with it...
Actually, this is very much not correct.

http://homepages.tesco.net/J.deBoyne...kup-flaws.html
http://cr.yp.to/djbdns/nslookup.html

Cheers,
Rick Moen
rick@linuxmafia.com
 
Old 03-02-2009, 03:00 PM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
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.
 
Old 03-02-2009, 03:23 PM   #7
rickmoen
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by chort View Post
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 View Post
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 View Post
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.)

Cheers,
Rick Moen
rick@linuxmafia.com
 
Old 03-02-2009, 03:34 PM   #8
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Code:
[chort@horus4 ~]$ nslookup -type=soa com. m.gtld-servers.net
Server:		m.gtld-servers.net
Address:	192.55.83.30#53

com
	origin = a.gtld-servers.net
	mail addr = nstld.verisign-grs.com
	serial = 1236027376
	refresh = 1800
	retry = 900
	expire = 604800
	minimum = 900
Seems fine to me. You have to fully-qualify the name you're looking for with the trailing dot if you're looking for a TLD.
 
Old 03-02-2009, 03:44 PM   #9
rickmoen
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by chort View Post
Seems fine to me.
That is correct but not relevant to what I said.

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.

Cheers,
Rick Moen
rick@linuxmafia.com
 
Old 06-11-2015, 12:48 PM   #10
Jim0305
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint
Posts: 3

Rep: Reputation: Disabled
New reply to an old question

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.
 
Old 06-11-2015, 04:17 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 18,254

Rep: Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727
Jim, first of all hello and welcome to LQ.

Not like there is any rule to adding to old posts but for your first post we were expecting simply a hello sort of thing.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
nslookup gives "connection timed out; no server could be reached" hello321_1999 Linux - Networking 3 11-26-2004 11:23 AM
C++ iostream - getting "deprecated header" error jdruin Programming 3 09-28-2004 07:31 AM
Why is "only user" for Samba now deprecated? sorrodos Linux - Networking 0 07-08-2004 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration