Editing entries of a DNS server

Posted on 2004-11-30
Last Modified: 2010-04-05

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 :)
Question by:qas
    LVL 14

    Expert Comment

    for Win2k/XP, it can be found from the registry (space delimited):


    So, you may edit it using your software.

    Author Comment

    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 ?
    LVL 14

    Expert Comment

    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?
    LVL 7

    Accepted Solution

    Assuming you are speaking of windows 2000 or 2003 server DNS you can modify it with a tool available in the resource kit. - 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)

    Author Comment

    Thanks :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now