This tutorial guides you through two methods for changing the DNS servers on your MikroTik router: using the Winbox graphical interface and using the command line interface (CLI).
Prerequisites:
Method 1: Using Winbox
Download and install Winbox: Download and install Winbox from the official MikroTik website: https://mikrotik.com/download
Connect to your router: Open Winbox, enter your router's IP address in the "Connect to" field, and click "Connect."
Login: Enter your username and password and click "Login."
Go to IP settings: Navigate to IP > DNS.
Change server: Click the "Server" tab.
Add or edit servers:
To add a new server: Click the "+" button, enter the new DNS server IP address in the "Address" field, and click "OK".
To edit an existing server: Click the desired server entry, change the IP address in the "Address" field, and click "OK".
Enable caching (optional): Click the "Cache" tab and check the "Allow remote requests" box if you want your MikroTik to cache DNS queries and improve response times.
Apply changes: Click "Apply" to save the changes.
Method 2: Using CLI
Connect to your router: Connect to your MikroTik router using SSH or the serial console.
Login: Enter your username and password and press Enter.
Change server: Enter the following command, replacing [new_dns_server_ip]
with the actual IP address of the new DNS server:
/ip dns set servers=[new_dns_server_ip]
Enable caching (optional): Enter the following command to enable DNS caching and allow remote requests:
/ip dns set allow-remote-requests=yes
Execute commands: Press Enter to execute each command.
Additional Notes:
You can add multiple DNS servers by separating their IP addresses with commas in both methods.
MikroTik offers additional DNS configuration options in the Winbox interface and CLI. Refer to the official MikroTik documentation for more details: https://wiki.mikrotik.com/wiki/Manual:IP/DNS
Remember to replace [new_dns_server_ip]
with the actual IP address of the DNS server you want to use.
By following these steps, you can successfully change the DNS servers on your MikroTik router and improve your internet experience. Still need help? Contact us
Awesome!
Thanks so much for your feedback!
Got
it!
Thanks for your feedback.
Oops! We're having trouble. Please try again later!