Record set

New-EdnsRecordSet

Synopsis

Create record sets.

Syntax

New-EdnsRecordSet -Zone <String> -Name <String> -Type <String> -TTL <String> -RData <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-EdnsRecordSet -Zone <String> -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Creates one or more new record sets for this zone. Single records can be supplied as individual attributes (Name, Type, TTL, and more) , or you can construct a JSON string or PSCustomObject with a top-level property named recordsets, which is an array of such entries.

If any record set fails to create, for example, because a record set with that name and type already exists, the entire operation fails.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑Body
Conditionally required

A request body, either as a PSCustomObject or a string. This parameter supports pipelining.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑Name
Conditionally required

A domain name, including the parent zone.

‑RData
Conditionally required

An array or a comma-separated string. Each entry encodes the rdata for a single record. If you want to have three A records, you need three strings in the array. Each string is encoded in master file format. RFC 1035 defines the master file format for most record types.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑TTL
Conditionally required

The number of seconds that this record should live in a resolver's cache before being refetched.

‑Type
Conditionally required

The record set type.

‑Zone
Required

Your zone's name

Related Links

User Guide: Overview