routeros.IpDns
Explore with Pulumi AI
# routeros.IpDns (Resource)
A MikroTik router with DNS feature enabled can be set as a DNS server for any DNS-compliant client.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const dns_server = new routeros.IpDns("dns-server", {
allowRemoteRequests: true,
servers: [
"2606:4700:4700::1111,1.1.1.1",
"2606:4700:4700::1001,1.0.0.1",
],
});
import pulumi
import pulumi_routeros as routeros
dns_server = routeros.IpDns("dns-server",
allow_remote_requests=True,
servers=[
"2606:4700:4700::1111,1.1.1.1",
"2606:4700:4700::1001,1.0.0.1",
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := routeros.NewIpDns(ctx, "dns-server", &routeros.IpDnsArgs{
AllowRemoteRequests: pulumi.Bool(true),
Servers: pulumi.StringArray{
pulumi.String("2606:4700:4700::1111,1.1.1.1"),
pulumi.String("2606:4700:4700::1001,1.0.0.1"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;
return await Deployment.RunAsync(() =>
{
var dns_server = new Routeros.IpDns("dns-server", new()
{
AllowRemoteRequests = true,
Servers = new[]
{
"2606:4700:4700::1111,1.1.1.1",
"2606:4700:4700::1001,1.0.0.1",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.IpDns;
import com.pulumi.routeros.IpDnsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var dns_server = new IpDns("dns-server", IpDnsArgs.builder()
.allowRemoteRequests(true)
.servers(
"2606:4700:4700::1111,1.1.1.1",
"2606:4700:4700::1001,1.0.0.1")
.build());
}
}
resources:
dns-server:
type: routeros:IpDns
properties:
allowRemoteRequests: true
servers:
- 2606:4700:4700::1111,1.1.1.1
- 2606:4700:4700::1001,1.0.0.1
Create IpDns Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpDns(name: string, args?: IpDnsArgs, opts?: CustomResourceOptions);
@overload
def IpDns(resource_name: str,
args: Optional[IpDnsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IpDns(resource_name: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
address_list_extra_time: Optional[str] = None,
allow_remote_requests: Optional[bool] = None,
cache_max_ttl: Optional[str] = None,
cache_size: Optional[float] = None,
doh_max_concurrent_queries: Optional[float] = None,
doh_max_server_connections: Optional[float] = None,
doh_timeout: Optional[str] = None,
ip_dns_id: Optional[str] = None,
max_concurrent_queries: Optional[float] = None,
max_concurrent_tcp_sessions: Optional[float] = None,
max_udp_packet_size: Optional[float] = None,
mdns_repeat_ifaces: Optional[Sequence[str]] = None,
query_server_timeout: Optional[str] = None,
query_total_timeout: Optional[str] = None,
servers: Optional[Sequence[str]] = None,
use_doh_server: Optional[str] = None,
verify_doh_cert: Optional[bool] = None,
vrf: Optional[str] = None)
func NewIpDns(ctx *Context, name string, args *IpDnsArgs, opts ...ResourceOption) (*IpDns, error)
public IpDns(string name, IpDnsArgs? args = null, CustomResourceOptions? opts = null)
type: routeros:IpDns
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 IpDnsArgs
- 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 IpDnsArgs
- 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 IpDnsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpDnsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpDnsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IpDns 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 IpDns resource accepts the following input properties:
- Address
List stringExtra Time - Allow
Remote boolRequests - Specifies whether to allow network requests.
- Cache
Max stringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- Cache
Size double - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- Doh
Max doubleConcurrent Queries - Specifies how many DoH concurrent queries are allowed.
- Doh
Max doubleServer Connections - Specifies how many concurrent connections to the DoH server are allowed.
- Doh
Timeout string - Specifies how long to wait for query response from the DoH server.
- Ip
Dns stringId - Max
Concurrent doubleQueries - Specifies how much concurrent queries are allowed. Default: 100
- Max
Concurrent doubleTcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- Max
Udp doublePacket Size - Maximum size of allowed UDP packet. Default: 4096
- Mdns
Repeat List<string>Ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- Query
Server stringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- Query
Total stringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- Servers List<string>
- List of DNS server IPv4/IPv6 addresses.
- Use
Doh stringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- Verify
Doh boolCert - DoH certificate verification. See docs.
- Vrf string
- The VRF table this resource operates on.
- ___
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
List stringExtra Time - Allow
Remote boolRequests - Specifies whether to allow network requests.
- Cache
Max stringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- Cache
Size float64 - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- Doh
Max float64Concurrent Queries - Specifies how many DoH concurrent queries are allowed.
- Doh
Max float64Server Connections - Specifies how many concurrent connections to the DoH server are allowed.
- Doh
Timeout string - Specifies how long to wait for query response from the DoH server.
- Ip
Dns stringId - Max
Concurrent float64Queries - Specifies how much concurrent queries are allowed. Default: 100
- Max
Concurrent float64Tcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- Max
Udp float64Packet Size - Maximum size of allowed UDP packet. Default: 4096
- Mdns
Repeat []stringIfaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- Query
Server stringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- Query
Total stringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- Servers []string
- List of DNS server IPv4/IPv6 addresses.
- Use
Doh stringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- Verify
Doh boolCert - DoH certificate verification. See docs.
- Vrf string
- The VRF table this resource operates on.
- ___
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
List StringExtra Time - allow
Remote BooleanRequests - Specifies whether to allow network requests.
- cache
Max StringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- cache
Size Double - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- doh
Max DoubleConcurrent Queries - Specifies how many DoH concurrent queries are allowed.
- doh
Max DoubleServer Connections - Specifies how many concurrent connections to the DoH server are allowed.
- doh
Timeout String - Specifies how long to wait for query response from the DoH server.
- ip
Dns StringId - max
Concurrent DoubleQueries - Specifies how much concurrent queries are allowed. Default: 100
- max
Concurrent DoubleTcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- max
Udp DoublePacket Size - Maximum size of allowed UDP packet. Default: 4096
- mdns
Repeat List<String>Ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- query
Server StringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- query
Total StringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- servers List<String>
- List of DNS server IPv4/IPv6 addresses.
- use
Doh StringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- verify
Doh BooleanCert - DoH certificate verification. See docs.
- vrf String
- The VRF table this resource operates on.
- ___
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
List stringExtra Time - allow
Remote booleanRequests - Specifies whether to allow network requests.
- cache
Max stringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- cache
Size number - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- doh
Max numberConcurrent Queries - Specifies how many DoH concurrent queries are allowed.
- doh
Max numberServer Connections - Specifies how many concurrent connections to the DoH server are allowed.
- doh
Timeout string - Specifies how long to wait for query response from the DoH server.
- ip
Dns stringId - max
Concurrent numberQueries - Specifies how much concurrent queries are allowed. Default: 100
- max
Concurrent numberTcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- max
Udp numberPacket Size - Maximum size of allowed UDP packet. Default: 4096
- mdns
Repeat string[]Ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- query
Server stringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- query
Total stringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- servers string[]
- List of DNS server IPv4/IPv6 addresses.
- use
Doh stringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- verify
Doh booleanCert - DoH certificate verification. See docs.
- vrf string
- The VRF table this resource operates on.
- ___
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_
list_ strextra_ time - allow_
remote_ boolrequests - Specifies whether to allow network requests.
- cache_
max_ strttl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- cache_
size float - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- doh_
max_ floatconcurrent_ queries - Specifies how many DoH concurrent queries are allowed.
- doh_
max_ floatserver_ connections - Specifies how many concurrent connections to the DoH server are allowed.
- doh_
timeout str - Specifies how long to wait for query response from the DoH server.
- ip_
dns_ strid - max_
concurrent_ floatqueries - Specifies how much concurrent queries are allowed. Default: 100
- max_
concurrent_ floattcp_ sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- max_
udp_ floatpacket_ size - Maximum size of allowed UDP packet. Default: 4096
- mdns_
repeat_ Sequence[str]ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- query_
server_ strtimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- query_
total_ strtimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- servers Sequence[str]
- List of DNS server IPv4/IPv6 addresses.
- use_
doh_ strserver - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- verify_
doh_ boolcert - DoH certificate verification. See docs.
- vrf str
- The VRF table this resource operates on.
- ___
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
List StringExtra Time - allow
Remote BooleanRequests - Specifies whether to allow network requests.
- cache
Max StringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- cache
Size Number - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- doh
Max NumberConcurrent Queries - Specifies how many DoH concurrent queries are allowed.
- doh
Max NumberServer Connections - Specifies how many concurrent connections to the DoH server are allowed.
- doh
Timeout String - Specifies how long to wait for query response from the DoH server.
- ip
Dns StringId - max
Concurrent NumberQueries - Specifies how much concurrent queries are allowed. Default: 100
- max
Concurrent NumberTcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- max
Udp NumberPacket Size - Maximum size of allowed UDP packet. Default: 4096
- mdns
Repeat List<String>Ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- query
Server StringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- query
Total StringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- servers List<String>
- List of DNS server IPv4/IPv6 addresses.
- use
Doh StringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- verify
Doh BooleanCert - DoH certificate verification. See docs.
- vrf String
- The VRF table this resource operates on.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpDns resource produces the following output properties:
- Cache
Used double - Shows the currently used cache size in KiB.
- Dynamic
Servers string - List of dynamically added DNS server from different services, for example, DHCP.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cache
Used float64 - Shows the currently used cache size in KiB.
- Dynamic
Servers string - List of dynamically added DNS server from different services, for example, DHCP.
- Id string
- The provider-assigned unique ID for this managed resource.
- cache
Used Double - Shows the currently used cache size in KiB.
- dynamic
Servers String - List of dynamically added DNS server from different services, for example, DHCP.
- id String
- The provider-assigned unique ID for this managed resource.
- cache
Used number - Shows the currently used cache size in KiB.
- dynamic
Servers string - List of dynamically added DNS server from different services, for example, DHCP.
- id string
- The provider-assigned unique ID for this managed resource.
- cache_
used float - Shows the currently used cache size in KiB.
- dynamic_
servers str - List of dynamically added DNS server from different services, for example, DHCP.
- id str
- The provider-assigned unique ID for this managed resource.
- cache
Used Number - Shows the currently used cache size in KiB.
- dynamic
Servers String - List of dynamically added DNS server from different services, for example, DHCP.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing IpDns Resource
Get an existing IpDns 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?: IpDnsState, opts?: CustomResourceOptions): IpDns
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
address_list_extra_time: Optional[str] = None,
allow_remote_requests: Optional[bool] = None,
cache_max_ttl: Optional[str] = None,
cache_size: Optional[float] = None,
cache_used: Optional[float] = None,
doh_max_concurrent_queries: Optional[float] = None,
doh_max_server_connections: Optional[float] = None,
doh_timeout: Optional[str] = None,
dynamic_servers: Optional[str] = None,
ip_dns_id: Optional[str] = None,
max_concurrent_queries: Optional[float] = None,
max_concurrent_tcp_sessions: Optional[float] = None,
max_udp_packet_size: Optional[float] = None,
mdns_repeat_ifaces: Optional[Sequence[str]] = None,
query_server_timeout: Optional[str] = None,
query_total_timeout: Optional[str] = None,
servers: Optional[Sequence[str]] = None,
use_doh_server: Optional[str] = None,
verify_doh_cert: Optional[bool] = None,
vrf: Optional[str] = None) -> IpDns
func GetIpDns(ctx *Context, name string, id IDInput, state *IpDnsState, opts ...ResourceOption) (*IpDns, error)
public static IpDns Get(string name, Input<string> id, IpDnsState? state, CustomResourceOptions? opts = null)
public static IpDns get(String name, Output<String> id, IpDnsState state, CustomResourceOptions options)
resources: _: type: routeros:IpDns 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
List stringExtra Time - Allow
Remote boolRequests - Specifies whether to allow network requests.
- Cache
Max stringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- Cache
Size double - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- Cache
Used double - Shows the currently used cache size in KiB.
- Doh
Max doubleConcurrent Queries - Specifies how many DoH concurrent queries are allowed.
- Doh
Max doubleServer Connections - Specifies how many concurrent connections to the DoH server are allowed.
- Doh
Timeout string - Specifies how long to wait for query response from the DoH server.
- Dynamic
Servers string - List of dynamically added DNS server from different services, for example, DHCP.
- Ip
Dns stringId - Max
Concurrent doubleQueries - Specifies how much concurrent queries are allowed. Default: 100
- Max
Concurrent doubleTcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- Max
Udp doublePacket Size - Maximum size of allowed UDP packet. Default: 4096
- Mdns
Repeat List<string>Ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- Query
Server stringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- Query
Total stringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- Servers List<string>
- List of DNS server IPv4/IPv6 addresses.
- Use
Doh stringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- Verify
Doh boolCert - DoH certificate verification. See docs.
- Vrf string
- The VRF table this resource operates on.
- ___
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
List stringExtra Time - Allow
Remote boolRequests - Specifies whether to allow network requests.
- Cache
Max stringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- Cache
Size float64 - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- Cache
Used float64 - Shows the currently used cache size in KiB.
- Doh
Max float64Concurrent Queries - Specifies how many DoH concurrent queries are allowed.
- Doh
Max float64Server Connections - Specifies how many concurrent connections to the DoH server are allowed.
- Doh
Timeout string - Specifies how long to wait for query response from the DoH server.
- Dynamic
Servers string - List of dynamically added DNS server from different services, for example, DHCP.
- Ip
Dns stringId - Max
Concurrent float64Queries - Specifies how much concurrent queries are allowed. Default: 100
- Max
Concurrent float64Tcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- Max
Udp float64Packet Size - Maximum size of allowed UDP packet. Default: 4096
- Mdns
Repeat []stringIfaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- Query
Server stringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- Query
Total stringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- Servers []string
- List of DNS server IPv4/IPv6 addresses.
- Use
Doh stringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- Verify
Doh boolCert - DoH certificate verification. See docs.
- Vrf string
- The VRF table this resource operates on.
- ___
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
List StringExtra Time - allow
Remote BooleanRequests - Specifies whether to allow network requests.
- cache
Max StringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- cache
Size Double - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- cache
Used Double - Shows the currently used cache size in KiB.
- doh
Max DoubleConcurrent Queries - Specifies how many DoH concurrent queries are allowed.
- doh
Max DoubleServer Connections - Specifies how many concurrent connections to the DoH server are allowed.
- doh
Timeout String - Specifies how long to wait for query response from the DoH server.
- dynamic
Servers String - List of dynamically added DNS server from different services, for example, DHCP.
- ip
Dns StringId - max
Concurrent DoubleQueries - Specifies how much concurrent queries are allowed. Default: 100
- max
Concurrent DoubleTcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- max
Udp DoublePacket Size - Maximum size of allowed UDP packet. Default: 4096
- mdns
Repeat List<String>Ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- query
Server StringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- query
Total StringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- servers List<String>
- List of DNS server IPv4/IPv6 addresses.
- use
Doh StringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- verify
Doh BooleanCert - DoH certificate verification. See docs.
- vrf String
- The VRF table this resource operates on.
- ___
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
List stringExtra Time - allow
Remote booleanRequests - Specifies whether to allow network requests.
- cache
Max stringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- cache
Size number - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- cache
Used number - Shows the currently used cache size in KiB.
- doh
Max numberConcurrent Queries - Specifies how many DoH concurrent queries are allowed.
- doh
Max numberServer Connections - Specifies how many concurrent connections to the DoH server are allowed.
- doh
Timeout string - Specifies how long to wait for query response from the DoH server.
- dynamic
Servers string - List of dynamically added DNS server from different services, for example, DHCP.
- ip
Dns stringId - max
Concurrent numberQueries - Specifies how much concurrent queries are allowed. Default: 100
- max
Concurrent numberTcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- max
Udp numberPacket Size - Maximum size of allowed UDP packet. Default: 4096
- mdns
Repeat string[]Ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- query
Server stringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- query
Total stringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- servers string[]
- List of DNS server IPv4/IPv6 addresses.
- use
Doh stringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- verify
Doh booleanCert - DoH certificate verification. See docs.
- vrf string
- The VRF table this resource operates on.
- ___
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_
list_ strextra_ time - allow_
remote_ boolrequests - Specifies whether to allow network requests.
- cache_
max_ strttl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- cache_
size float - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- cache_
used float - Shows the currently used cache size in KiB.
- doh_
max_ floatconcurrent_ queries - Specifies how many DoH concurrent queries are allowed.
- doh_
max_ floatserver_ connections - Specifies how many concurrent connections to the DoH server are allowed.
- doh_
timeout str - Specifies how long to wait for query response from the DoH server.
- dynamic_
servers str - List of dynamically added DNS server from different services, for example, DHCP.
- ip_
dns_ strid - max_
concurrent_ floatqueries - Specifies how much concurrent queries are allowed. Default: 100
- max_
concurrent_ floattcp_ sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- max_
udp_ floatpacket_ size - Maximum size of allowed UDP packet. Default: 4096
- mdns_
repeat_ Sequence[str]ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- query_
server_ strtimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- query_
total_ strtimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- servers Sequence[str]
- List of DNS server IPv4/IPv6 addresses.
- use_
doh_ strserver - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- verify_
doh_ boolcert - DoH certificate verification. See docs.
- vrf str
- The VRF table this resource operates on.
- ___
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
List StringExtra Time - allow
Remote BooleanRequests - Specifies whether to allow network requests.
- cache
Max StringTtl - Maximum time-to-live for cache records. In other words, cache records will expire unconditionally after cache-max-ttl time. Shorter TTL received from DNS servers are respected. Default: 1w
- cache
Size Number - Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
- cache
Used Number - Shows the currently used cache size in KiB.
- doh
Max NumberConcurrent Queries - Specifies how many DoH concurrent queries are allowed.
- doh
Max NumberServer Connections - Specifies how many concurrent connections to the DoH server are allowed.
- doh
Timeout String - Specifies how long to wait for query response from the DoH server.
- dynamic
Servers String - List of dynamically added DNS server from different services, for example, DHCP.
- ip
Dns StringId - max
Concurrent NumberQueries - Specifies how much concurrent queries are allowed. Default: 100
- max
Concurrent NumberTcp Sessions - Specifies how much concurrent TCP sessions are allowed. Default: 20
- max
Udp NumberPacket Size - Maximum size of allowed UDP packet. Default: 4096
- mdns
Repeat List<String>Ifaces - An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
- query
Server StringTimeout - Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
- query
Total StringTimeout - Specifies how long to wait for query response in total. Note that this setting must be configured taking into account query_server_timeout and number of used DNS server. Time can be specified in milliseconds. Default: 10s
- servers List<String>
- List of DNS server IPv4/IPv6 addresses.
- use
Doh StringServer - DNS over HTTPS (DoH) server URL. > Mikrotik strongly suggest not use third-party download links for certificate fetching. Use the Certificate Authority's own website. > RouterOS prioritize DoH over DNS server if both are configured on the device.
- verify
Doh BooleanCert - DoH certificate verification. See docs.
- vrf String
- The VRF table this resource operates on.
Import
#The DNS Settings can not be imported.
#Terraform will ignore the current settings and will overwrite the current settings with the settings defined in Terraform.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.