Solved

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

Posted on 2010-11-19
6
1,012 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
spf record 8 83
Active directory upgrade to DFSR 4 33
Sharepoint 2012 site not live after migration 7 55
gpo failed on a couple of systems- URGENT- WINDOWS SERVER 2012 R2 11 36
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
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.…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

932 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

19 Experts available now in Live!

Get 1:1 Help Now