Link to home
Start Free TrialLog in
Avatar of richsark
richsarkFlag for United States of America

asked on

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

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?
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


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
Avatar of richsark

ASKER

Hi,

So ro re-cap

dnscmd /Info
dnscmd /ExportSettings

will show me any dns options, forwarders etc....

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
Outstanding, so dnscmd is a windows command and not  the util you wrote right?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good work