• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 627
  • Last Modified:

format nslookup output in NT4?

hi,

I am using nslookup and so far, it always returns me:

----------------------------------
E:\>nslookup -q=A www.somesite.com 
Server:  ns1.tm.net.my  <--- x
Address:  202.188.0.132    <---- x

<wanted results>
-----------------------------------

I only want the results part and NOT the name server and address (x)..
what parameters must I give that will
make nslookup NOT show the name server and address? It seems that ALL query options will show the name server info.

Thanks
0
thiamwah
Asked:
thiamwah
1 Solution
 
Handy HolderSaggar maker's bottom knockerCommented:
pretty sure there is no flag/parameter for this, you'll have to pipe the output of nslookup through a filter.exe file to pick up just what you want.
0
 
thiamwahAuthor Commented:
filter.exe? what is that?
0
 
Handy HolderSaggar maker's bottom knockerCommented:
Sorry should have said "a filter program that you have to write with VB or VC++"
0
 
Tim HolmanCommented:
nslookup | <wanted results> ?
0
 
schmedCommented:
try using ls -a or ls -d to only pull the type of records you want to view.

for example:
nslookup> ls -d allhost.com
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now