< Back

Add-DynDnsRecord

Sat Jan 18, 2020 8:14 pm

NAME Add-DynDnsRecord



SYNOPSIS

Creates a new DNS record of the specified type at the indicated zone/node level.





SYNTAX

Add-DynDnsRecord [-Zone] <String> [[-Node] <String>] [-DynDnsRecord] <DynDnsRecord> [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

Creates a new DNS record of the specified type at the indicated zone/node level.



Currently, adding the following DNS record types are supported:



* A



* TXT



* CNAME



* MX



* SRV



* PTR





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 DynDnsRecord object.



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Node <String>

A node in the specified zone. If the node does not end with the domain of the zone, it will be appended.



Required? false

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



-Zone <String>

The zone in which to create the DNS record.



Required? true

Position? 0

Default value None

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:\\> Add-DynDnsRecord -Zone anovelidea.org -Node www -DynDnsRecord (New-DynDnsRecord -IPv4Address

74.125..21.121)



Confirm

Are you sure you want to perform this action?

Performing the operation "Adding DNS record" on target "A - www.anovelidea.org".

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y



Address : 74.125.21.121

Zone : anovelidea.org

Name : www.anovelidea.org

Type : A

TTL : 3600



Add an A record for the hostname www.anovelidea.org.

-------------------------- Example 2 --------------------------



PS C:\\> Add-DynDnsRecord -Zone anovelidea.org -DynDnsRecord (New-DynDnsRecord -Text "testing" )



Confirm

Are you sure you want to perform this action?

Performing the operation "Adding DNS record" on target "TXT - anovelidea.org".

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y





Strings : {testing}

Zone : anovelidea.org

Name : anovelidea.org

Type : TXT

TTL : 3600



Add a TXT record to the root of the zone anovelidea.org.

-------------------------- Example 3 --------------------------



PS C:\\> Add-DynDnsRecord -Zone anovelidea.org -Node www3 -DynDnsRecord (New-DynDnsRecord -IPv4Address

74.125.21.121)



Confirm

Are you sure you want to perform this action?

Performing the operation "Adding DNS record" on target "A - www3.anovelidea.org".

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y

WARNING: API-3.7.11 : ERROR : DYN : TARGET_EXISTS : make: Cannot duplicate existing record data



Demonstrates an attempt to add an a record that currently exists.



RELATED LINKS

Online Version: https://powershell.anovelidea.org/modul ... ecord.html

Get-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html

Update-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html

Remove-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html

Create an A Record (API) https://help.dyn.com/create-a-record-api/

Create CNAME Records (API) https://help.dyn.com/create-cname-records-api/

Create MX Record (API) https://help.dyn.com/create-mx-record-api/

Create PTR Record (API) https://help.dyn.com/create-ptr-record-api/

Create SRV Record (API) https://help.dyn.com/create-srv-record-api/

Create TXT Record (API) https://help.dyn.com/create-txt-record-api/