API Reference
Cmdlet
Invoke-DnsUpdate
Sends DNS UPDATE messages to a server.
Examples
Example 1
Invoke-DnsUpdate -Zone example.com -Server 127.0.0.1 -Name www -Type A -Data 1.2.3.4 -Ttl 300
Add an A record
Example 2
Invoke-DnsUpdate -Zone example.com -Server 127.0.0.1 -Name www -Type A -Delete
Delete an existing record
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Invoke-DnsUpdate -Zone <string> -Server <string> -Name <string> -Type <Reserved> [-Data <string>] [-Delete] [-Port <int>] [-Ttl <int>] [<CommonParameters>]#Parameters
- Zone string
- Zone to update.
- Server string
- DNS server to send the update to.
- Name string
- Record name.
- Type DnsRecordType
- Type of record. Possible values: Reserved, A, NS, MD, MF, CNAME, SOA, MB, MG, MR, NULL, WKS, PTR, HINFO, MINFO, MX, TXT, RP, AFSDB, X25, ISDN, RT, NSAP, NSAP_PTR, SIG, AAAA, LOC, SRV, ATMA, NAPTR, KX, CERT, A6, DNAME, SINK, OPT, APL, DS, SSHFP, IPSECKEY, RRSIG, NSEC, DNSKEY, DHCID, NSEC3, NSEC3PARAM, TLSA, SMIMEA, HIP, NINFO, RKEY, TALINK, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD, SVCB, HTTPS, TKEY, TSIG, IXFR, AXFR, MAILB, MAILA, ANY, SPF, URI, CAA, AVC, DOA, AMTRELAY, RESINFO, TA, DLV
- Possible values:
Reserved,A,NS,MD,MF,CNAME,SOA,MB,MG,MR,NULL,WKS,PTR,HINFO,MINFO,MX,TXT,RP,AFSDB,X25,ISDN,RT,NSAP,NSAP_PTR,SIG,AAAA,LOC,SRV,ATMA,NAPTR,KX,CERT,A6,DNAME,SINK,OPT,APL,DS,SSHFP,IPSECKEY,RRSIG,NSEC,DNSKEY,DHCID,NSEC3,NSEC3PARAM,TLSA,SMIMEA,HIP,NINFO,RKEY,TALINK,CDS,CDNSKEY,OPENPGPKEY,CSYNC,ZONEMD,SVCB,HTTPS,TKEY,TSIG,IXFR,AXFR,MAILB,MAILA,ANY,SPF,URI,CAA,AVC,DOA,AMTRELAY,RESINFO,TA,DLV - Data string
- Record data used when adding a record.
- Delete SwitchParameter
- If specified, the record is removed instead of added.
- Port int
- Port number to use. Defaults to 53.
- Ttl int
- TTL for the new record. Defaults to 300 seconds.