Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

วิธีแก้ไขปัญหา DNS ใน Windows 11/10

ปัญหาเครือข่ายใน Windows พบบ่อยแต่แก้ได้หากเข้าใจสาเหตุ สมมติ: เชื่อมต่ออินเทอร์เน็ตได้ ไอคอน Wireless แสดง Connected แต่เว็บไซต์เปิดไม่ได้ เปลี่ยน Browser ไม่ช่วย อาจเป็นปัญหา DNS Server อ่านต่อเพื่อแก้ไข

DNS คืออะไร?

อินเทอร์เน็ตไม่เข้าใจภาษามนุษย์ เมื่อพิมพ์ URL ใน Browser DNS Server จะแปลงเป็นค่าตัวเลข (IP Address ของเว็บไซต์) ที่อินเทอร์เน็ตอ่านได้ หาก DNS หยุดแปลง URL จะเจอ Error "DNS Server not responding" โดยทั่วไปปัญหา DNS จะทำให้เข้าถึงเว็บไซต์ไม่ได้

ตรวจสอบว่าปัญหาอยู่ที่ DNS Server หรือไม่

หาก DNS มีปัญหา: เปิดเว็บด้วย URL ไม่ได้ แต่เปิดด้วย IP Address ได้ เช่น พิมพ์ IP ของ Google 172.217.4.46 ใน Address Bar หากเปิด Google.com ได้ แสดงว่าปัญหาอยู่ที่ DNS

ทดสอบด้วย Ping Test:

  1. Win+R > cmd > Enter
  2. พิมพ์ ping google.com > Enter
  3. หากไม่ได้ 4 Packets ลอง ping 172.217.4.46
  4. หากคำสั่งที่ 2 ได้ 4 Packets แสดงว่าปัญหาอยู่ที่ DNS Server แน่นอน

วิธีแก้ปัญหา DNS ใน Windows 11/10

  1. ตรวจสอบปัญหา ISP
  2. Power-cycle Modem, Router, Computer
  3. Renew IP, Flush DNS, Reset Winsock
  4. Perform Clean Boot
  5. Activate Microsoft LLDP Protocol Driver
  6. Install Latest Network Drivers
  7. Change Power Plan
  8. Change to Public Google DNS Servers

1. ตรวจสอบปัญหา ISP

หากปัญหาอยู่ที่ ISP การ Troubleshoot ในเครื่องจะไม่ช่วย ตรวจสอบอุปกรณ์อื่นต่อ Router เดียวกัน หากอื่นทำงานได้ ISP ปกติ หากไม่มีอุปกรณ์อื่น ให้ต่อคอมพิวเตอร์ตรง Modem

2. Power-cycle Modem, Router, Computer

  1. ปิด Modem, Router, Computer
  2. เปิด Moder ก่อน รอ 2-3 นาที จนไฟคงที่
  3. เปิด Router รอ 2-3 นาที จนไฟคงที่
  4. เปิด Computer

3. Renew IP, Flush DNS, Reset Winsock

รัน CMD Admin พิมพ์คำสั่งทีละบรรทัด:

ipconfig /flushdns
ipconfig /registerdns
ipconfig /release
ipconfig /renew
NETSH winsock reset catalog
NETSH int ipv4 reset reset.log
NETSH int ipv6 reset reset.log
Exit

หรือใช้ Network Reset Feature ใน Windows 11/10

4. Perform Clean Boot

Clean Boot แยกสาเหตุจาก Third-party Software หากเป็นสาเหตุ ให้ Uninstall หรือ Disable Startup

5. Activate Microsoft LLDP Protocol Driver

  1. Win+R > ncpa.cpl > Enter
  2. คลิกขวา Active Network Connection > Properties
  3. ในรายการ "This connection uses the following items" หา Microsoft LLDP Protocol Driver ติ๊กถูก

6. Install Latest Network Drivers

Driver เก่าหรือเสียอาจเป็นสาเหตุ ดาวน์โหลด Network Drivers ล่าสุดจาก Intel.com

7. Change Power Plan

Balanced Power Plan เป็นค่า Default หากเจอปัญหา DNS ให้เปลี่ยนเป็น High Performance: Win+R > powercfg.cpl > เลือก High Performance

8. เปลี่ยนเป็น Public Google DNS Servers

  1. Win+R > ncpa.cpl > Enter
  2. คลิกขวา Active Network > Properties
  3. ดับเบิลคลิก Internet Protocol Version 4
  4. เลือก Use the following DNS server addresses:
    • Preferred DNS Server: 8.8.8.8
    • Alternate DNS Server: 8.8.4.4
  5. OK บันทึก

อ่านเพิ่ม: What is DNS Aging & Scavenging & How to configure on Windows Server?