richsark
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?
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?
ASKER
Hi,
So ro re-cap
dnscmd /Info
dnscmd /ExportSettings
will show me any dns options, forwarders etc....
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
ASKER
Outstanding, so dnscmd is a windows command and not the util you wrote right?
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Good work
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