creating new seconday DNS zone on win2k3

P

philg

Hi list,

I have been trying to create a secondary zone on a remote DNS server
(which is not in AD or domain), just standalone.

I can add primary zones, no problem. However whn i try to create a
secondary zone i get this error:

Error 0x80041005: DNS Zone not created.
Error description: Type mismatch

I have had to add a OS test, as it appears the API for Win2k3 is
different to Win2K.

Here's a snippet of the code that I've been using. Any pointers/clues
would be appreciated.

if not BIsWin2k3Server then
ObjInst = objDNSSet.CreateZone(strPropertyArray(2), _
strPropertyArray(0), _
strPropertyArray(3),strTempArray)
else
'ObjInst = objDNSSet.CreateZone(strPropertyArray(2), 1,
False,,,,strTempArray)

ObjInst = objDNSSet.CreateZone ("boing.com", _
1, _
False,_
"boing.com.dns", _
"10.82.56.127", _
"(e-mail address removed)",strTempArray)
end if

thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top