page_title | subcategory | description |
---|---|---|
solidserver_dns_rr Resource - SOLIDserver |
DNS RR resource allows to create and manage DNS resource records of type A, AAAA, PTR, CNAME, DNAME, NS. |
DNS RR resource allows to create and manage DNS resource records of type A, AAAA, PTR, CNAME, DNAME, NS.
resource "solidserver_dns_rr" "aaRecord" {
dnsserver = "ns.mycompany.priv"
dnsview = "Internal"
dnszone = "mycompany.priv"
name = "aarecord.mycompany.priv"
type = "A"
value = "127.0.0.1"
}
// In order to create a PTR, you can leverage the data-source "solidserver_ip_ptr"
// to generate the proper FQDN from an IP address
data "solidserver_ip_ptr" "myFirstIPPTR" {
address = "${solidserver_ip_address.myFirstIPAddress.address}"
}
resource "solidserver_dns_rr" "aaRecord" {
dnsserver = "ns.mycompany.priv"
dnsview = "Internal"
dnszone = "mycompany.priv"
name = "${solidserver_ip_ptr.myFirstIPPTR.dname}"
type = "PTR"
value = "myapp.mycompany.priv"
}
dnsserver
(String) The managed SMART DNS server name, or DNS server name hosting the RR's zone.name
(String) The Fully Qualified Domain Name of the RR to create.type
(String) The type of the RR to create (Supported: A, AAAA, PTR, CNAME, DNAME and NS).value
(String) The value od the RR to create.
class
(String) The class associated to the DNS view.class_parameters
(Map of String) The class parameters associated to the view.dnsview
(String) The View name of the RR to create.dnszone
(String) The Zone name of the RR to create.ttl
(Number) The DNS Time To Live of the RR to create.
id
(String) The ID of this resource.