routeros.DnsRecord
Explore with Pulumi AI
# routeros.DnsRecord (Resource)
This is an alias for backwards compatibility between plugin versions.
Please see documentation for routeros.IpDnsRecord
Create DnsRecord Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsRecord(name: string, args: DnsRecordArgs, opts?: CustomResourceOptions);
@overload
def DnsRecord(resource_name: str,
args: DnsRecordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnsRecord(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
mx_exchange: Optional[str] = None,
name: Optional[str] = None,
address_list: Optional[str] = None,
cname: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
dns_record_id: Optional[str] = None,
forward_to: Optional[str] = None,
match_subdomain: Optional[bool] = None,
___id_: Optional[float] = None,
address: Optional[str] = None,
ns: Optional[str] = None,
mx_preference: Optional[float] = None,
regexp: Optional[str] = None,
srv_port: Optional[float] = None,
srv_priority: Optional[float] = None,
srv_target: Optional[str] = None,
srv_weight: Optional[str] = None,
text: Optional[str] = None,
ttl: Optional[str] = None,
___path_: Optional[str] = None)
func NewDnsRecord(ctx *Context, name string, args DnsRecordArgs, opts ...ResourceOption) (*DnsRecord, error)
public DnsRecord(string name, DnsRecordArgs args, CustomResourceOptions? opts = null)
public DnsRecord(String name, DnsRecordArgs args)
public DnsRecord(String name, DnsRecordArgs args, CustomResourceOptions options)
type: routeros:DnsRecord
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DnsRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DnsRecordArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DnsRecordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsRecordArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DnsRecord Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DnsRecord resource accepts the following input properties:
- Type string
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- Address string
- The A record to be returend from the DNS hostname.
- Address
List string - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- Cname string
- Alias name for a domain name.
- Comment string
- Disabled bool
- Dns
Record stringId - Forward
To string - The IP address of a domain name server to which a particular DNS request must be forwarded.
- Match
Subdomain bool - Whether the record will match requests for subdomains.
- Mx
Exchange string - The domain name of the MX server.
- Mx
Preference double - Preference of the particular MX record.
- Name string
- The name of the DNS hostname to be created.
- Ns string
- Name of the authoritative domain name server for the particular record.
- Regexp string
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- Srv
Port double - The TCP or UDP port on which the service is to be found.
- Srv
Priority double - Priority of the particular SRV record.
- Srv
Target string - The canonical hostname of the machine providing the service ends in a dot.
- Srv
Weight string - Weight of the particular SRC record.
- Text string
- Textual information about the domain name.
- Ttl string
- The ttl of the DNS record.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Type string
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- Address string
- The A record to be returend from the DNS hostname.
- Address
List string - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- Cname string
- Alias name for a domain name.
- Comment string
- Disabled bool
- Dns
Record stringId - Forward
To string - The IP address of a domain name server to which a particular DNS request must be forwarded.
- Match
Subdomain bool - Whether the record will match requests for subdomains.
- Mx
Exchange string - The domain name of the MX server.
- Mx
Preference float64 - Preference of the particular MX record.
- Name string
- The name of the DNS hostname to be created.
- Ns string
- Name of the authoritative domain name server for the particular record.
- Regexp string
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- Srv
Port float64 - The TCP or UDP port on which the service is to be found.
- Srv
Priority float64 - Priority of the particular SRV record.
- Srv
Target string - The canonical hostname of the machine providing the service ends in a dot.
- Srv
Weight string - Weight of the particular SRC record.
- Text string
- Textual information about the domain name.
- Ttl string
- The ttl of the DNS record.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- type String
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- address String
- The A record to be returend from the DNS hostname.
- address
List String - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- cname String
- Alias name for a domain name.
- comment String
- disabled Boolean
- dns
Record StringId - forward
To String - The IP address of a domain name server to which a particular DNS request must be forwarded.
- match
Subdomain Boolean - Whether the record will match requests for subdomains.
- mx
Exchange String - The domain name of the MX server.
- mx
Preference Double - Preference of the particular MX record.
- name String
- The name of the DNS hostname to be created.
- ns String
- Name of the authoritative domain name server for the particular record.
- regexp String
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- srv
Port Double - The TCP or UDP port on which the service is to be found.
- srv
Priority Double - Priority of the particular SRV record.
- srv
Target String - The canonical hostname of the machine providing the service ends in a dot.
- srv
Weight String - Weight of the particular SRC record.
- text String
- Textual information about the domain name.
- ttl String
- The ttl of the DNS record.
- type string
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- address string
- The A record to be returend from the DNS hostname.
- address
List string - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- cname string
- Alias name for a domain name.
- comment string
- disabled boolean
- dns
Record stringId - forward
To string - The IP address of a domain name server to which a particular DNS request must be forwarded.
- match
Subdomain boolean - Whether the record will match requests for subdomains.
- mx
Exchange string - The domain name of the MX server.
- mx
Preference number - Preference of the particular MX record.
- name string
- The name of the DNS hostname to be created.
- ns string
- Name of the authoritative domain name server for the particular record.
- regexp string
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- srv
Port number - The TCP or UDP port on which the service is to be found.
- srv
Priority number - Priority of the particular SRV record.
- srv
Target string - The canonical hostname of the machine providing the service ends in a dot.
- srv
Weight string - Weight of the particular SRC record.
- text string
- Textual information about the domain name.
- ttl string
- The ttl of the DNS record.
- type str
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- address str
- The A record to be returend from the DNS hostname.
- address_
list str - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- cname str
- Alias name for a domain name.
- comment str
- disabled bool
- dns_
record_ strid - forward_
to str - The IP address of a domain name server to which a particular DNS request must be forwarded.
- match_
subdomain bool - Whether the record will match requests for subdomains.
- mx_
exchange str - The domain name of the MX server.
- mx_
preference float - Preference of the particular MX record.
- name str
- The name of the DNS hostname to be created.
- ns str
- Name of the authoritative domain name server for the particular record.
- regexp str
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- srv_
port float - The TCP or UDP port on which the service is to be found.
- srv_
priority float - Priority of the particular SRV record.
- srv_
target str - The canonical hostname of the machine providing the service ends in a dot.
- srv_
weight str - Weight of the particular SRC record.
- text str
- Textual information about the domain name.
- ttl str
- The ttl of the DNS record.
- type String
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- address String
- The A record to be returend from the DNS hostname.
- address
List String - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- cname String
- Alias name for a domain name.
- comment String
- disabled Boolean
- dns
Record StringId - forward
To String - The IP address of a domain name server to which a particular DNS request must be forwarded.
- match
Subdomain Boolean - Whether the record will match requests for subdomains.
- mx
Exchange String - The domain name of the MX server.
- mx
Preference Number - Preference of the particular MX record.
- name String
- The name of the DNS hostname to be created.
- ns String
- Name of the authoritative domain name server for the particular record.
- regexp String
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- srv
Port Number - The TCP or UDP port on which the service is to be found.
- srv
Priority Number - Priority of the particular SRV record.
- srv
Target String - The canonical hostname of the machine providing the service ends in a dot.
- srv
Weight String - Weight of the particular SRC record.
- text String
- Textual information about the domain name.
- ttl String
- The ttl of the DNS record.
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsRecord resource produces the following output properties:
Look up Existing DnsRecord Resource
Get an existing DnsRecord resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DnsRecordState, opts?: CustomResourceOptions): DnsRecord
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
address: Optional[str] = None,
address_list: Optional[str] = None,
cname: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
dns_record_id: Optional[str] = None,
dynamic: Optional[bool] = None,
forward_to: Optional[str] = None,
match_subdomain: Optional[bool] = None,
mx_exchange: Optional[str] = None,
mx_preference: Optional[float] = None,
name: Optional[str] = None,
ns: Optional[str] = None,
regexp: Optional[str] = None,
srv_port: Optional[float] = None,
srv_priority: Optional[float] = None,
srv_target: Optional[str] = None,
srv_weight: Optional[str] = None,
text: Optional[str] = None,
ttl: Optional[str] = None,
type: Optional[str] = None) -> DnsRecord
func GetDnsRecord(ctx *Context, name string, id IDInput, state *DnsRecordState, opts ...ResourceOption) (*DnsRecord, error)
public static DnsRecord Get(string name, Input<string> id, DnsRecordState? state, CustomResourceOptions? opts = null)
public static DnsRecord get(String name, Output<String> id, DnsRecordState state, CustomResourceOptions options)
resources: _: type: routeros:DnsRecord get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address string
- The A record to be returend from the DNS hostname.
- Address
List string - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- Cname string
- Alias name for a domain name.
- Comment string
- Disabled bool
- Dns
Record stringId - Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Forward
To string - The IP address of a domain name server to which a particular DNS request must be forwarded.
- Match
Subdomain bool - Whether the record will match requests for subdomains.
- Mx
Exchange string - The domain name of the MX server.
- Mx
Preference double - Preference of the particular MX record.
- Name string
- The name of the DNS hostname to be created.
- Ns string
- Name of the authoritative domain name server for the particular record.
- Regexp string
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- Srv
Port double - The TCP or UDP port on which the service is to be found.
- Srv
Priority double - Priority of the particular SRV record.
- Srv
Target string - The canonical hostname of the machine providing the service ends in a dot.
- Srv
Weight string - Weight of the particular SRC record.
- Text string
- Textual information about the domain name.
- Ttl string
- The ttl of the DNS record.
- Type string
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Address string
- The A record to be returend from the DNS hostname.
- Address
List string - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- Cname string
- Alias name for a domain name.
- Comment string
- Disabled bool
- Dns
Record stringId - Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Forward
To string - The IP address of a domain name server to which a particular DNS request must be forwarded.
- Match
Subdomain bool - Whether the record will match requests for subdomains.
- Mx
Exchange string - The domain name of the MX server.
- Mx
Preference float64 - Preference of the particular MX record.
- Name string
- The name of the DNS hostname to be created.
- Ns string
- Name of the authoritative domain name server for the particular record.
- Regexp string
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- Srv
Port float64 - The TCP or UDP port on which the service is to be found.
- Srv
Priority float64 - Priority of the particular SRV record.
- Srv
Target string - The canonical hostname of the machine providing the service ends in a dot.
- Srv
Weight string - Weight of the particular SRC record.
- Text string
- Textual information about the domain name.
- Ttl string
- The ttl of the DNS record.
- Type string
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- address String
- The A record to be returend from the DNS hostname.
- address
List String - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- cname String
- Alias name for a domain name.
- comment String
- disabled Boolean
- dns
Record StringId - dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forward
To String - The IP address of a domain name server to which a particular DNS request must be forwarded.
- match
Subdomain Boolean - Whether the record will match requests for subdomains.
- mx
Exchange String - The domain name of the MX server.
- mx
Preference Double - Preference of the particular MX record.
- name String
- The name of the DNS hostname to be created.
- ns String
- Name of the authoritative domain name server for the particular record.
- regexp String
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- srv
Port Double - The TCP or UDP port on which the service is to be found.
- srv
Priority Double - Priority of the particular SRV record.
- srv
Target String - The canonical hostname of the machine providing the service ends in a dot.
- srv
Weight String - Weight of the particular SRC record.
- text String
- Textual information about the domain name.
- ttl String
- The ttl of the DNS record.
- type String
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- address string
- The A record to be returend from the DNS hostname.
- address
List string - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- cname string
- Alias name for a domain name.
- comment string
- disabled boolean
- dns
Record stringId - dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forward
To string - The IP address of a domain name server to which a particular DNS request must be forwarded.
- match
Subdomain boolean - Whether the record will match requests for subdomains.
- mx
Exchange string - The domain name of the MX server.
- mx
Preference number - Preference of the particular MX record.
- name string
- The name of the DNS hostname to be created.
- ns string
- Name of the authoritative domain name server for the particular record.
- regexp string
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- srv
Port number - The TCP or UDP port on which the service is to be found.
- srv
Priority number - Priority of the particular SRV record.
- srv
Target string - The canonical hostname of the machine providing the service ends in a dot.
- srv
Weight string - Weight of the particular SRC record.
- text string
- Textual information about the domain name.
- ttl string
- The ttl of the DNS record.
- type string
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- address str
- The A record to be returend from the DNS hostname.
- address_
list str - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- cname str
- Alias name for a domain name.
- comment str
- disabled bool
- dns_
record_ strid - dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forward_
to str - The IP address of a domain name server to which a particular DNS request must be forwarded.
- match_
subdomain bool - Whether the record will match requests for subdomains.
- mx_
exchange str - The domain name of the MX server.
- mx_
preference float - Preference of the particular MX record.
- name str
- The name of the DNS hostname to be created.
- ns str
- Name of the authoritative domain name server for the particular record.
- regexp str
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- srv_
port float - The TCP or UDP port on which the service is to be found.
- srv_
priority float - Priority of the particular SRV record.
- srv_
target str - The canonical hostname of the machine providing the service ends in a dot.
- srv_
weight str - Weight of the particular SRC record.
- text str
- Textual information about the domain name.
- ttl str
- The ttl of the DNS record.
- type str
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- address String
- The A record to be returend from the DNS hostname.
- address
List String - Name of the Firewall address list to which address must be dynamically added when some request matches the entry.
- cname String
- Alias name for a domain name.
- comment String
- disabled Boolean
- dns
Record StringId - dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forward
To String - The IP address of a domain name server to which a particular DNS request must be forwarded.
- match
Subdomain Boolean - Whether the record will match requests for subdomains.
- mx
Exchange String - The domain name of the MX server.
- mx
Preference Number - Preference of the particular MX record.
- name String
- The name of the DNS hostname to be created.
- ns String
- Name of the authoritative domain name server for the particular record.
- regexp String
- DNS regexp. Regexp entries are case sensitive, but since DNS requests are not case sensitive, RouterOS converts DNS names to lowercase, you should write regex only with lowercase letters.
- srv
Port Number - The TCP or UDP port on which the service is to be found.
- srv
Priority Number - Priority of the particular SRV record.
- srv
Target String - The canonical hostname of the machine providing the service ends in a dot.
- srv
Weight String - Weight of the particular SRC record.
- text String
- Textual information about the domain name.
- ttl String
- The ttl of the DNS record.
- type String
- Type of the DNS record. Available values are: A, AAAA, CNAME, FWD, MX, NS, NXDOMAIN, SRV, TXT
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.