Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

เปลี่ยน DNS ใน Windows 10: 3 วิธีง่าย (Control Panel, Settings, CMD)

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 ตัว)

  1. Control Panel > Network and Internet > Network and Sharing Center
  2. Change adapter settings (ซ้ายบน)
  3. คลิกขวา Connection ที่ใช้งาน > Properties
  4. เลือก Internet Protocol Version 4 (TCP/IPv4) > Properties
  5. ติ๊ก Use the following DNS server addresses
  6. Preferred: 8.8.8.8 / Alternate: 8.8.4.4
  7. Advanced... > DNS tab > Add... เพิ่ม DNS ได้ไม่จำกัดจำนวน (Priority: บนสุด = ใช้ก่อน)
  8. OK ทุกหน้าต่าง

วิธีที่ 2: ผ่าน Windows 10 Settings (Modern UI)

  1. Win+I > Network & Internet
  2. Wi-Fi หรือ Ethernet > คลิกชื่อเครือข่ายที่เชื่อมต่ออยู่
  3. IP settings > Edit > Manual > IPv4 On
  4. Preferred DNS: 8.8.8.8 / Alternate DNS: 8.8.4.4
  5. Save

วิธีที่ 3: ผ่าน Command Prompt (สคริปต์/อัตโนมัติ)

  1. CMD (Admin)
  2. wmic nic get NetConnectionID (ดูชื่อ Adapter)
  3. netsh
  4. Primary DNS: interface ip set dns name="Adapter-Name" source="static" address="8.8.8.8"
  5. Alternate DNS: interface ip add dns name="Adapter-Name" addr="8.8.4.4" index=2

เครื่องมือช่วย: QuickSetDNS, Public DNS Server Tool (GUI ง่ายกว่า)

⚠ คำเตือน: อย่าเปลี่ยน DNS บนคอมพิวเตอร์บริษัท/องค์กร อาจทำให้เข้าถึงระบบภายในไม่ได้