Provides a INWX nameserver record resource. A zone has to exist to add records to it. The zone can be created with inwx_nameserver.
resource "inwx_nameserver_record" "example_com_txt_1" {
domain = "example.com"
type = "TXT"
content = "DNS records with terraform"
}
domain
- (Required) Name of the domaintype
- (Required) Type of the nameserver record. One of:A
,AAAA
,AFSDB
,ALIAS
,CAA
,CERT
,CNAME
,HINFO
,KEY
,LOC
,MX
,NAPTR
,NS
,OPENPGPKEY
,PTR
,RP
,SMIMEA
,SOA
,SRV
,SSHFP
,TLSA
,TXT
,URI
,URL
ro_id
- (Optional) DNS domain idcontent
- (Required) Content of the nameserver recordname
- (Optional) Name of the nameserver recordttl
- (Optional) TTL (time to live) of the nameserver record. Default:3600
prio
- (Optional) Priority of the nameserver record. Default:0
url_redirect_type
- (Optional) Type of the url redirection. One of:HEADER301
,HEADER302
,FRAME
url_redirect_title
- (Optional) Title of the frame redirectionurl_redirect_description
- (Optional) Description of the frame redirectionurl_redirect_fav_icon
- (Optional) FavIcon of the frame redirectionurl_redirect_keywords
- (Optional) Keywords of the frame redirectionurl_append
- (Optional) Append the path for redirection. Default:false
testing
- (Optional) Execute command in testing mode. Default:false
In addition to all arguments above, the following attributes are exported:
id
- Id of the nameserver record
INWX nameserver records can be imported using the id
, e.g.,
$ terraform import inwx_nameserver_record example.com:2147483647