Re: Is there any way to create DNS entries programatically?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: William Stacey [MVP] (staceywREMOVE_at_mvps.org)
Date: 04/10/04


Date: Sat, 10 Apr 2004 00:36:34 -0400

WMI or ADSI is the way to do it so far. If you use .Net and c# I have some
examples. If you use c++, don't have any examples, buy you could find some
on google I would think. For WMI to work, you need the dns wmi provider
installed on the dns server you want to manage. This registers the
namespaces, etc. They have many examples use vbscript in the dnsprov pack.
I think it is in the w2k rez kit. You can also get it off the MS site if
you look for wmi and dns.

-- 
William Stacey, MVP
"Neo" <neo_in_matrix@msn.com> wrote in message
news:u4WOGjeHEHA.2744@TK2MSFTNGP10.phx.gbl...
> I see there are a bunch of Dns* APIs in MSND Platform SDK documentaton.
> But there are not samples. It's too hard to start with those cryptic
> APIs. Can anyone give me some samples?


Relevant Pages

  • C# DNSAPI - How to create a DNS Record.
    ... create DNS A records in a specific domain. ... In order to use WMI, ... This is where I'm lost. ... DNSModifyRecordsInSet function from within C#? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Programming a DNS Server
    ... > create/edit/delete dns entries on a windows 2003 DNS server. ... Anyway, I'm not a programmer, but I think you may want to look at WMI to ... please direct all replies ONLY to the Microsoft public newsgroup ...
    (microsoft.public.windows.server.dns)
  • Re: programmatically changing the gateway
    ... With scripting using WMI but this is off topic for this NG. ... without even the implied warranty of merchantability ... How-to: Windows 2000 DNS: ...
    (microsoft.public.win2000.networking)
  • WMI Permissions from ASP.NET
    ... I've written a web service to alter DNS records on Win2003 through WMI. ... The code works fine when accessing the DNS server on another machine ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Programming a DNS Server
    ... > want a DNS serverwhere we can create our own DNS ... > Windows DNS server, and we are willing to develop around the Windoes ... Anyway, I'm not a programmer, but I think you may want to look at WMI to ... please direct all replies ONLY to the Microsoft public newsgroup ...
    (microsoft.public.win2000.dns)