Skip to content

sohag1192/how-to-forward-dns-TCP-UDP-to-mikrotik-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

This GitHub repository provides a practical guide for forwarding DNS (TCP & UDP) traffic to a MikroTik router.


Author: Md. Sohag Rana
Live Demo: sohag1192.github.io/how-to-forward-dns-TCP-UDP-to-mikrotik-dns


๐Ÿ”ง Purpose

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.


๐Ÿ“‚ Key Files

  • V6 Script.txt: MikroTik RouterOS v6 script for DNS redirection
  • V7 Script.txt: MikroTik RouterOS v7 script (updated syntax and firewall rules)
  • index.html: Web-based documentation or visual explanation
  • css/ and img/: Styling and visual assets for the web interface

๐Ÿง  Use Case

  • Enforce DNS filtering (e.g., parental control, ad blocking)
  • Prevent users from bypassing local DNS by using external resolvers
  • Centralize DNS logging and monitoring

๐Ÿ› ๏ธ Technologies

  • 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.

Releases

No releases published

Packages

No packages published