Skip to content

Adding ADIDNS Records

Kevin Robertson edited this page Dec 3, 2018 · 5 revisions

There are three functions capable of adding records to ADIDNS:

  1. New-ADIDNSNode - This function grabs the current SOA serial number, generates a valid dnsRecord value, and adds a dnsNode through LDAP. This function can only be used if a node with a matching name does not already exist. New-ADIDNSNode calls New-ADIDNSRecordArray to create a byte array to populate the dnsRecord attribute. New-ADIDNSRecordArray calls New-SOASerialNumberArray in order to generate an SOA serial number byte array for the dnsRecord array. By default, New-SOASerialNumberArray will attempt to connect to a DC on TCP 53 to pull the current SOA serial number. A serial number can also be specified manually.
  • Add a wildcard record to a ADIDNS zone and tombstones the node.
    New-ADIDNSNode -Node *
  1. Enable-ADIDNSNode - This function turns a tombstoned node back into a valid DNS record. The node will be updated with a valid dnsRecord value containing the proper SOA serial number.
  • Enable a wildcard record.
    Enable-ADIDNSNode -Node *
  1. Set-ADIDNSNodeAttribute - This function, in combination with New-DNSRecordArray, can create a valid DNS record from an existing node. The dnsRecord attribute value can either be overwritten or, in the case of multi-record nodes, appended.
  • Append a dnsRecord attribute value for an A record.
    Set-ADIDNSNodeAttribute -Node test -Attribute DNSRecord -Value (New-DNSRecordArray -Data 192.168.0.10) -Append

General

MachineAccountQuota

DNS - ADIDNS

DNS - Dynamic Updates

Clone this wiki locally