Home All Groups Group Topic Archive Search About

Modifying DNS entries via scripting



Author
28 Nov 2007 5:52 PM
Dave Navarro
Can someone point me to some code examples for interacting with MS DNS
server through scripting?

I need the ability to add/modify/remove DNS entries on our server
without logging into that server remotely and using the GUI.

Thanks!

--Dave

Author
28 Nov 2007 6:06 PM
Pegasus (MVP)
Answered in a different newsgroup.

http://www.blakjak.demon.co.uk/mul_crss.htm


Show quote
"Dave Navarro" <d***@no.way.dude> wrote in message
news:MPG.21b766c2911d551a98968f@msnews.microsoft.com...
> Can someone point me to some code examples for interacting with MS DNS
> server through scripting?
>
> I need the ability to add/modify/remove DNS entries on our server
> without logging into that server remotely and using the GUI.
>
> Thanks!
>
> --Dave
Author
28 Nov 2007 6:09 PM
Pegasus (MVP)
"Dave Navarro" <d***@no.way.dude> wrote in message
news:MPG.21b766c2911d551a98968f@msnews.microsoft.com...
> Can someone point me to some code examples for interacting with MS DNS
> server through scripting?
>
> I need the ability to add/modify/remove DNS entries on our server
> without logging into that server remotely and using the GUI.
>
> Thanks!
>
> --Dave

Please ignore my previous reply - I got confused.

You could use psexec.exe (www.sysinternals.com) to invoke this
command on your server:

netsh interface ip set dns . . .
Author
28 Nov 2007 6:55 PM
Dave Navarro
In article <eqUMqmeMIHA.2***@TK2MSFTNGP03.phx.gbl>, I.***@fly.com
says...
Show quote
>
> "Dave Navarro" <d***@no.way.dude> wrote in message
> news:MPG.21b766c2911d551a98968f@msnews.microsoft.com...
> > Can someone point me to some code examples for interacting with MS DNS
> > server through scripting?
> >
> > I need the ability to add/modify/remove DNS entries on our server
> > without logging into that server remotely and using the GUI.
> >
> > Thanks!
> >
> > --Dave
>
> Please ignore my previous reply - I got confused.
>
> You could use psexec.exe (www.sysinternals.com) to invoke this
> command on your server:
>
> netsh interface ip set dns . . .

So the only realistic way is using DNSCMD?  I was hoping to create a
simple interface using a VBS script for people in my department to add
new subdomains to our primary domain and modifying the existing
subdomain entries.

Right now I have to handle it all manually and it's a PITA :)
Author
28 Nov 2007 7:23 PM
Pegasus (MVP)
Show quote
"Dave Navarro" <d***@no.way.dude> wrote in message
news:MPG.21b775944e0a9128989692@msnews.microsoft.com...
> In article <eqUMqmeMIHA.2***@TK2MSFTNGP03.phx.gbl>, I.***@fly.com
> says...
>>
>> "Dave Navarro" <d***@no.way.dude> wrote in message
>> news:MPG.21b766c2911d551a98968f@msnews.microsoft.com...
>> > Can someone point me to some code examples for interacting with MS DNS
>> > server through scripting?
>> >
>> > I need the ability to add/modify/remove DNS entries on our server
>> > without logging into that server remotely and using the GUI.
>> >
>> > Thanks!
>> >
>> > --Dave
>>
>> Please ignore my previous reply - I got confused.
>>
>> You could use psexec.exe (www.sysinternals.com) to invoke this
>> command on your server:
>>
>> netsh interface ip set dns . . .
>
> So the only realistic way is using DNSCMD?  I was hoping to create a
> simple interface using a VBS script for people in my department to add
> new subdomains to our primary domain and modifying the existing
> subdomain entries.
>
> Right now I have to handle it all manually and it's a PITA :)

Hmm. Users playing around with primary domains, subdomains
and DNS settings. Sounds like a recipe for disaster.
Author
28 Nov 2007 10:04 PM
Dave Navarro
In article <OholVQfMIHA.5***@TK2MSFTNGP04.phx.gbl>, I.***@fly.com
says...
Show quote
>
> "Dave Navarro" <d***@no.way.dude> wrote in message
> news:MPG.21b775944e0a9128989692@msnews.microsoft.com...
> > In article <eqUMqmeMIHA.2***@TK2MSFTNGP03.phx.gbl>, I.***@fly.com
> > says...
> >>
> >> "Dave Navarro" <d***@no.way.dude> wrote in message
> >> news:MPG.21b766c2911d551a98968f@msnews.microsoft.com...
> >> > Can someone point me to some code examples for interacting with MS DNS
> >> > server through scripting?
> >> >
> >> > I need the ability to add/modify/remove DNS entries on our server
> >> > without logging into that server remotely and using the GUI.
> >> >
> >> > Thanks!
> >> >
> >> > --Dave
> >>
> >> Please ignore my previous reply - I got confused.
> >>
> >> You could use psexec.exe (www.sysinternals.com) to invoke this
> >> command on your server:
> >>
> >> netsh interface ip set dns . . .
> >
> > So the only realistic way is using DNSCMD?  I was hoping to create a
> > simple interface using a VBS script for people in my department to add
> > new subdomains to our primary domain and modifying the existing
> > subdomain entries.
> >
> > Right now I have to handle it all manually and it's a PITA :)
>
> Hmm. Users playing around with primary domains, subdomains
> and DNS settings. Sounds like a recipe for disaster.

Hehe.  I should qualify that, I guess.

We have 4 support programmers that need to add new subdomains when we
sign a new client.  They don't know much about DNS server and I don't
want to give them access to our DNS server.

What I want is a simple script (or web page) that allows them to add a
new subdomain, remove an existing subdomain or modify an existing
subdomain and that's it.

--Dave

AddThis Social Bookmark Button