File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 16
16
$ terraform import digitalocean_domain.site my-stamps.ru
17
17
$ terraform import digitalocean_record.www my-stamps.ru,<id>
18
18
$ terraform import digitalocean_record.no-www my-stamps.ru,<id>
19
+ $ terraform import digitalocean_record.ns1 my-stamps.ru,<id>
20
+ $ terraform import digitalocean_record.ns2 my-stamps.ru,<id>
21
+ $ terraform import digitalocean_record.ns3 my-stamps.ru,<id>
19
22
```
20
23
The ids can be obtained by API:
21
24
- https://developers.digitalocean.com/documentation/v2/#list-all-droplets
Original file line number Diff line number Diff line change @@ -36,3 +36,21 @@ resource "digitalocean_record" "www" {
36
36
name = " www"
37
37
value = digitalocean_droplet. web . ipv4_address
38
38
}
39
+ resource "digitalocean_record" "ns1" {
40
+ domain = digitalocean_domain. site . name
41
+ type = " NS"
42
+ name = " @" # <-- to match the current settings. It's better to use "ns1" instead
43
+ value = " ns1.digitalocean.com."
44
+ }
45
+ resource "digitalocean_record" "ns2" {
46
+ domain = digitalocean_domain. site . name
47
+ type = " NS"
48
+ name = " @" # <-- to match the current settings. It's better to use "ns2" instead
49
+ value = " ns2.digitalocean.com."
50
+ }
51
+ resource "digitalocean_record" "ns3" {
52
+ domain = digitalocean_domain. site . name
53
+ type = " NS"
54
+ name = " @" # <-- to match the current settings. It's better to use "ns3" instead
55
+ value = " ns3.digitalocean.com."
56
+ }
You can’t perform that action at this time.
0 commit comments