Skip to content Skip to sidebar Skip to footer

MikroTik Router Configuration DNS Server Setup Guide

Have you ever experienced slow internet connection despite having a decent internet service provider and a fast internet package? If yes, the problem might not be with your internet service provider but with the Domain Name System (DNS). The DNS is responsible for converting a website's URL into an IP address, allowing a device to connect to the website's server and access its content. In this post, we'll show you how to configure your MikroTik router as a DNS client and caching DNS server to speed up your internet connection.

MikroTik DNS Client and Caching DNS Server Configuration

What is MikroTik Router?

MikroTik Router is a popular router for small to medium businesses, providing various features and functionalities, one of which is the ability to serve as a DNS client and caching DNS server.

Why use a caching DNS server?

A caching DNS server stores frequently accessed DNS records in its cache so that subsequent requests for the same DNS records don't have to be sent to the upstream DNS server. This reduces the response time for DNS queries and speeds up internet access.

How to configure MikroTik Router as a DNS client and caching DNS server?

Follow these steps to configure your MikroTik Router:

Step 1: Configure DNS Client

Configure DNS client settings to specify the IP addresses of the upstream DNS servers your MikroTik router will use to resolve DNS queries.

  1. Open Winbox or Webfig and log in to your MikroTik router.
  2. Select IP > DNS from the left-side menu.
  3. Click on the Settings tab.
  4. In the Servers field, enter the IP addresses of the upstream DNS servers you want to use. You can use your internet service provider's DNS servers or popular public DNS servers like Google DNS or OpenDNS. Here, we'll use Google DNS servers: 8.8.8.8 and 8.8.4.4
  5. Check the Allow Remote Requests box to allow other devices on your network to use your router's DNS caching server.
  6. Click Apply and OK to save the settings.

Step 2: Configure DNS Cache

Configure DNS cache settings to specify the maximum amount of memory your router can use for caching DNS records and the duration for which DNS records should be cached.

  1. Go to IP > DNS > Cache from the left-side menu.
  2. Click on the Settings tab.
  3. In the Max Cache Size field, specify the maximum amount of memory your router can use for caching DNS records. The default value is 2048 KiB, but you can increase it to a higher value according to your router's available memory.
  4. Specify the duration for which DNS records should be cached in the Cache Time field. The default value is 1d (one day), but you can decrease or increase it according to your preference. A shorter cache time will reduce the response time for DNS queries but will result in more requests to the upstream DNS server.
  5. Click Apply and OK to save the settings.

Step 3: Test DNS Resolution

Test DNS resolution to see if your MikroTik router is using the specified upstream DNS servers and caching DNS records.

  1. Go to IP > DNS > Tools from the left-side menu.
  2. Click on the ping button and in the address field type a common website URL (e.g. www.google.com).
  3. Click on the Start button to start the ping test.
  4. Check the results to see if the ping is successful and the IP address is resolved. You should see a response time that is lower than the response time without the caching DNS server.
  5. Click Close to exit the ping test.

Conclusion

Configuring your MikroTik router as a DNS client and caching DNS server has several benefits, including faster response times for DNS queries and reduced internet access time. By following the steps outlined in this post, you can configure your router to use popular public DNS servers like Google DNS and OpenDNS or your internet service provider's DNS servers.

To learn more about MikroTik router and other networking topics, stay tuned to our blog!

MikroTik Tutorial: How to enable DNS over HTTPS (DoH) - jcutrer.com
mikrotik dns jcutrer doh router


MikroTik DNS Client and Caching DNS Server Configuration - System Zone
dns mikrotik server configuration winbox caching router


Mikrotik Dns Server V6 - fasrlady
hotspot mikrotik server dns login setup set profiles mac per address meanwhile accordingly packet marks tried


Mikrotik RouterSite-to-Site PPTP VPN Server Configuration
vpn mikrotik router configuration pptp site server



Post a Comment for "MikroTik Router Configuration DNS Server Setup Guide"