Record set

Synopsis

Replace a record set.

Syntax

Set-EDNSRecordSet -Zone <String> -Name <String> -Type <String> -TTL <String> -RData <String[]> [-AutoIncrementSOA] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Set-EDNSRecordSet -Zone <String> -Body <Object> [-AutoIncrementSOA] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Replaces an existing record set with the provided values.

You can provide values individually (Name, Type, TTL, and more) or as a PSCustomObject.

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.

‑AutoIncrementSOA

When updating all records in a zone you must increase the serial number section of the SOA record before doing so. If this switch is present the existing serial number will be automatically incremented by 1.

‑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