Re: Change Query Type on nslookup

2011-04-09 Thread Joseph S D Yao
On Thu, Apr 07, 2011 at 11:42:28AM +0700, mee thun wrote:
 Good Morning..
 
 I am new member in this mailing list. I need help to change the query type
 in the nslookup command.
 The default nslookup using A, but I use ipv6 so the query type must use
 . I don't know how to change the default nslookup from A to 
 permanently?


As noted, 'nslookup' is part of the BIND package as well as available
elsewhere.  In some of those venues, nothing else is available to do the
trick.  When BIND is installed, 'host' and 'dig' are available.  While
'nslookup' often works fine when DNS is working correctly, 'dig' is the
tool of choice for when it's not working or unknown status.

% dig  a.root-servers.net
or, easier to read:
% dig +noall +answer  a.root-servers.net

% host -t  a.root-servers.net

Or, to partially answer the actual question:

% nslookup -type= a.root-servers.net
or
$ nslookup
 set type=
 a.root-servers.net
 exit
or even better, for several popular versions of the shell,
$ alias nslookup=`which nslookup` -type=
$ nslookup a.root-servers.net
$ nslookup puck.nether.net

That 'alias' command can be put in a .login or .profile or similar file,
but must not be put [in that form] in a .bashrc or .kshrc or similar
file where it will be run more than once.

Now, if you are lucky enough to be on a Linux or BSD or Unix or Mac
system, run
$ man nslookup
$ man host
$ man dig
$ man alias
for more information.


--
/*\
**
** Joe Yao  j...@tux.org - Joseph S. D. Yao
**
\*/
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Change Query Type on nslookup

2011-04-07 Thread Mark Andrews

In message 4d9d502d.7080...@data.pl, Torinthiel writes:
 On 04/07/11 06:42, mee thun wrote:
  Good Morning..
 =20
  I am new member in this mailing list. I need help to change the query
  type in the nslookup command.
  The default nslookup using A, but I use ipv6 so the query type must use=
 
  . I don't know how to change the default nslookup from A to 
  permanently?
 
 first, this is a bind list, and nslookup is not a bind tool. Consider
 using dig, which is much better in this case.

nslookup is a BIND tool,  we just tried hard to deprecate it.
 
 And, IIRC, when you run nslookup you can put
 set type=
 yourquery.com
 
 and that should give the effect you want
 I have no idea how to change the default query type for any of the tools.=
 
 
 Torinthiel
 
 
 
 
 --enigF96CA10530F411769FF2D20E
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename=signature.asc
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.16 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk2dUDQACgkQfOvN3AkGos4kKQCfXmxr8PknsEXyCswBqqdehAE2
 orgAnjxP66xpZGxTQFKESsxSPMFCLxxp
 =T21l
 -END PGP SIGNATURE-
 
 --enigF96CA10530F411769FF2D20E--
 
 --===7001123361952416593==
 Content-Type: text/plain; charset=us-ascii
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 ___
 bind-users mailing list
 bind-users@lists.isc.org
 https://lists.isc.org/mailman/listinfo/bind-users
 --===7001123361952416593==--
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Change Query Type on nslookup

2011-04-07 Thread Matus UHLAR - fantomas
  On 04/07/11 06:42, mee thun wrote:
   I am new member in this mailing list. I need help to change the query
   type in the nslookup command. The default nslookup using A, but I use
   ipv6 so the query type must use= . I don't know how to change the
   default nslookup from A to  permanently?

you'd have to patch the source.

 In message 4d9d502d.7080...@data.pl, Torinthiel writes:
  first, this is a bind list, and nslookup is not a bind tool. Consider
  using dig, which is much better in this case.

On 07.04.11 16:36, Mark Andrews wrote:
 nslookup is a BIND tool,  we just tried hard to deprecate it.

nslookup is often not a bind tool, and that's one of reasons you have to
deprecate it ;)


-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Despite the cost of living, have you noticed how popular it remains? 
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Change Query Type on nslookup

2011-04-07 Thread Ryan Novosielski
'dig' is a better tool in every way, I think. dig 
nbsp;host.example.comnbsp;I believe is the syntax there.

-- Sent from my Palm Pre
On Apr 7, 2011 1:02, mee thun lt;mas.mi...@gmail.comgt; wrote: 

Good Morning..

I am new member in this mailing list. I need help to change the query type in 
the nslookup command.
The default nslookup using A, but I use ipv6 so the query type must use . I 
don't know how to change the default nslookup from A to  permanently?


___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Change Query Type on nslookup

2011-04-07 Thread Chris Thompson

On Apr 7 2011, Torinthiel wrote:


On 04/07/11 06:42, mee thun wrote:

Good Morning..

I am new member in this mailing list. I need help to change the query
type in the nslookup command.
The default nslookup using A, but I use ipv6 so the query type must use
. I don't know how to change the default nslookup from A to 
permanently?


first, this is a bind list, and nslookup is not a bind tool. Consider
using dig, which is much better in this case.

And, IIRC, when you run nslookup you can put
set type=
yourquery.com

and that should give the effect you want
I have no idea how to change the default query type for any of the tools.


Well (at least as long as it *is* BIND's nslookup) you can specify it
on the command line

 nslookup -type=

if that counts as changing the default, or even define

 alias nslookup6='nslookup -type='

using your favorite shell.

The real answer to the OP, I'm afraid, is RTFM. The (horrible) syntax
of nslookup option settings is perfectly well described in its man page.

--
Chris Thompson
Email: c...@cam.ac.uk
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Change Query Type on nslookup

2011-04-06 Thread Torinthiel
On 04/07/11 06:42, mee thun wrote:
 Good Morning..
 
 I am new member in this mailing list. I need help to change the query
 type in the nslookup command.
 The default nslookup using A, but I use ipv6 so the query type must use
 . I don't know how to change the default nslookup from A to 
 permanently?

first, this is a bind list, and nslookup is not a bind tool. Consider
using dig, which is much better in this case.

And, IIRC, when you run nslookup you can put
set type=
yourquery.com

and that should give the effect you want
I have no idea how to change the default query type for any of the tools.

Torinthiel





signature.asc
Description: OpenPGP digital signature
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users