Get-DnsServerResourceRecord seemingly returning all name servers in every zone

Welcome Forums General PowerShell Q&A Get-DnsServerResourceRecord seemingly returning all name servers in every zone

Viewing 0 reply threads
  • Author
    Posts
    • #218733
      Participant
      Topics: 1
      Replies: 0
      Points: 12
      Rank: Member

      …not just for the one specified.

      I have to check and then potentially update up to 400 zone nameserver records.

      I thought I could turn to Powershell to do this in far less time, and eliminate any mistakes that would no doubt happen doing this manually. However the PS command I understand outputs Name Servers of a zone, is producing a list of more servers than is showing in the GUI (See images below).

      On the thought that it was getting this list from all known name servers in the domain, I checked, and even this larger list is still 2 more than what the PS command is outputting, so I am at a loss as to where this list is coming from. Anyone know?

      Curiosity aside, I need a cmdlet to output only the name servers in the zone I specify. If not this cmdlet, which one?

      https://i.stack.imgur.com/jBpnj.png

      Command Line query

      • This topic was modified 1 month, 2 weeks ago by megabyte17.
      • This topic was modified 1 month, 2 weeks ago by megabyte17.
      • This topic was modified 1 month, 2 weeks ago by megabyte17.
      • This topic was modified 1 month, 2 weeks ago by megabyte17.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.