Add cname to dns subdomain

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

This topic contains 0 replies, has 1 voice, and was last updated by  majorkuso87 1 month, 1 week ago.

  • Author
    Posts
  • #170107

    Participant
    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

You must be logged in to reply to this topic.