WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Winsock
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

NSLookup Functionality

Keywords: 	  NSLookup Functionality	RFC NSLOOKUP DNS

Question:

I wanted to write a simple script in WinBatch to help me automate some features of NSLOOKUP. Unfortunatly, it seems like WinBatch only has Host2Ip and Ip2Host functions. Furthermore, it seems to me that you cannot assign the queries to a different name server then the one you are currently using. Can I write a script that, for example, queries the a.root-servers.net for a SOA record of domain.com?

Thanks in advance.

Answer:

Ummm

The WinSock extender does most any TCP communications. However some DNS users just use UDP.

I would guess that you can get the SOA record via TCP from a root server. However you need to know the protocol and port number presisely. If you can't use TCP and must use UDP then the WinSock extender will not work.

Try search Yahoo for RFC NSLOOKUP DNS and see what you find.

Question (cont'd):

Thanks for the quick reply.

You gave me exactly the answer I was afraid to get. Haha! Seems like I have to script my own NSLOOKUP down to the bit. This is not a problem ofcourse, but I was hoping for a more quick (and dirty?) way to do this. Any way, thanks for the quick response!

(By the way; I am familiar with the DNS RFC's, no problems there!)


Article ID:   W14562
Filename:   NSLookup Functionality.txt
File Created: 2017:07:28:13:58:52
Last Updated: 2001:01:03:13:44:26