Solved

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

Posted on 2010-11-19
6
1,039 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

789 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