Domain Detective

API Reference

Cmdlet

Invoke-DnsUpdate

Namespace DnsClientX.PowerShell

Sends DNS UPDATE messages to a server.

Examples

Authored help example

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 requiredposition: 0pipeline: false
Zone to update.
Server string requiredposition: 1pipeline: falsealiases: ServerName
DNS server to send the update to.
Name string requiredposition: 2pipeline: false
Record name.
Type DnsRecordType requiredposition: 3pipeline: falsevalues: 75
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 optionalposition: 4pipeline: false
Record data used when adding a record.
Delete SwitchParameter optionalposition: namedpipeline: false
If specified, the record is removed instead of added.
Port int optionalposition: namedpipeline: false
Port number to use. Defaults to 53.
Ttl int optionalposition: namedpipeline: false
TTL for the new record. Defaults to 300 seconds.
{{ include "footer" }}