# Hướng dẫn cài đặt NextDNS lên Mikrotik Router

## Bước 1: Độp một tài khoản NextDNS nếu chưa có

Đăng kí ở đây <https://nextdns.io/?from=9tsfv6bu> giá 450K/năm, nhưng mà tạo nhiều profile, chia 2 - 3 đứa bạn xài chung cũng được

Setup mấy cái cơ bản thì các ông coi ở đây, bài này chỉ cách setup trên Mikrotik Router <https://voz.vn/t/tat-tan-tat-ve-dich-vu-nextdns.522718/>

## Bước 2: Add NextDNS vào Mikrotik

Vào <https://my.nextdns.io/> chuyển qua Tab Router, kéo xuống mục Mikrotik, copy mấy cái lệnh (Trừ mấy cái gạch đỏ) paste vào Terminal của Mikrotik

Không nên paste mấy cái lệnh static DNS, vì paste vào thì nó Auto xài Server anycast, trong khi ultralow xài sẽ ổn hơn về ping

<figure><img src="/files/skiDFAdieRQElKIdgDHG" alt=""><figcaption></figcaption></figure>

## Bước 3: Cấu hình con Mít thành DNS Server

Vào IP -> DNS -> Tick Allow Remote Request

Lưu ý: Ở mục Server, nên gõ 1.1.1.1 vào

<figure><img src="/files/jk7nrhwwn71gaajJz2lq" alt=""><figcaption></figcaption></figure>

Vào IP -> DHCP Server -> Network và gõ IP của Mikrotik vào mục DNS để DHCP tự động gán cho các thiết bị trong LAN

<figure><img src="/files/s9VXnervWOroAgSxKQ63" alt=""><figcaption></figcaption></figure>

Nếu không truy cập được thì xem Mikrotik có bị sai giờ không, nếu có thì cấu hình NTP Client (Nên dùng IP) là được nhé

Lấy một thiết bị trong mạng chưa cài NextDNS, vào <https://test.nextdns.io/> kiểm tra nếu ra DOH là OK


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://note.nguyenanhkiet.net/note-cua-nguyen-anh-kiet/kinh-nghiem-trai-nghiem/huong-dan-cai-dat-nextdns-len-mikrotik-router.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
