Skip to content

Commit

Permalink
Added NS RRSet example in docs (#262)
Browse files Browse the repository at this point in the history
* Added NS RRSet example in docs
  • Loading branch information
dchudik authored Mar 28, 2024
1 parent 369286c commit 2542c31
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions website/docs/r/domains_rrset_v2.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@ resource "selectel_domains_rrset_v2" "mx_rrset_1" {
}
```

### NS RRSet

```hcl
resource "selectel_domains_rrset_v2" "ns_rrset_1" {
zone_id = selectel_domains_zone_v2.zone_1.id
name = "subdomain.example.com."
type = "NS"
ttl = 60
project_id = selectel_vpc_project_v2.project_1.id
records {
content = "a.ns.selectel.ru."
# The content value is "<name_server>"
}
}
```

### SRV RRSet

```hcl
Expand Down Expand Up @@ -160,9 +176,9 @@ resource "selectel_domains_rrset_v2" "caa_rrset_1" {

* `zone_id` - (Required) Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the [selectel_domains_zone_v2](https://registry.terraform.io/providers/selectel/selectel/latest/docs/resources/domains_zone_v2) resource.

* `name` - (Required) RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If `type` is `SRV`, the name must also include service and protocol, see the [example usage for SRV RRSet](https://registry.terraform.io/providers/selectel/selectel/latest/docs/resources/domains_rrset_v2#srv-rrset).
* `name` - (Required) RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If `type` is `NS`, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). If `type` is `SRV`, the name must also include service and protocol, see the [example usage for SRV RRSet](https://registry.terraform.io/providers/selectel/selectel/latest/docs/resources/domains_rrset_v2#srv-rrset).

* `type` - (Required) RRSet type. Changing this creates a new RRSet. Available types are `A`, `AAAA`, `TXT`, `CNAME`, `MX`, `SRV`, `SSHFP`, `ALIAS`, `CAA`.
* `type` - (Required) RRSet type. Changing this creates a new RRSet. Available types are `A`, `AAAA`, `TXT`, `CNAME`, `MX`, `NS`, `SRV`, `SSHFP`, `ALIAS`, `CAA`.

* `ttl` - (Required) RRSet time-to-live in seconds. The available range is from 60 to 604800.

Expand Down

0 comments on commit 2542c31

Please sign in to comment.