View Full Version : Programming a DNS Server


Aussie Rules
11-06-2005, 11:05 PM
Hi,

I am trying to workout a way to have an application create/edit/delete dns
entries on a windows 2003 DNS server.

Is there a way to communicate with the DNS server programaticly to do this ?

Thanks!

MoiToo
11-07-2005, 03:14 AM
If the DNS server is reading zone data from a zone file, it is plain text,
which can be modified at will...

Aussie Aussie Aussie Oi Oi Oi ;)
"Aussie Rules" <someone@somewhere.com> wrote in message
news:%23CYqQay4FHA.3276@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I am trying to workout a way to have an application create/edit/delete dns
> entries on a windows 2003 DNS server.
>
> Is there a way to communicate with the DNS server programaticly to do this
> ?
>
> Thanks!
>
>

Tom Che [MSFT]
11-07-2005, 09:34 AM
Hi Aussie,

Thanks for posting here.

I would like to know why you need an application to create/edit/delete DNS
entries. I ask this because as far as I know, before you edit the DNS
database manually or via a third-party utility, you have to stop the DNS
server first.

If you just would like to manage the DNS server remotely, you may install
Windows Server 2003 Service Pack 1 Administration Tools Pack on any XP SP2
client, and then use the DNS snap-in. You may download the Admin Tools
Pack from:

<http://www.microsoft.com/downloads/details.aspx?FamilyID=E487F885-F0C7-436A
-A392-25793A25BAD7&displaylang=en>

If you just would like to know how to communicate with the DNS server
programmatically, this appears to be a Development related request and
would best be addressed in the Developer newsgroups. I have provided the
link below:

<http://msdn.microsoft.com/newsgroups/default.asp>

Or you may ask for developer support:
<http://support.microsoft.com/directory/directory/phonepro.asp?sd=msdn>

Hope this helps!

Have a nice day!

Sincerely,
Tom Che
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Aussie Rules" <someone@somewhere.com>
>Subject: Programming a DNS Server
>Date: Sun, 6 Nov 2005 23:05:53 -0000
>Lines: 10
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>X-RFC2646: Format=Flowed; Original
>Message-ID: <#CYqQay4FHA.3276@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.win2000.dns
>NNTP-Posting-Host: ACD6D30D.ipt.aol.com 172.214.211.13
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.win2000.dns:14614
>X-Tomcat-NG: microsoft.public.win2000.dns
>
>Hi,
>
>I am trying to workout a way to have an application create/edit/delete dns
>entries on a windows 2003 DNS server.
>
>Is there a way to communicate with the DNS server programaticly to do this
?
>
>Thanks!
>
>
>

Aussie Rules
11-07-2005, 09:05 PM
Hi,

We have an internal reason for wanting to manage our DNS entries. We want a
DNS server(authoritative-only) where we can create our own DNS records, and
there are many DNS servers on the market (www.powerdns.com) that store there
data in a database that are an option. You can just update the database via
an tool, and the DNS records are updated.

Most of these are non windows based, and we have good knowledge in the
Windows DNS server, and we are willing to develop around the Windoes DNS
server if its an option.

I have found some scripts
(http://www.microsoft.com/technet/scriptcenter/scripts/network/dns/records/default.mspx)
that would possibly do what we are trying to do, but looking for advice from
others before we go down this path.

Rather have a proper .Net application do this work for us.

Thanks


(sorry for x posting, but sometimes its hard to workout, which group is for
what)...



"Tom Che [MSFT]" <v-tomche@online.microsoft.com> wrote in message
news:KhXu2534FHA.3220@TK2MSFTNGXA01.phx.gbl...
> Hi Aussie,
>
> Thanks for posting here.
>
> I would like to know why you need an application to create/edit/delete DNS
> entries. I ask this because as far as I know, before you edit the DNS
> database manually or via a third-party utility, you have to stop the DNS
> server first.
>
> If you just would like to manage the DNS server remotely, you may install
> Windows Server 2003 Service Pack 1 Administration Tools Pack on any XP SP2
> client, and then use the DNS snap-in. You may download the Admin Tools
> Pack from:
>
> <http://www.microsoft.com/downloads/details.aspx?FamilyID=E487F885-F0C7-436A
> -A392-25793A25BAD7&displaylang=en>
>
> If you just would like to know how to communicate with the DNS server
> programmatically, this appears to be a Development related request and
> would best be addressed in the Developer newsgroups. I have provided the
> link below:
>
> <http://msdn.microsoft.com/newsgroups/default.asp>
>
> Or you may ask for developer support:
> <http://support.microsoft.com/directory/directory/phonepro.asp?sd=msdn>
>
> Hope this helps!
>
> Have a nice day!
>
> Sincerely,
> Tom Che
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
>
> =====================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> --------------------
>>From: "Aussie Rules" <someone@somewhere.com>
>>Subject: Programming a DNS Server
>>Date: Sun, 6 Nov 2005 23:05:53 -0000
>>Lines: 10
>>X-Priority: 3
>>X-MSMail-Priority: Normal
>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>>X-RFC2646: Format=Flowed; Original
>>Message-ID: <#CYqQay4FHA.3276@TK2MSFTNGP10.phx.gbl>
>>Newsgroups: microsoft.public.win2000.dns
>>NNTP-Posting-Host: ACD6D30D.ipt.aol.com 172.214.211.13
>>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
>>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.win2000.dns:14614
>>X-Tomcat-NG: microsoft.public.win2000.dns
>>
>>Hi,
>>
>>I am trying to workout a way to have an application create/edit/delete dns
>>entries on a windows 2003 DNS server.
>>
>>Is there a way to communicate with the DNS server programaticly to do this
> ?
>>
>>Thanks!
>>
>>
>>
>

Ace Fekay [MVP]
11-08-2005, 05:07 AM
In news:%23RCo$794FHA.3188@TK2MSFTNGP15.phx.gbl,
Aussie Rules <someone@somewhere.com> made this post, which I then commented
about below:
> Hi,
>
> We have an internal reason for wanting to manage our DNS entries. We
> want a DNS server(authoritative-only) where we can create our own DNS
> records, and there are many DNS servers on the market
> (www.powerdns.com) that store there data in a database that are an
> option. You can just update the database via an tool, and the DNS
> records are updated.
> Most of these are non windows based, and we have good knowledge in the
> Windows DNS server, and we are willing to develop around the Windoes
> DNS server if its an option.
>
> I have found some scripts
> (http://www.microsoft.com/technet/scriptcenter/scripts/network/dns/records/default.mspx)
> that would possibly do what we are trying to do, but looking for
> advice from others before we go down this path.
>
> Rather have a proper .Net application do this work for us.
>
> Thanks
>
>
> (sorry for x posting, but sometimes its hard to workout, which group
> is for what)...
>

(I posted this to both groups)\

Actually it would have been to your benefit to x-post, but you multi-posted.
The difference is if x-posted, responses from any of the groups x-posted
into, would have gone to all groups simulaneously and all you would need to
do is check one of the groups.

Anyway, I'm not a programmer, but I think you may want to look at WMI to
programmatically manage DNS:

WMI Scripting Primer- Part 1:
http://msdn.microsoft.com/library/en-us/dnclinic/html/scripting06112002.asp

WMI DNS and namespace Scripting Primer Part 2:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting08132002.asp

Download details WMI Administrative Tools:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=6430F853-1120-48DB-8CC5-F2ABDC3ED314


--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

If this post is viewed at a non-Microsoft community website, and you were to
respond to it through that community's website, I may not see your reply
unless that website posts replies back to the original Microsoft forum.
Therefore, please direct all replies ONLY to the Microsoft public newsgroup
this thread originated in so all can benefit or ensure the web community
posts it back to the original forum.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Windows Server Directory Services
Microsoft Certified Trainer
Infinite Diversities in Infinite Combinations.
=================================

MoiToo
11-08-2005, 01:24 PM
Since you asked this, I (sort of) had a need to do this myself. There is
some info in an SDK - I can find which one tomorrow if you want - just email
me and I will find it.

The problem for me is that it seems like it is only for C - not VB - depends
what you can write in...


"Aussie Rules" <someone@somewhere.com> wrote in message
news:%23CYqQay4FHA.3276@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I am trying to workout a way to have an application create/edit/delete dns
> entries on a windows 2003 DNS server.
>
> Is there a way to communicate with the DNS server programaticly to do this
> ?
>
> Thanks!
>
>