DNS server ตัวเล็กๆ ติดตั้งง่ายๆ ค้นๆ ดูเจอตัวนี้ dnsmasq ก็เลยลองเอามาติดตั้งดู

เริ่มจากลง Ubuntu 22.04 ใหม่ๆ

เมื่อติดตั้งเสร็จ มันจะให้ค้นหา DNS ไปที่ไฟล์ /etc/resolv.conf ซึ่งเราต้องปิดตรงนี้ก่อน แล้วค่อยเปิดใช้งาน dnsmasq

$ sudo systemctl disable systemd-resolved
$ sudo systemctl stop systemd-resolved

จากนั้นไปลบลิ้งค์ออก

$ sudo unlink /etc/resolv.conf
หรือ
$ sudo rm -rf /etc/resolv.conf

แล้วทำการสร้างใหม่ โดยใช้ DNS ของ Google