DNS (Domain Name System) แปลงชื่อโดเมน (google.com) เป็น IP Address ที่คอมพิวเตอร์เข้าใจ ISP ให้ DNS มาตรฐานแต่ช้า/ไม่เสถียร สามารถเปลี่ยนเป็น Public DNS ได้: Google (8.8.8.8, 8.8.4.4) หรือ Cloudflare (1.1.1.1, 1.0.0.1) หรือ OpenDNS (208.67.222.222, 208.67.220.220)
3 วิธีเปลี่ยน DNS ใน Windows 10
วิธีที่ 1: ผ่าน Control Panel (Classic, รองรับ DNS มากกว่า 2 ตัว)
- Control Panel > Network and Internet > Network and Sharing Center
- Change adapter settings (ซ้ายบน)
- คลิกขวา Connection ที่ใช้งาน > Properties
- เลือก Internet Protocol Version 4 (TCP/IPv4) > Properties
- ติ๊ก Use the following DNS server addresses
- Preferred: 8.8.8.8 / Alternate: 8.8.4.4
- Advanced... > DNS tab > Add... เพิ่ม DNS ได้ไม่จำกัดจำนวน (Priority: บนสุด = ใช้ก่อน)
- OK ทุกหน้าต่าง
วิธีที่ 2: ผ่าน Windows 10 Settings (Modern UI)
- Win+I > Network & Internet
- Wi-Fi หรือ Ethernet > คลิกชื่อเครือข่ายที่เชื่อมต่ออยู่
- IP settings > Edit > Manual > IPv4 On
- Preferred DNS: 8.8.8.8 / Alternate DNS: 8.8.4.4
- Save
วิธีที่ 3: ผ่าน Command Prompt (สคริปต์/อัตโนมัติ)
- CMD (Admin)
wmic nic get NetConnectionID(ดูชื่อ Adapter)netsh- Primary DNS:
interface ip set dns name="Adapter-Name" source="static" address="8.8.8.8" - Alternate DNS:
interface ip add dns name="Adapter-Name" addr="8.8.4.4" index=2
เครื่องมือช่วย: QuickSetDNS, Public DNS Server Tool (GUI ง่ายกว่า)
⚠ คำเตือน: อย่าเปลี่ยน DNS บนคอมพิวเตอร์บริษัท/องค์กร อาจทำให้เข้าถึงระบบภายในไม่ได้