Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1086
  • Last Modified:

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?
0
richsark
Asked:
richsark
  • 3
  • 3
1 Solution
 
Chris DentPowerShell DeveloperCommented:

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
 
richsarkAuthor Commented:
Hi,

So ro re-cap

dnscmd /Info
dnscmd /ExportSettings

will show me any dns options, forwarders etc....
0
 
Chris DentPowerShell DeveloperCommented:

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
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
richsarkAuthor Commented:
Outstanding, so dnscmd is a windows command and not  the util you wrote right?

Thanks
0
 
Chris DentPowerShell DeveloperCommented:

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
 
richsarkAuthor Commented:
Good work
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now