ปัญหาเชื่อมต่ออินเทอร์เน็ต? DNS Cache เสียหาย? เจอปัญหา DNS? อาจต้อง Flush Windows DNS Cache หากคอมพิวเตอร์เข้าถึงเว็บไซต์/เซิร์ฟเวอร์บางแห่งไม่ได้ อาจเพราะ Local DNS Cache เสียหาย บางครั้ง Cache ผลลัพธ์ผิด (DNS Cache Poisoning/Spoofing) ต้องล้าง Cache เพื่อให้ Windows ติดต่อ Host ได้ถูกต้อง
ใน Windows 11/10 มี Cache 3 ประเภทที่ Flush ได้ง่าย:
- Memory Cache
- DNS Cache
- Thumbnails Cache
Clear Memory Cache: เผื่อ RAM, Clear Thumbnail Cache: เผื่อพื้นที่ดิสก์, Clear DNS Cache: แก้ปัญหาอินเทอร์เน็ต วิธี Flush DNS Cache:
Flush DNS Cache ใน Windows 11/10
ขั้นตอน:
- เปิด Command Prompt เป็น Administrator
- พิมพ์ ipconfig /flushdns > Enter
- จะเห็น: Windows IP Configuration. Successfully flushed the DNS Resolver Cache
- Exit CMD
- DNS Cache ถูก Reset แล้ว

รายละเอียด: ค้นหา cmd > คลิกขวา > Run as administrator (หรือจาก WinX Menu) > พิมพ์คำสั่ง:
ipconfig /flushdns
จะได้ Confirmation:
Windows IP Configuration. Successfully flushed the DNS Resolver Cache.
ฟรีแวร์ FixWin สำหรับ Windows 10 สามารถ Flush DNS Cache ได้คลิกเดียว

แสดง DNS Cache
ต้องการยืนยันว่า Cache ถูกล้างแล้ว ให้พิมพ์:
ipconfig /displaydns
จะแสดง DNS Cache Entries (ถ้ามี)
ปิด/เปิด DNS Cache
ปิด DNS Caching ช่วง Session: net stop dnscache > Enter
เปิด DNS Caching: net start dnscache > Enter
Restart คอมพิวเตอร์ DNS Caching จะเปิดอัตโนมัติ
NOTE: นี่คือ Batch File สำหรับ Release TCP/IP, Flush DNS, Reset Winsock, Reset Proxy พร้อมกัน
ปิดใช้งาน DNS Cache
หากต้องการ Disable DNS Caching: พิมพ์ services ใน Start Search > Enter เปิด Services Manager > หา DNS Client Service
The DNS Client service (dnscache) caches Domain Name System (DNS) names and registers the full computer name for this computer. If the service is stopped, DNS names will continue to be resolved. However, the results of DNS name queries will not be cached and the computer's name will not be registered. If the service is disabled, any services that explicitly depend on it will fail to start.
ดับเบิลคลิก > Properties > เปลี่ยน Startup Type จาก Manual เป็น Disabled หาก Disable DNS Client Service, DNS Lookups อาจช้าลง
แหล่งข้อมูลเพิ่มเติม:
- How to reset Winsock & reset TCP/IP
- How to reset WinHTTP Proxy Server Settings
- How to change DNS settings in Windows
- Manage web browsing speed by changing DNS settings
- Check if your DNS settings have been compromised