Nslookup Guru's Needed!

Associate
Joined
6 May 2011
Posts
470
Hey guys, I posted this in the windows section, however I think it may be suited more to the networky guys :D

I need some help with an nslookup command. It will be ran as a single line (hopefully)

I need the equivalent of this, but as a single command:

nslookup
> server 127.0.0.1
> ls -d test.com.

The reason it needs to be a single line is, the program that runs it will only run 1 command, wait on the result being returned, then quit - so I cant run it as above ^

And ideas how I can do this? So far I have: nslookup test.com. 127.0.0.1 - I just don't know where to put the "ls -d" bit!

Thanks in advance!
 
hmm, can't get -d working - It just shows all the server details, but not all the records.

I'm using the ls command basically to simulate a zone transfer - So if it returns with results, I know zone transfers are allowed, and if it doesn't, then I know it's not set up right!
 
Back
Top Bottom