< Back
Update-DynDnsRecord
Post
NAME Update-DynDnsRecord
SYNOPSIS
The Update-DynDnsRecord command updates an existing DNS record in the specified zone.
SYNTAX
Update-DynDnsRecord [-DynDnsRecord] <DynDnsRecord> [-UpdatedDynDnsRecord] <DynDnsRecord> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
The Update-DynDnsRecord command updates an existing DNS record in the specified zone.
Currently, the following DNS record types are supported:
* A
* TXT
* CNAME
* MX
* SRV
* PTR
* SOA (ResponsiblePerson)
PARAMETERS
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the command.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-DynDnsRecord <DynDnsRecord>
A DNS record which has prevously been published to the zone of any supported type: A, TXT, CNAME, MX, SRV,
PTR, SOA.
The value should be created using the Get-DynDnsRecord command.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UpdatedDynDnsRecord <DynDnsRecord>
A valid DNS record of the same type as provided by -DynDnsRecord.
The value should be created using the New-DynDnsRecord command.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the command runs. The command is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
DynDnsRecord
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> $DynDnsRecord = Get-DynDnsRecord -Zone anovelidea.org -RecordType A -Node www2
PS C:\\> $UpdatedDynDnsRecord = New-DynDnsRecord -IPv4Address 74.125.21.122
PS C:\\> Update-DynDnsRecord -DynDnsRecord $DynDnsRecord -UpdatedDynDnsRecord $UpdatedDynDnsRecord -Confirm:$false
Address : 74.125.21.122
Zone : anovelidea.org
Name : www2.anovelidea.org
Type : A
TTL : 3600
Update the DNS A record for the hostname www2.anovelidea.org.
-------------------------- Example 2 --------------------------
PS C:\\> $DynDnsRecord = Get-DynDnsRecord -Zone anovelidea.org -RecordType A -Node www2
PS C:\\> $UpdatedDynDnsRecord = New-DynDnsRecord -IPv4Address 74.125.21.122
PS C:\\> Update-DynDnsRecord -DynDnsRecord $DynDnsRecord -UpdatedDynDnsRecord $UpdatedDynDnsRecord -Confirm:$false
-Verbose
VERBOSE: The original record type matches the updated record type.
VERBOSE:
--------------------------------------------------------------------------------
Original DNS Record:
Address : 74.125.21.121
Zone : anovelidea.org
Name : www2.anovelidea.org
Type : A
TTL : 3600
VERBOSE:
--------------------------------------------------------------------------------
Update DNS Record Attributes::
Attribute Original Updated
--------- -------- -------
Address 74.125.21.121 74.125.21.122
--------------------------------------------------------------------------------
VERBOSE: Performing the operation "Update DNS A record" on target "www2.anovelidea.org".
VERBOSE: API-3.7.11 : INFO : BLL : update: Record updated
Address : 74.125.21.122
Zone : anovelidea.org
Name : www2.anovelidea.org
Type : A
TTL : 3600
Update the DNS A record for the hostname www2.anovelidea.org. Show the original record and the proposed changes.
RELATED LINKS
Online Version: https://powershell.anovelidea.org/modul ... ecord.html
Add-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html
Get-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html
Update an A Record (API) https://help.dyn.com/update-a-record-api/
Update TXT Record (API) https://help.dyn.com/update-txt-record-api/
Update CNAME Records (API) https://help.dyn.com/update-cname-records-api/
Update MX Record (API) https://help.dyn.com/update-mx-record-api/
Update SRV Records (API) https://help.dyn.com/update-srv-records-api/
Update PTR Record (API) https://help.dyn.com/update-ptr-record-api/
Update SOA Record (API) https://help.dyn.com/update-soa-record-api/
SYNOPSIS
The Update-DynDnsRecord command updates an existing DNS record in the specified zone.
SYNTAX
Update-DynDnsRecord [-DynDnsRecord] <DynDnsRecord> [-UpdatedDynDnsRecord] <DynDnsRecord> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
The Update-DynDnsRecord command updates an existing DNS record in the specified zone.
Currently, the following DNS record types are supported:
* A
* TXT
* CNAME
* MX
* SRV
* PTR
* SOA (ResponsiblePerson)
PARAMETERS
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the command.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-DynDnsRecord <DynDnsRecord>
A DNS record which has prevously been published to the zone of any supported type: A, TXT, CNAME, MX, SRV,
PTR, SOA.
The value should be created using the Get-DynDnsRecord command.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UpdatedDynDnsRecord <DynDnsRecord>
A valid DNS record of the same type as provided by -DynDnsRecord.
The value should be created using the New-DynDnsRecord command.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the command runs. The command is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
DynDnsRecord
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> $DynDnsRecord = Get-DynDnsRecord -Zone anovelidea.org -RecordType A -Node www2
PS C:\\> $UpdatedDynDnsRecord = New-DynDnsRecord -IPv4Address 74.125.21.122
PS C:\\> Update-DynDnsRecord -DynDnsRecord $DynDnsRecord -UpdatedDynDnsRecord $UpdatedDynDnsRecord -Confirm:$false
Address : 74.125.21.122
Zone : anovelidea.org
Name : www2.anovelidea.org
Type : A
TTL : 3600
Update the DNS A record for the hostname www2.anovelidea.org.
-------------------------- Example 2 --------------------------
PS C:\\> $DynDnsRecord = Get-DynDnsRecord -Zone anovelidea.org -RecordType A -Node www2
PS C:\\> $UpdatedDynDnsRecord = New-DynDnsRecord -IPv4Address 74.125.21.122
PS C:\\> Update-DynDnsRecord -DynDnsRecord $DynDnsRecord -UpdatedDynDnsRecord $UpdatedDynDnsRecord -Confirm:$false
-Verbose
VERBOSE: The original record type matches the updated record type.
VERBOSE:
--------------------------------------------------------------------------------
Original DNS Record:
Address : 74.125.21.121
Zone : anovelidea.org
Name : www2.anovelidea.org
Type : A
TTL : 3600
VERBOSE:
--------------------------------------------------------------------------------
Update DNS Record Attributes::
Attribute Original Updated
--------- -------- -------
Address 74.125.21.121 74.125.21.122
--------------------------------------------------------------------------------
VERBOSE: Performing the operation "Update DNS A record" on target "www2.anovelidea.org".
VERBOSE: API-3.7.11 : INFO : BLL : update: Record updated
Address : 74.125.21.122
Zone : anovelidea.org
Name : www2.anovelidea.org
Type : A
TTL : 3600
Update the DNS A record for the hostname www2.anovelidea.org. Show the original record and the proposed changes.
RELATED LINKS
Online Version: https://powershell.anovelidea.org/modul ... ecord.html
Add-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html
Get-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html
Update an A Record (API) https://help.dyn.com/update-a-record-api/
Update TXT Record (API) https://help.dyn.com/update-txt-record-api/
Update CNAME Records (API) https://help.dyn.com/update-cname-records-api/
Update MX Record (API) https://help.dyn.com/update-mx-record-api/
Update SRV Records (API) https://help.dyn.com/update-srv-records-api/
Update PTR Record (API) https://help.dyn.com/update-ptr-record-api/
Update SOA Record (API) https://help.dyn.com/update-soa-record-api/