• Microsoft DNS Documentation Script V2.00

    November 4, 2020

    DNS, PowerShell

    There are two important things you should know about this script.

    1. The default output is now HTML, not Microsoft Word
    2. You can now select any combination of the four output report types: HTML, MSWord, PDF, and Text

    I want to thank David McSpadden, Guy Leech, and Michael B. Smith for testing the script, recommending changes, and sending sample reports.

    I want to thank GP for the question that led me to add Appendix A to this script.

    Version 2.00 4-Nov-2020

    • Added an Appendix A to give an overview of Several DNS server and zone configuration Items when using -AllDNSServers:
      • DNS Forwarders
      • Zone Type
      • AD Integration
      • Signed
      • Dynamic Updates
      • Replication Scope
      • Aging Enabled
      • Refresh Interval
      • NoRefresh Interval
      • Scavenge Servers
    • Added processing Forward Lookup Zones that are Signed:
      • Key Master
      • Next Secure (NSEC)
      • Trust Anchor
      • Advanced
    • Changed all Write-Verbose $(Get-Date) to add -Format G to put the dates in the user’s locale
    • Changed color variables $wdColorGray15 and $wdColorGray05 from [long] to [int]
    • Cleaned up the formatting of Text output
    • Commented out Function CheckHTMLColor as it is no longer needed
    • For the -Dev, -Log, and -ScriptInfo output files, add the text “for the Domain <domain>”
    • General code cleanup
    • HTML is now the default output format
    • Removed the original function TestComputerName and renamed TestComputerName2 to TestComputerName
      • Added Functions testPort and testPortsOnOneIP
    • Stopped using a Switch statement for HTML colors and use a pre-calculated HTML array (for speed)
    • Updated Function ShowScriptOptions and ProcessScriptEnd for allowing multiple output types
    • Updated the help text
    • Updated the ReadMe file (https://carlwebster.sharefile.com/d-s247b4252c4e4865a)
    • Updated the following Functions to the latest versions:
      • AddHTMLTable
      • AddWordTable
      • CheckWordPrereq
      • FormatHTMLTable
      • ProcessDocumentOutput
      • SaveandCloseDocumentandShutdownWord
      • SaveandCloseHTMLDocument
      • SaveandCloseTextDocument
      • SetFilenames
      • SetWordCellFormat
      • SetWordHashTable
      • SetupHTML
      • SetupText
      • SetupWord
      • WriteHTMLLine
    • Updated the report title and output filenames to:
      • For using -Computername:
        • DNS Inventory Report for Server <DNSServerName> for the Domain <domain>
      • For using -AllDNSServers:
        • DNS Inventory Report for All DNS Servers for the Domain <domain>
    • You can now select multiple output formats. This required extensive code changes.

    Appendix A allows you to find inconsistent settings. For example:

    • Do all DNS servers use the same Forwarders? (Usually not)
    • Do all AD-Integrated zones use Secure updates? (Usually not, which is a security risk)
    • Are the replication scopes consistent? (Usually not)
    • Is Aging enabled? (Usually not consistent across zones)
    • Are the Refresh and NoRefresh intervals consistent? (Usually not)
    • Are the Refresh and NoRefresh intervals using Microsoft’s recommended settings? (more than likely not)
    • Is a Scavenging server configured? (almost always never is)

    Note: Appendix A is only created when you use the -AllDNSServers switch.

    When I do AD Assessments, I report on several DNS issues. If replication is broken or not working properly, I have seen DNS servers with inconsistent settings. The results shown in Appendix A not only make it easier for me but also you to do a quick visual check on DNS server configuration.

    You can always find the most current script by going to https://carlwebster.com/where-to-get-copies-of-the-documentation-scripts/

    Thanks

    Webster







    About Carl Webster

    Carl Webster is an independent consultant specializing in Citrix, Active Directory, and technical documentation. Carl (aka “Webster”) serves the broader Citrix community by writing articles (see CarlWebster.com) and by being the most active person in the Citrix Zone on Experts Exchange. Webster has a long history in the IT industry beginning with mainframes in 1977, PCs and application development in 1986, and network engineering in 2001. He has worked with Citrix products since 1990 with the premiere of their first product – the MULTIUSER OS/2.

    View all posts by Carl Webster

    No comments yet.

    Leave a Reply