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

_Third Party Extenders
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
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.

nslookup32i.dll crashes xp


Question:

Any idea why the following:
AddExtender("nslookup32i.dll")
domain1="petrobras.com.br"
mxanswer=nsmxlookup(domain1,"",0)

reliably causes crash: Faulting application winbatch studio.exe, version 2005.3.0.0, faulting module nslookup32i.dll, version 0.0.0.0, fault address 0x00001a24.

while dos based

nslookup -type=mx petrobras.com.br 
yields valid mx records?

I obtained the extender from the tech database. If you know who provided it, and can get it updated, that would be useful. What it provides is extremely useful...when it works. I gave it a list of 1000 domains, and it gave the correct answer mx records or failure) on all but a very few, on which it crashed.

Failing that, if you know the win dll calls it is using, and could indicate how to do the same thing...

I can accomplish what I need using the indicated command line, but the wrapper to read the results has been far too slow. I am trying to clean a mailing list of invalid domains.

Answer:

I never even knew anyone made a nslookup extender for Winbatch. Sorry not aware who the developer is, if it is not documented. We also do not have access to the source....

I suspect it is a bug in the extender. Seems like an old one. The 32i extender indicates it was made for a very old version of Winbatch. The problem might be that it is not compatible with newer versions of Winbatch.

Maybe consider using dllcall to call the SDK DnsQuery and DnsRecordListFree functions.

Or if you have a c compiler handy, you could always build your own extender.

http://msdn.microsoft.com/library/en-us/dns/dns/dnsquery.asp?frame=true


Article ID:   W16872
File Created: 2007:07:03:14:26:40
Last Updated: 2007:07:03:14:26:40