[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Editing entries of a DNS server

Hi!

I need to create an app running on a machine where a DNS server is running.  I want to be able to edit DNS entries in the server using my app.

Where should I start ?

Thanks :)
0
qas
Asked:
qas
  • 2
  • 2
1 Solution
 
DragonSlayerCommented:
for Win2k/XP, it can be found from the registry (space delimited):

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DhcpNameServer

So, you may edit it using your software.
0
 
qasAuthor Commented:
Thanks for the response but I dont think this is what I need.  I really don't know how this actually works though (I'm more of a programmer than a network guy :) so maybe you are right but let me try to be clearer.

The application I want to build will be running on a machine which actual runs  the DNS Server.  This Server should normally map IP adresses with Domain Names so I want to be able to edit those mapping by code.

Where should I look first ?
0
 
DragonSlayerCommented:
Ah. The registry settings above only changes the DNS server for lookup. Not what you need, obviously.

What DNS Server software are you using? Perhaps the documentation of the software will tell you more about it?
0
 
HoweverCommaCommented:
Assuming you are speaking of windows 2000 or 2003 server DNS you can modify it with a tool available in the resource kit.

http://www.petri.co.il/download_free_reskit_tools.htm - Get DNSCMD

You may need the 2003 server resource kit if you are running it, this one is for 2000 server.
You can do these types of functions (& many more I guessed these functions are what you are shooting for). You can create the cmd line dynamically and shell the CMD. That is how I used it.
        /EnumZones            -- Enumerate zones
        /ZoneAdd              -- Create a new zone on the DNS server
        /ZoneDelete           -- Delete a zone from DNS server or DS
        /ZonePause            -- Pause a zone
        /ZoneResume           -- Resume a zone
        /ZoneReload           -- Reload zone from its database (file or DS)
0
 
qasAuthor Commented:
Thanks :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now