i'm looking for ideas that will allow me to automate the process of creating a website. one of the issues will be how to programmatically create dns enties for each new site, be it new host header enties, new aliases etc..
all suggestions welcome!
What OS are you using and what DNS Server.
I can provide examples for BIND and Win2k's Microsoft DNS Server
Sam Land
http://www.dyndnsservices.com
Was this answer helpful ?
Yes No
Since BIND is all text config files and commandline binaries, this isn't that hard to do at all. The program you write can be told where BIND is installed and it can parse the named.conf file to brush up on what you have so far. Then if you want to modify zones, it can modify them. If you want to delete zones, it can delete the zone file and edit the named.conf. If you want to create zones, it can create a new zone file and modify the named.conf. For each action it can execute rndc with the proper commandline arguments to institute the changes made.
Was this answer helpful ?
Yes No
thanks for the replies.
the dns server is microsft's dns server provided with Win2k server .
is there an equivalent to BIND's methods for this setup?
Was this answer helpful ?
Yes No
Search the web for dnsprov.dll . or see here
http://www.microsoft.com/servicepro...mi_provider.asp
Was this answer helpful ?
Yes No
this may be what i need. thanks
Was this answer helpful ?
Yes No
Do you know if dnsprov.dll will work on Windows 2003? I have been moving my scripts over, now I'm getting a permission denied. I check my system32\wbem folder and the dnsprov.dll is there, but it's MUCH smaller than the one I had on windows 2000 server. Can someone help me?
Since this is my first post on this forum, I'm not sure how it works, so if possible, could you respond here and notify me via email at support@mkfhosting.com?
Thanks for your time,
Gary Lantz
Was this answer helpful ?
Yes No
I have noticed one difference
Creation of new zones has changed a bit There is probably more that has changed, but not that I know of. DO NOT INSTALL THE 2000 DNS PROVIDER ON 2003 IT WILL HOSE THINGS UP..
You will notice below the zone type values have changed a bit. I hope this helps..
E.G.
'Windows 2000
objA.CreateZone strZoneName, 1, , , ""
Values are below
void CreateZone(
[IN] string ZoneName,
[IN, Values {"DS integrated", "Primary", "Secondary"}] uint16 ZoneType,
[IN, optional] string DataFileName,
[IN, optional] string IpAddr[],
[IN, optional] string AdminEmailName,
[OUT] MicrosoftDns_Zone ref RR);
'Win 2003
objA.CreateZone strZoneName, 0
Values are below
void CreateZone(
[IN] string ZoneName,
[IN, Values { "Primary", "Secondary", "Stub", "Forward" } ] uint32 ZoneType,
[IN] boolean DsIntegrated,
[IN, optional] string DataFileName,
[IN, optional] string IpAddr[],
[IN, optional] string AdminEmailName,
[OUT] MicrosoftDns_Zone ref RR );
Was this answer helpful ?
Yes No
If the error is Permission denied you may need to set access levels for your scripts if they are web based you can use IIS anonymous access settings to acomplish this..
Was this answer helpful ?
Yes No
Before I had found the dnsprov.dll in the system32\wbem folder, I had already registered the one that i copied over from my windows 2000 server. Have I "HOSED THINGS UP"!

Or can I simply unregister and delete my new file, and reregister the one already on my server, how do I undo a mofcomp?
One other question, my server is a dedicated server from Valueweb.net, it comes with Windows2003 already installed and the I386 folder copied to the root, however, from what I understand there is another folder on the Windows2003 installation disk name \support\ that has a whole lot of IT goodies in there. Is this true, and is there a way I can find this stuff online, OR do I need to keep pounding on my server provider until they either copy it, or give me access to the information?
I know I have a lot of questions, but thanks for everything!!!
Gary Lantz
Was this answer helpful ?
Yes No