Solved

How to generate a named.conf file in windows server 2003

Posted on 2010-11-19
6
1,001 Views
Last Modified: 2012-06-21
Hello,

I am using windows DNS, I like to know a way to extract the equivalent of named.conf

I know all the dns stuff if in the registry. But how can I get a named.conf file so I can see the big picture in terms of any DNS options, ACL's forwarders etc...

Is there a way to get that info out?
0
Comment
Question by:richsark
  • 3
  • 3
6 Comments
 
LVL 70

Expert Comment

by:Chris Dent
ID: 34173996

A lot of named.conf has no equivalent in MS DNS, including ACLs. That makes it tricky to generate anything but a very very basic file.

If all you want to do is see the options then there are a number of choices, including:

dnscmd /Info
dnscmd /ExportSettings

I have a module written for PowerShell that can extract server configuration:

http://code.msdn.microsoft.com/dnsshell

With:

Get-DnsServer -Computer SomeServer

Chris
0
 
LVL 1

Author Comment

by:richsark
ID: 34174069
Hi,

So ro re-cap

dnscmd /Info
dnscmd /ExportSettings

will show me any dns options, forwarders etc....
0
 
LVL 70

Expert Comment

by:Chris Dent
ID: 34174105

It will show you almost everything (except for a very small number of fields), the second command should drop that to a file, dumped into this directory on your DNS server: %SystemRoot%\System32\DNS\.

Chris
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Author Comment

by:richsark
ID: 34174133
Outstanding, so dnscmd is a windows command and not  the util you wrote right?

Thanks
0
 
LVL 70

Accepted Solution

by:
Chris Dent earned 500 total points
ID: 34174156

Correct. DNSCMD is an MS utility, part of the Support Tools if it's not installed already.

Mine is PowerShell only, returns a tiny bit more information, some in a slightly nicer format (makes things like dwNameCheckFlag human readable :)), but you're not missing out on much.

Chris
0
 
LVL 1

Author Closing Comment

by:richsark
ID: 34174184
Good work
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

20 Experts available now in Live!

Get 1:1 Help Now