1. Packages
  2. Routeros Provider
  3. API Docs
  4. IpDns
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

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",
    ],
});
Copy
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",
    ])
Copy
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
	})
}
Copy
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",
        },
    });

});
Copy
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());

    }
}
Copy
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
Copy

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)
public IpDns(String name, IpDnsArgs args)
public IpDns(String name, IpDnsArgs args, CustomResourceOptions options)
type: routeros:IpDns
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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:

AddressListExtraTime string
AllowRemoteRequests bool
Specifies whether to allow network requests.
CacheMaxTtl string
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
CacheSize double
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
DohMaxConcurrentQueries double
Specifies how many DoH concurrent queries are allowed.
DohMaxServerConnections double
Specifies how many concurrent connections to the DoH server are allowed.
DohTimeout string
Specifies how long to wait for query response from the DoH server.
IpDnsId string
MaxConcurrentQueries double
Specifies how much concurrent queries are allowed. Default: 100
MaxConcurrentTcpSessions double
Specifies how much concurrent TCP sessions are allowed. Default: 20
MaxUdpPacketSize double
Maximum size of allowed UDP packet. Default: 4096
MdnsRepeatIfaces List<string>
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
QueryServerTimeout string
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
QueryTotalTimeout string
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.
UseDohServer string
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.
VerifyDohCert bool
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.
AddressListExtraTime string
AllowRemoteRequests bool
Specifies whether to allow network requests.
CacheMaxTtl string
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
CacheSize float64
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
DohMaxConcurrentQueries float64
Specifies how many DoH concurrent queries are allowed.
DohMaxServerConnections float64
Specifies how many concurrent connections to the DoH server are allowed.
DohTimeout string
Specifies how long to wait for query response from the DoH server.
IpDnsId string
MaxConcurrentQueries float64
Specifies how much concurrent queries are allowed. Default: 100
MaxConcurrentTcpSessions float64
Specifies how much concurrent TCP sessions are allowed. Default: 20
MaxUdpPacketSize float64
Maximum size of allowed UDP packet. Default: 4096
MdnsRepeatIfaces []string
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
QueryServerTimeout string
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
QueryTotalTimeout string
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.
UseDohServer string
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.
VerifyDohCert bool
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.
addressListExtraTime String
allowRemoteRequests Boolean
Specifies whether to allow network requests.
cacheMaxTtl String
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
cacheSize Double
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
dohMaxConcurrentQueries Double
Specifies how many DoH concurrent queries are allowed.
dohMaxServerConnections Double
Specifies how many concurrent connections to the DoH server are allowed.
dohTimeout String
Specifies how long to wait for query response from the DoH server.
ipDnsId String
maxConcurrentQueries Double
Specifies how much concurrent queries are allowed. Default: 100
maxConcurrentTcpSessions Double
Specifies how much concurrent TCP sessions are allowed. Default: 20
maxUdpPacketSize Double
Maximum size of allowed UDP packet. Default: 4096
mdnsRepeatIfaces List<String>
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
queryServerTimeout String
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
queryTotalTimeout String
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.
useDohServer String
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.
verifyDohCert Boolean
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.
addressListExtraTime string
allowRemoteRequests boolean
Specifies whether to allow network requests.
cacheMaxTtl string
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
cacheSize number
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
dohMaxConcurrentQueries number
Specifies how many DoH concurrent queries are allowed.
dohMaxServerConnections number
Specifies how many concurrent connections to the DoH server are allowed.
dohTimeout string
Specifies how long to wait for query response from the DoH server.
ipDnsId string
maxConcurrentQueries number
Specifies how much concurrent queries are allowed. Default: 100
maxConcurrentTcpSessions number
Specifies how much concurrent TCP sessions are allowed. Default: 20
maxUdpPacketSize number
Maximum size of allowed UDP packet. Default: 4096
mdnsRepeatIfaces string[]
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
queryServerTimeout string
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
queryTotalTimeout string
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.
useDohServer string
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.
verifyDohCert boolean
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_extra_time str
allow_remote_requests bool
Specifies whether to allow network requests.
cache_max_ttl str
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_concurrent_queries float
Specifies how many DoH concurrent queries are allowed.
doh_max_server_connections float
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_id str
max_concurrent_queries float
Specifies how much concurrent queries are allowed. Default: 100
max_concurrent_tcp_sessions float
Specifies how much concurrent TCP sessions are allowed. Default: 20
max_udp_packet_size float
Maximum size of allowed UDP packet. Default: 4096
mdns_repeat_ifaces Sequence[str]
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
query_server_timeout str
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
query_total_timeout str
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_server str
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_cert bool
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.
addressListExtraTime String
allowRemoteRequests Boolean
Specifies whether to allow network requests.
cacheMaxTtl String
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
cacheSize Number
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
dohMaxConcurrentQueries Number
Specifies how many DoH concurrent queries are allowed.
dohMaxServerConnections Number
Specifies how many concurrent connections to the DoH server are allowed.
dohTimeout String
Specifies how long to wait for query response from the DoH server.
ipDnsId String
maxConcurrentQueries Number
Specifies how much concurrent queries are allowed. Default: 100
maxConcurrentTcpSessions Number
Specifies how much concurrent TCP sessions are allowed. Default: 20
maxUdpPacketSize Number
Maximum size of allowed UDP packet. Default: 4096
mdnsRepeatIfaces List<String>
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
queryServerTimeout String
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
queryTotalTimeout String
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.
useDohServer String
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.
verifyDohCert Boolean
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:

CacheUsed double
Shows the currently used cache size in KiB.
DynamicServers string
List of dynamically added DNS server from different services, for example, DHCP.
Id string
The provider-assigned unique ID for this managed resource.
CacheUsed float64
Shows the currently used cache size in KiB.
DynamicServers string
List of dynamically added DNS server from different services, for example, DHCP.
Id string
The provider-assigned unique ID for this managed resource.
cacheUsed Double
Shows the currently used cache size in KiB.
dynamicServers String
List of dynamically added DNS server from different services, for example, DHCP.
id String
The provider-assigned unique ID for this managed resource.
cacheUsed number
Shows the currently used cache size in KiB.
dynamicServers 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.
cacheUsed Number
Shows the currently used cache size in KiB.
dynamicServers 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AddressListExtraTime string
AllowRemoteRequests bool
Specifies whether to allow network requests.
CacheMaxTtl string
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
CacheSize double
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
CacheUsed double
Shows the currently used cache size in KiB.
DohMaxConcurrentQueries double
Specifies how many DoH concurrent queries are allowed.
DohMaxServerConnections double
Specifies how many concurrent connections to the DoH server are allowed.
DohTimeout string
Specifies how long to wait for query response from the DoH server.
DynamicServers string
List of dynamically added DNS server from different services, for example, DHCP.
IpDnsId string
MaxConcurrentQueries double
Specifies how much concurrent queries are allowed. Default: 100
MaxConcurrentTcpSessions double
Specifies how much concurrent TCP sessions are allowed. Default: 20
MaxUdpPacketSize double
Maximum size of allowed UDP packet. Default: 4096
MdnsRepeatIfaces List<string>
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
QueryServerTimeout string
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
QueryTotalTimeout string
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.
UseDohServer string
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.
VerifyDohCert bool
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.
AddressListExtraTime string
AllowRemoteRequests bool
Specifies whether to allow network requests.
CacheMaxTtl string
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
CacheSize float64
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
CacheUsed float64
Shows the currently used cache size in KiB.
DohMaxConcurrentQueries float64
Specifies how many DoH concurrent queries are allowed.
DohMaxServerConnections float64
Specifies how many concurrent connections to the DoH server are allowed.
DohTimeout string
Specifies how long to wait for query response from the DoH server.
DynamicServers string
List of dynamically added DNS server from different services, for example, DHCP.
IpDnsId string
MaxConcurrentQueries float64
Specifies how much concurrent queries are allowed. Default: 100
MaxConcurrentTcpSessions float64
Specifies how much concurrent TCP sessions are allowed. Default: 20
MaxUdpPacketSize float64
Maximum size of allowed UDP packet. Default: 4096
MdnsRepeatIfaces []string
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
QueryServerTimeout string
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
QueryTotalTimeout string
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.
UseDohServer string
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.
VerifyDohCert bool
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.
addressListExtraTime String
allowRemoteRequests Boolean
Specifies whether to allow network requests.
cacheMaxTtl String
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
cacheSize Double
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
cacheUsed Double
Shows the currently used cache size in KiB.
dohMaxConcurrentQueries Double
Specifies how many DoH concurrent queries are allowed.
dohMaxServerConnections Double
Specifies how many concurrent connections to the DoH server are allowed.
dohTimeout String
Specifies how long to wait for query response from the DoH server.
dynamicServers String
List of dynamically added DNS server from different services, for example, DHCP.
ipDnsId String
maxConcurrentQueries Double
Specifies how much concurrent queries are allowed. Default: 100
maxConcurrentTcpSessions Double
Specifies how much concurrent TCP sessions are allowed. Default: 20
maxUdpPacketSize Double
Maximum size of allowed UDP packet. Default: 4096
mdnsRepeatIfaces List<String>
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
queryServerTimeout String
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
queryTotalTimeout String
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.
useDohServer String
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.
verifyDohCert Boolean
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.
addressListExtraTime string
allowRemoteRequests boolean
Specifies whether to allow network requests.
cacheMaxTtl string
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
cacheSize number
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
cacheUsed number
Shows the currently used cache size in KiB.
dohMaxConcurrentQueries number
Specifies how many DoH concurrent queries are allowed.
dohMaxServerConnections number
Specifies how many concurrent connections to the DoH server are allowed.
dohTimeout string
Specifies how long to wait for query response from the DoH server.
dynamicServers string
List of dynamically added DNS server from different services, for example, DHCP.
ipDnsId string
maxConcurrentQueries number
Specifies how much concurrent queries are allowed. Default: 100
maxConcurrentTcpSessions number
Specifies how much concurrent TCP sessions are allowed. Default: 20
maxUdpPacketSize number
Maximum size of allowed UDP packet. Default: 4096
mdnsRepeatIfaces string[]
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
queryServerTimeout string
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
queryTotalTimeout string
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.
useDohServer string
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.
verifyDohCert boolean
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_extra_time str
allow_remote_requests bool
Specifies whether to allow network requests.
cache_max_ttl str
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_concurrent_queries float
Specifies how many DoH concurrent queries are allowed.
doh_max_server_connections float
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_id str
max_concurrent_queries float
Specifies how much concurrent queries are allowed. Default: 100
max_concurrent_tcp_sessions float
Specifies how much concurrent TCP sessions are allowed. Default: 20
max_udp_packet_size float
Maximum size of allowed UDP packet. Default: 4096
mdns_repeat_ifaces Sequence[str]
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
query_server_timeout str
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
query_total_timeout str
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_server str
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_cert bool
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.
addressListExtraTime String
allowRemoteRequests Boolean
Specifies whether to allow network requests.
cacheMaxTtl String
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
cacheSize Number
Specifies the size of DNS cache in KiB (64..4294967295). Default: 2048
cacheUsed Number
Shows the currently used cache size in KiB.
dohMaxConcurrentQueries Number
Specifies how many DoH concurrent queries are allowed.
dohMaxServerConnections Number
Specifies how many concurrent connections to the DoH server are allowed.
dohTimeout String
Specifies how long to wait for query response from the DoH server.
dynamicServers String
List of dynamically added DNS server from different services, for example, DHCP.
ipDnsId String
maxConcurrentQueries Number
Specifies how much concurrent queries are allowed. Default: 100
maxConcurrentTcpSessions Number
Specifies how much concurrent TCP sessions are allowed. Default: 20
maxUdpPacketSize Number
Maximum size of allowed UDP packet. Default: 4096
mdnsRepeatIfaces List<String>
An option to enable mDNS repeater on specified interfaces. This option is available in RouterOS starting from version 7.16.
queryServerTimeout String
Specifies how long to wait for query response from one server. Time can be specified in milliseconds. Default: 2s
queryTotalTimeout String
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.
useDohServer String
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.
verifyDohCert Boolean
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.