• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 135
  • Last Modified:

How do I edit the Microsoft DNS Service Files and where are they located?

Hello,
I am in the planning phase of writing an app that directly edits the Microsoft DNS Service Record Files. Problem is I dont know what they filenames are or where they are located. Also can someone please provide me with an example of what an A record entry would look like, an MX Record entry, and a PTR record entry? The general purpose of my app is to automatically add and remove domains from my companies DNS servers in an automated fashion.


Worth 500 points.

Thanks,
Rick
0
richardsimnett
Asked:
richardsimnett
  • 2
  • 2
  • 2
1 Solution
 
mikeabrunetteCommented:
Hi Rick,

DNS files are stored in WINNTROOT\System32\DNS
Samples of records below

mycompany.com.            IN      SOA      mymachine.mycompany.com.      root.mymachine.mycompany.com. (
            1999112701                       ; Serial number as date and two digit number YYMMDDXX
            10800                                ; Refresh in seconds 28800=8H
            3600                                  ; Retry in seconds 7200=2H
            604800                              ; Expire 3600000=1 week
            86400 )                             ; Minimum TTL 86400=24Hours
mycompany.com.                                IN                  NS                 mymachine.mycompany.com.
mycompany.com.                                IN                  MX                     10            mailmachine.mycompany.com.
mymachine.mycompany.com.               IN                  A                                   10.1.0.100
mailmachine.mycompany.com.             IN                  A                                   10.1.0.4
george.mycompany.com.                     IN                  A                                   10.1.3.16

0
 
richardsimnettAuthor Commented:
mike,
ok so what is the delimiter in the file? tab? and I see the a records and the mx records, but what about PTR records for reverse lookups?

Thanks,
Rick
0
 
Nirmal SharmaSolution ArchitectCommented:
First of all be clear about the Zones: -

1. For Primary zones you will see the A records listed in the domain_name.com zone file which is located in E:\WINNT\system32\dns folder. You will see two names such as i have: -

192.168.1.x Subnet.dns                             For Reverse Lookup Zone.
animaster.com.dns                                    For A records.

NOTE: - If your DNS Zone is integrated to AD then you won't see anything in these two files because AD integrated zones store their records in DNSZone container in Active Directory which require ADSI or other third party querying tool to query data from AD Database.

You can see the Zone type from here: - Right click on Zone > Property > General Tab.

Let me know.

Thanks
SystmProg
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Nirmal SharmaSolution ArchitectCommented:
One more thing i forgot to tell you...if you don't see reverse lookup zone in your computer or dns server then that means you haven't created it yet.
0
 
mikeabrunetteCommented:
The PTR entry is same format...
1.249.249.192.in-addr.arpa.  IN PTR wormhole.movie.edu

I'm almost certian they are tab delimited but I could actually be wrong about that.
I'll try to have a look at some in a text editor next chance I get and confirm unless someone else can confirm before then.

Good luck Rick

0
 
richardsimnettAuthor Commented:
Mikeabrunette,
I just finished writing the app, and it works awesome. Thanks for the help.

Cheers,
Rick
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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