ByCloud Docs
GuidesCLIAPISDK

Create recordset

bycloud dns zones-recordsets --zone_id <zone_id> --name <name> [flags]

Create a new recordset in a DNS zone

Options

--zone_id

stringrequired

DNS Zone ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Body Options

--name

stringrequired

Record name (FQDN, must end with a dot)

--records

arrayrequired

--type

stringrequired

Values: "A", "AAAA", "CNAME", "MX", "NS", "PTR", "SOA", "SPF", "SRV", "SSHFP", "TXT", "CAA", "NAPTR"

--description

stringoptional

--ttl

integeroptional

Command

bycloud dns zones-recordsets \
--zone_id "abc-123" \
--name "my-resource" \
--type A

Output

Success