none
create A record inside a subzone like test1.test2.test3 using powershell RRS feed

  • Question

  • Hi All

    I'm trying to prepare a script for creating a DNS A records it works fine in case I'm going to create it on the upper zone like this

    Add-DnsServerResourceRecordA -Name "TestA6" -ZoneName "Firstzone" -ComputerName dnscomputer.contoso.com -AllowUpdateAny -IPv4Address "172.18.99.31" -TimeToLive 01:00:00

    But couldn't add this record into nested zones (subzone) like subzon2.subzone1.fistzone.

    I recone it is belongs to the subdomain name attribute like this

    Add-DnsServerResourceRecordA -Name "TestA6" -ZoneName "subzon2.subzone1.fistzone." -ComputerName dnscomputer.contoso.com -AllowUpdateAny -IPv4Address "172.18.99.31" -TimeToLive 01:00:00

    anyone could help?

    Thursday, March 8, 2018 11:12 PM

All replies

  • Hi Muhammad,

    Thanks for your question.

    Is the subzone above mentioned DNS zone delegation for parent zone?

    Let’s explain DNS delegation.

    When you delegate zones within your namespace, remember that for each new zone that you create, you need delegation records in other zones that point to the authoritative DNS servers for the new zone. This is necessary both to transfer authority and to provide correct referral to other DNS servers and clients of the new servers that are being made authoritative for the new zone.

    Therefore, the authoritative DNS  server for delegation zone should be new-built on another DNS server. Besides,  it’s impracticable to add or modify any DNS record on delegation zone originated from parent DNS, like the figure below. Because another server authoritative for this subzone take the possession. You may add record or modify zone on this authoritative delegation server.

    Additional reference for Delegation Zone:

    https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc771640(v=ws.11)

    Hope the information above helpful.

    Highly appreciate your effort and time. If you have any questions and concerns, please feel free to let me know.

    Wish you have a nice weekend!

    Best regards,

    Michael


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Friday, March 9, 2018 8:57 AM
  • Hi Muhammad,                       

    How are things going on? Was your issue resolved?

    Please let us know if you would like further assistance.

    Wish you have a nice day!

    Best regards,

    Michael


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Monday, March 12, 2018 8:50 AM
  • Hi Muhammad,                       

    How are things going on? Was your issue resolved?

    Please let us know if you would like further assistance.

    Wish you have a nice day!

    Best regards,

    Michael


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Wednesday, March 14, 2018 10:13 AM
  • Hi Muhammad,                       

    How are things going on? Was your issue resolved?

    Please let us know if you would like further assistance.

    Wish you have a nice weekend!

    Best regards,

    Michael


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Friday, March 16, 2018 9:24 AM