Welcome Forums General PowerShell Q&A Add cname to dns subdomain

Viewing 0 reply threads
  • Author
    • #170107
      Topics: 1
      Replies: 0
      Points: 12
      Rank: Member

      How can I add a bulk list of cname records to the subdmain in dns for example if I have a forward lookup zone of “company .com” then under that I have another zone of “myservers”. How do I add cnames to myserver.company.com. in powershell?

      I tried

      Add-DnsServerResourceRecordCName -Name $server -HostNameAlias myserver.company.com. -ZoneName anpserver.company.com -ComputerName dc1}

      I get errors of zone not found

Viewing 0 reply threads
  • The topic ‘Add cname to dns subdomain’ is closed to new replies.