AddByCName method of the PS_DnsServerResourceRecord class
Adds the record to a specified zone in a DNS server.
Syntax
uint32 AddByCName( [in] string HostNameAlias, [in] string ZoneName, [in] datetime TimeToLive, [in] boolean AllowUpdateAny, [in] string Name, [in] string ComputerName, [in] string RRType, [in] boolean AgeRecord, [in] boolean PassThru, [out] string cmdletOutput );
Parameters
- HostNameAlias [in]
-
Alias Name
- ZoneName [in]
-
Specifies the name of the zone.
- TimeToLive [in]
- AllowUpdateAny [in]
-
Allow any authenticated user to update DNS record with same owner name
- Name [in]
-
Record Name
- ComputerName [in]
-
Specifies the remote computer on which to execute the command
- RRType [in]
-
{HINFO | AFSDB | ATMA | ISDN | MD | MG | MINFO | MR | MX | |RP | RT | WKS | X25| A | AAAA |CNAME | PTR |SRV |TXT |WINS | WINSR| NS | SOA | DNAME | DHCID}
- A (A)
- Ns (Ns)
- CName (CName)
- Wks (Wks)
- Ptr (Ptr)
- HInfo (HInfo)
- Mx (Mx)
- Txt (Txt)
- Rp (Rp)
- Afsdb (Afsdb)
- X25 (X25)
- Isdn (Isdn)
- Rt (Rt)
- AAAA (AAAA)
- Srv (Srv)
- Atma (Atma)
- DName (DName)
- Ds (Ds)
- Rrsig (Rrsig)
- Nsec (Nsec)
- DnsKey (DnsKey)
- DhcId (DhcId)
- Wins (Wins)
- WinsR (WinsR )
- AgeRecord [in]
- PassThru [in]
- cmdletOutput [out]
Requirements
|
Minimum supported client | Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [desktop apps only] |
|
Namespace |
\root\Microsoft\Windows\Dns |
|
MOF |
|
See also
Build date: 12/6/2012
