Mikrotik Setup

Configure DNS and Static Entry

This section explains how to set up DNS servers and create a static DNS entry for the WiZone captive portal.

Step 8 – Configure DNS and Static Entry

After configuring routes, set up DNS servers and add a static DNS record to ensure local resolution of the WiZone Captive Portal domain (captive.wizone.io).
This step allows unauthenticated users to be redirected correctly to the local hotspot login page before accessing the internet.


8.1 Configure Global DNS Servers

  1. Go to IP → DNS
  2. In the Servers field, enter:
FieldValue
Servers1.1.1.1, 8.8.8.8
  1. Click Apply → OK

These are the public DNS servers used by the router for general name resolution.


8.2 Add Static DNS Entry for Captive Portal

  1. While still in IP → DNS, click Static → Add (+)
  2. Configure the following parameters:
FieldValue
Namecaptive.wizone.io
TypeA
Address10.10.252.1 (Hotspot interface IP)
TTL1d 00:00:00
  1. Click Apply → OK

This static entry ensures that all DNS queries for captive.wizone.io resolve locally to the hotspot IP address (10.10.252.1) instead of the internet.
It allows WiZone to display the login portal reliably, even when clients do not yet have external access.