Import DNS Records From Text File

Discussion in 'DNS Server' started by Fred Flowers, Sep 30, 2004.

  1. Fred Flowers

    Fred Flowers Guest

    I am a new user of Windows 2003 Server DNS, which is
    integrated with Active Directory, as appears to be the
    recommended practice. Since I will be running periodic
    network tests requiring the entry and subsequent deletion
    of many DNS records, I would like to prepare a simple text
    file of these entries and import them into the DNS as
    needed. Can someone point me toward a command, utility,
    or script file that will accomplish this simple task?

    Fred
     
    Fred Flowers, Sep 30, 2004
    #1
    1. Advertisements

  2. In
    You can try DNSCMD (part of support tools) or try Dean Well's, MVP, "DNS
    Dump" found here"
    http://www.reskit.net/DNS/dnsdump.cm_

    Note: there's an underscore at the end of the link. Save it to notepad,
    rename it as a .cmd file. For syntax, help is your friend...

    --
    Regards,
    Ace

    Please direct all replies ONLY to the Microsoft public newsgroups
    so all can benefit.

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

    Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
    Microsoft Windows MVP - Windows Server - Directory Services

    Security Is Like An Onion, It Has Layers
    HAM AND EGGS: A day's work for a chicken;
    A lifetime commitment for a pig.
     
    Ace Fekay [MVP], Sep 30, 2004
    #2
    1. Advertisements

  3. Also, if it is not necessary that the record be in the DNS domain
    you now have, but could be in any valid DNS domain, then you
    could just
    1. place the zone file with the records, and appropriate SOA, NS
    into system32\dns
    2.edit the boot file so that it specifies the new primary zone,
    pointing to then file.
    3. trigger the DNS server to reload zones
    If you wanted the zone AD integrated, then go in and change its
    type after it has been loaded.
     
    Roger Abell [MVP], Oct 2, 2004
    #3
  4. Fred Flowers

    Sam Hawas Guest

    Hello,

    I am still not clear about how to export and import zones to DNS? is there
    any article that may help?

    thnaks
     
    Sam Hawas, Jan 31, 2005
    #4
  5. In
    Roger gave you step by step instructions. Curious, what part of the
    instructions were not clear?

    You can also opt to try DNSDump (by Dean Wells, MVP) located at:
    JSI Tip 5695. DNSDump script will EXPORT (Backup) and IMPORT (Restore) your
    DNS Server configuration.:
    http://www.jsiinc.com/subl/tip5600/rh5695.htm

    Regards,
    Ace

    G O E A G L E S !!! Superbowl bound NFC Champs!!

    Please direct all replies ONLY to the Microsoft public newsgroups
    so all can benefit.

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

    Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
    Microsoft Windows MVP - Windows Server - Directory Services

    Security Is Like An Onion, It Has Layers
    HAM AND EGGS: A day's work for a chicken;
    A lifetime commitment for a pig.
     
    Ace Fekay [MVP], Jan 31, 2005
    #5
  6. Fred Flowers

    Sam Hawas Guest

    Hi,

    This is a very lengthy process, thanks for the reply, I found out the best
    way to backup DNS zones, Administrative tools - DNS - then right click on DNS
    server name - properties - advanced, then in the drop down box of the label:
    Load zone data on startup, change to From File - then click Apply, this will
    generate a boot file under windows/system32/dns .... this is the back up of
    all zones currently in DNS server, this file to be save as backup file, if
    you want to restore them for any reason, just put the Boot file back in
    windows/system32/dns and start DNS server service, all zones in that file
    would loaded ... is that simple ... not sure why Microsoft does not put this
    instruction clearly for users like me so they don't have to waste so much
    time searching for answer.

    Thank you very much.
     
    Sam Hawas, Feb 1, 2005
    #6
  7. In
    There's actually multiple links on this, but I am happy to hear that you
    were able to figure it out with the help of Roger and anyone else that has
    responded. If ok with you, I thought to post some of the links pretaining to
    DNS boot files for you and everyone out there for future reference. You
    know, most of these posts will wind up on about a dozen different sites
    anyway. I hope between your post and these links, they will benefit someone
    else in need.

    Windows NT (Win2k and Win2k3 too) DNS Disaster Recovery - How to build a
    boot file and use it for DNS DR:
    http://www.microsoft.com/technet/archive/winntas/tips/winntmag/dnsdis.mspx

    Windows 2000 DNS Boot File Can Be Named Boot or Boot.dns (basically what you
    did):
    http://support.microsoft.com/default.aspx?scid=kb;en-us;240088

    How to move one or more zone files to a new Windows NT DNS server (boot
    files too):
    http://support.microsoft.com/default.aspx?scid=kb;en-us;172221

    Q280061 - HOW TO Move Windows 2000 DNS Zones to Another Windows 2000-based
    Server (mentions how to use boot files):
    http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q280061

    Then there's migration method from a BIND server:
    Upgrading - Migrating DNS servers from NT4.0, BIND formats that Windows
    understands:
    http://www.microsoft.com/windows2000/en/server/help/sag_DNS_imp_MigrationIssues.htm

    Then there are 3rd party tools as well:
    Simple DNS Plus - Windows DNS Server Moving NT4 to W2k or W2k to W2k:
    http://www.jhsoft.com/tutor/migrate.htm



    --
    Regards,
    Ace

    G O E A G L E S !!! Superbowl bound NFC Champs!!

    Please direct all replies ONLY to the Microsoft public newsgroups
    so all can benefit.

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

    Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
    Microsoft Windows MVP - Windows Server - Directory Services

    Security Is Like An Onion, It Has Layers
    HAM AND EGGS: A day's work for a chicken;
    A lifetime commitment for a pig.
     
    Ace Fekay [MVP], Feb 1, 2005
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.