|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
programmatically managing DNS
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! |
|
#2
|
|||
|
|||
|
What OS are you using
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 |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
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? Last edited by seanmyles2002 : June 20th, 2003 at 11:40 AM. |
|
#5
|
|||
|
|||
|
Win2k's DNS is a good choice
Search the web for dnsprov.dll . or see here
http://www.microsoft.com/servicepro...mi_provider.asp Last edited by DynDNS : June 20th, 2003 at 12:44 PM. |
|
#6
|
|||
|
|||
|
this may be what i need. thanks
|
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
Differences
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 ); Last edited by DynDNS : October 31st, 2003 at 04:33 PM. |
|
#9
|
|||
|
|||
|
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..
|
|
#10
|
|||
|
|||
|
hmmm
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 |
|
#11
|
|||
|
|||
|
You should be able to remove the 2000 files and then run regsvr32 on the existing dnsprov.dll and then run a mofcomp on dnsschema.mof that was included with 2003..
|
|
#12
|
|||
|
|||
|
This is really something to look out for. I found this as a solution to a problem I was having. What is the best way to autodetect windows version from the vbscript like
if ( 2k ) oldCommand if (2k+3) new command Thanks its really nice when people find bugs and report them. Instead of saying they found a problem and not giving the fix |
|
#13
|
||||
|
||||
|
I'm not sure if you're asking a question or not. But if you are, you'd be the 3rd person to ask a question in this thread. People should make create their own topics to ask questions. I'm closing this thread to stop further abuse.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
| Viewing: Dev Shed Forums > System Administration > DNS > programmatically managing DNS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|