PowerShell for Windows Admins

Oct 30 2015   11:36AM GMT

Create a reverse lookup zone

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Tags:
DNS
Powershell

I needed to create a DNS reverse lookup zone for my test environment. With Windows Server 2012 R2 I’ve got cmdlets available for managing DNS servers – the DnsServer module. You need to install the DNS role or the DNS RSAT tools to get access to the module.

To create a new reverse lookup zone

Add-DnsServerPrimaryZone -DynamicUpdate Secure -NetworkId ‘10.10.54.0/24’ -ReplicationScope Domain

Use the networkId to define the subnet the zone spans. Setting DynamicUpdate to Secure ensures I have an AD integrated zone and I’ve set the replication scope to the domain.

Doesn’t get any easier

2  Comments on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.
  • dnot11
    how well does the reverse zone work if  you're not using a /24 subnet mask?
    10 pointsBadges:
    report
  • Richard Siddaway
    It works as expected as far as I'm aware
    9,575 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: