# DnsRecordSet

- [JSON representation](https://docs.cloud.google.com/service-infrastructure/docs/service-networking/reference/rest/v1/DnsRecordSet#SCHEMA_REPRESENTATION)

Represents a DNS record set resource.

| JSON representation |
|---|
| ``` { "domain": string, "type": string, "ttl": string, "data": [ string ] } ``` |

| Fields ||
|---|---|
| `domain` | `string` Required. The DNS or domain name of the record set, e.g. `test.example.com`. Cloud DNS requires that a DNS suffix ends with a trailing dot. |
| `type` | `string` Required. The identifier of a supported record type. |
| `ttl` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Required. The period of time for which this RecordSet can be cached by resolvers. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `data[]` | `string` Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for examples see <https://cloud.google.com/dns/records/json-record>. |