Skip to content

Cài Đặt NexaDNS Trên Router, macOS & Linux ​


1. Cài Đặt Trên Router Wi-Fi (Bảo Vệ Cả Nhà) ​

Cài một lần lên Router giúp toàn bộ Smart TV, camera, điện thoại và máy tính kết nối Wi-Fi tự động được bảo vệ:

  1. Mở trình duyệt vào trang quản trị Router (thường là 192.168.1.1 hoặc 192.168.0.1).
  2. Tìm mục WAN DNS hoặc DNS riêng tư (DoT / DoH) trên các dòng Router hỗ trợ (ASUS, OpenWrt, MikroTik, Keenetic, pfSense...).
  3. Nhập thông số hồ sơ của bạn trên nexa.io.vn:
    • DoT: {profile_id}.dns.nexa.io.vn
    • DoH: https://dns.nexa.io.vn/{profile_id}
  4. Lưu cài đặt để áp dụng cho toàn bộ mạng.

Hướng dẫn chi tiết cho Router MikroTik (RouterOS v6.47+ / v7) ​

Cách 1: Cấu hình qua WinBox (Giao diện)

  1. Mở WinBox $\rightarrow$ vào IP $\rightarrow$ DNS.
  2. Tại ô Use DoH Server, nhập: https://dns.nexa.io.vn/{profile_id} (gói Pro có thể dùng https://ultralow.nexa.io.vn/{profile_id}).
  3. Tại ô Servers, nhập 1.1.1.1 (chỉ để Router tìm được địa chỉ dns.nexa.io.vn lần đầu).
  4. Bỏ chọn Verify DoH Certificate (nếu Router chưa cài sẵn bộ chứng chỉ gốc CA).
  5. Tích chọn Allow Remote Requests $\rightarrow$ bấm OK.
  6. Bấm Cache $\rightarrow$ Flush Cache để làm mới.

(Lưu ý: Trong IP > DHCP Server > Networks, đảm bảo mục DNS Servers trỏ về IP của MikroTik như 192.168.88.1 để điện thoại và máy tính trong nhà đi qua Router).

Cách 2: Dán nhanh qua Terminal

txt
/ip dns set use-doh-server=https://dns.nexa.io.vn/{profile_id} verify-doh-cert=no allow-remote-requests=yes servers=1.1.1.1
/ip dns cache flush

2. Cài Đặt Trên macOS ​

  1. Mở trình duyệt Safari trên máy Mac, vào https://nexa.io.vn.
  2. Vào mục cài đặt macOS và bấm Tải Hồ Sơ Cấu Hình (.mobileconfig).
  3. Mở file vừa tải (hoặc vào System Settings > Privacy & Security > Profiles) và bấm Install để hoàn tất.

3. Cài Đặt Trên Linux (systemd-resolved) ​

  1. Mở file /etc/systemd/resolved.conf:
    bash
    sudo nano /etc/systemd/resolved.conf
  2. Thêm 2 dòng sau vào mục [Resolve]:
    ini
    [Resolve]
    DNS=dns.nexa.io.vn#{profile_id}.dns.nexa.io.vn
    DNSOverTLS=yes
  3. Khởi động lại dịch vụ mạng:
    bash
    sudo systemctl restart systemd-resolved

Tài liệu hướng dẫn người dùng chính thức của hệ sinh thái Nexa.