ปัญหาเครือข่ายใน 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:
- Win+R >
cmd> Enter - พิมพ์
ping google.com> Enter - หากไม่ได้ 4 Packets ลอง
ping 172.217.4.46 - หากคำสั่งที่ 2 ได้ 4 Packets แสดงว่าปัญหาอยู่ที่ DNS Server แน่นอน
วิธีแก้ปัญหา DNS ใน Windows 11/10
- ตรวจสอบปัญหา ISP
- Power-cycle Modem, Router, Computer
- Renew IP, Flush DNS, Reset Winsock
- Perform Clean Boot
- Activate Microsoft LLDP Protocol Driver
- Install Latest Network Drivers
- Change Power Plan
- Change to Public Google DNS Servers
1. ตรวจสอบปัญหา ISP
หากปัญหาอยู่ที่ ISP การ Troubleshoot ในเครื่องจะไม่ช่วย ตรวจสอบอุปกรณ์อื่นต่อ Router เดียวกัน หากอื่นทำงานได้ ISP ปกติ หากไม่มีอุปกรณ์อื่น ให้ต่อคอมพิวเตอร์ตรง Modem
2. Power-cycle Modem, Router, Computer
- ปิด Modem, Router, Computer
- เปิด Moder ก่อน รอ 2-3 นาที จนไฟคงที่
- เปิด Router รอ 2-3 นาที จนไฟคงที่
- เปิด 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
- Win+R >
ncpa.cpl> Enter - คลิกขวา Active Network Connection > Properties
- ในรายการ "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
- Win+R >
ncpa.cpl> Enter - คลิกขวา Active Network > Properties
- ดับเบิลคลิก Internet Protocol Version 4
- เลือก Use the following DNS server addresses:
- Preferred DNS Server: 8.8.8.8
- Alternate DNS Server: 8.8.4.4
- OK บันทึก
อ่านเพิ่ม: What is DNS Aging & Scavenging & How to configure on Windows Server?