This GitHub repository provides a practical guide for forwarding DNS (TCP & UDP) traffic to a MikroTik router.
๐ Repository: how-to-forward-dns-TCP-UDP-to-mikrotik-dns
Author: Md. Sohag Rana
Live Demo: sohag1192.github.io/how-to-forward-dns-TCP-UDP-to-mikrotik-dns
This project demonstrates how to redirect all DNS traffic (both TCP and UDP on port 53) from your network to a MikroTik router, ensuring centralized DNS resolution and filtering.
V6 Script.txt: MikroTik RouterOS v6 script for DNS redirectionV7 Script.txt: MikroTik RouterOS v7 script (updated syntax and firewall rules)index.html: Web-based documentation or visual explanationcss/andimg/: Styling and visual assets for the web interface
- Enforce DNS filtering (e.g., parental control, ad blocking)
- Prevent users from bypassing local DNS by using external resolvers
- Centralize DNS logging and monitoring
- MikroTik RouterOS scripting
- HTML/CSS for documentation
- No backend or server-side code required
Would you like me to extract and explain the v6 or v7 MikroTik script logic in detail? I can also help you adapt it for your specific IP ranges or VLAN setup.