Query DNS Zone Type

  • 35 Views
  • Last Post 19 October 2017
manasrrp6 posted this 19 October 2017

Hi How to query any DNS Zone type , whether it is Primary or Secondary or Stub Zone by GUI or by using Command line.Can we use nslookup or dnscmd ? Regardscid:image002.gif@01D14ECD.C6D1DE80 

Order By: Standard | Newest | Votes
Anthony.Vandenbossche posted this 19 October 2017

Try using Get-DnsServerZone 
ANTHONY VAN DEN BOSSCHE

show

manasrrp6 posted this 19 October 2017

  But I have not found any switch to view Zone Type. https://docs.microsoft.com/en-us/powershell/module/dnsserver/get-dnsserverzone?view=win10-ps Regardscid:image002.gif@01D14ECD.C6D1DE80 

show

Anthony.Vandenbossche posted this 19 October 2017

Then you’ll need to use a filter like so (for example): Get-DnsServerZone | where{$_.ZoneType -eq "Primary"} 
ANTHONY VAN DEN BOSSCHE

show

bshwjt posted this 19 October 2017

What exactly you need? There are so many switches are available ; just type - & press tab.
PS C:\Users\Administrator> Get-DnsServerZone
ZoneName                            ZoneType        IsAutoCreated   IsDsIntegrated  IsReverseLookupZone  IsSigned--------                            --------        -------------   --------------  -------------------  --------_msdcs.Contoso.com                  Primary         False           True            False                False0.in-addr.arpa                      Primary         True            False           True                 False127.in-addr.arpa                    Primary         True            False           True                 False224.10.in-addr.arpa                 Primary         False           True            True                 False255.in-addr.arpa                    Primary         True            False           True                 FalseContoso.com                         Primary         False           True            False                FalseTrustAnchors                        Primary         False           True            False                Falsexyz.abc.com                         Stub            False           True            False

show

manasrrp6 posted this 19 October 2017

Is there any relation between  AD Replication with DNS aging / scavenging properties ? Regardscid:image002.gif@01D14ECD.C6D1DE80 

show

Anthony.Vandenbossche posted this 19 October 2017

Yes, Before enabling scavenging on a Server lever, you should make sure that scavenging is enabled on Zone level. This enables replication of DNS record timestamps. More info on this: https://blogs.technet.microsoft.com/networking/2008/03/19/dont-be-afraid-of-dns-scavenging-just-be-patient/ 

show

Close