DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 19th, 2003, 10:57 PM
seanmyles2002 seanmyles2002 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 3 seanmyles2002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
  #2  
Old June 20th, 2003, 04:26 AM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
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

Reply With Quote
  #3  
Old June 20th, 2003, 08:15 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
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.

Reply With Quote
  #4  
Old June 20th, 2003, 11:11 AM
seanmyles2002 seanmyles2002 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 3 seanmyles2002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #5  
Old June 20th, 2003, 12:39 PM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
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.

Reply With Quote
  #6  
Old June 20th, 2003, 12:56 PM
seanmyles2002 seanmyles2002 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 3 seanmyles2002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
this may be what i need. thanks

Reply With Quote
  #7  
Old October 31st, 2003, 11:55 AM
galantz galantz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 10 galantz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #8  
Old October 31st, 2003, 04:26 PM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
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.

Reply With Quote
  #9  
Old October 31st, 2003, 04:38 PM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
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..

Reply With Quote
  #10  
Old November 1st, 2003, 01:02 PM
galantz galantz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 10 galantz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #11  
Old November 7th, 2003, 07:03 PM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
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..

Reply With Quote
  #12  
Old July 8th, 2004, 12:50 AM
appodictic appodictic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 appodictic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #13  
Old July 8th, 2004, 09:20 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
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

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsSystem AdministrationDNS > programmatically managing DNS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |