how to setup local domain on mikrotik router
1 min read

how to setup local domain on mikrotik router


ip address dan dhcp-server

/ip address
add address= interface=bridge1 network=
/ip pool
add name=dhcp_pool0 ranges=
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=bridge1 lease-time=3d10m name=dhcp1
/ip dhcp-server network
add address= dns-server= gateway=

ip dns

/ip dns
set allow-remote-requests=yes servers=
/ip dns static
add address=


/ip firewall layer7-protocol
add name=anshari regexp=""
/ip firewall mangle
add action=mark-packet chain=prerouting dst-address-type=local dst-port=53 layer7-protocol=anshari new-packet-mark=forwarded-dns passthrough=yes protocol=udp
/ip firewall nat
add action=dst-nat chain=dstnat packet-mark=forwarded-dns to-addresses=
add action=masquerade chain=srcnat