Skip to content

dns forwarding #778

Open
Open
@0lzi

Description

@0lzi

Is your feature request related to a problem? Please describe.
Trying to configure dns forwarding with TF

Describe the solution you'd like
a resource like

resource "routeros_ip_dns_forwarders" "example_com" {
  name  = example.com
  dns_servers = [ "1.1.1.1" , "1.1.1.2"  ]
}

Documentation
If there is documentation describing the new resource, add it.

Configuration example

Configure/add a forwarder: 


/ip dns forwarders
add dns-servers=1.1.1.1,local.dns doh-servers=https://dns.google/dns-query name=forwarder1


Configure/add a statis DNS FWD entry:
/ip dns static
add forward-to=forwarder1 name=mikrotik.com type=FWD

Now each time when a router will receive request to resolve [mikrotik.com](http://mikrotik.com/), request using round-robin algorithm will be forwarded to 1.1.1.1, local.dns or Google DoH server.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions