import { UpdateRecordRequestBody } from "@vercel/sdk/models/updaterecordop.js";
let value: UpdateRecordRequestBody = {
name: "example-1",
value: "google.com",
type: "A",
ttl: 60,
srv: {
target: "example2.com.",
weight: 411626,
port: 20005,
priority: 943063,
},
https: {
priority: 990652,
target: "example2.com.",
},
comment: "used to verify ownership of domain",
};
Field |
Type |
Required |
Description |
Example |
name |
string |
➖ |
The name of the DNS record |
example-1 |
value |
string |
➖ |
The value of the DNS record |
google.com |
type |
models.UpdateRecordType |
➖ |
The type of the DNS record |
A |
ttl |
number |
➖ |
The Time to live (TTL) value of the DNS record |
60 |
mxPriority |
number |
➖ |
The MX priority value of the DNS record |
|
srv |
models.Srv |
➖ |
N/A |
|
https |
models.Https |
➖ |
N/A |
|
comment |
string |
➖ |
A comment to add context on what this DNS record is for |
used to verify ownership of domain |