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

ข้อผิดพลาด RDP: รายการเก่าใน DNS Cache (Outdated entry in the DNS cache)

ผู้ใช้ร้องเรียนว่าเมื่อพยายามเชื่อมต่อไปยัง RDS Farm (Windows Server 2008 R2) ผ่าน RD Client (mstsc.exe) บ่อยครั้งได้ข้อผิดพลาด:

ข้อผิดพลาด RDP: รายการเก่าใน DNS Cache (Outdated entry in the DNS cache)

The connection cannot be completed because the remote computer that was reached is not the one you specified. This could be caused by an outdated entry in the DNS cache. Try using the IP address of the computer instead of the name.

การตั้งค่า RDS Farm: 3 เซิร์ฟเวอร์ Windows Server 2008 R2 ใช้ RD Connection Broker แจกแจง Workload และ Reconnect เซสชัน ปัญหาเกิดขึ้นบ้างครั้ง บ่งชี้ว่ามีปัญหากับเซิร์ฟเวอร์ตัวใดตัวหนึ่งใน Farm ค้นหาแบบลำดับชั้น พบเซิร์ฟเวอร์ที่มีปัญหา และเชื่อมต่อเดสก์ท็อประยะไกลด้วย IP Address ได้

ลองลงทะเบียนเซิร์ฟเวอร์ใน DNS ใหม่:

ipconfig /registerdns

และล้าง DNS Cache บนไคลเอ็นต์:

ipconfig /flushdns

แต่ไม่ช่วย ไม่มีปัญหาอื่นกับเซิร์ฟเวอร์ จึงต้องใช้ KB ของ Microsoft: https://support.microsoft.com/ru-ru/kb/2493594 (RDP connection to Remote Desktop server running Windows Server 2008 R2 may fail with message ‘The Local Security Authority cannot be contacted’)

วิธีแก้ใน KB: ลดระดับโปรโตคอลเข้ารหัส RDP จาก SSL (TLS 1.0) เป็น RDP Security Layer (เข้ารหัส RDP แบบ built-in ที่ปลอดภัยน้อยกว่า)

Note ตั้งค่าที่: Remote Desktop Session Host Configuration -> Microsoft RDP 7.1 -> Properties -> Security Layer

ข้อผิดพลาด RDP: รายการเก่าใน DNS Cache (Outdated entry in the DNS cache)

แต่ในการตั้งค่าของเรา ใช้ Negotiate method ที่สลับจาก TLS ไป RDP Security Layer อัตโนมัติหากไคลเอ็นต์ไม่รองรับ TLS

โดยบังเอิญ พบว่าเวลาบนเซิร์ฟเวอร์ที่มีปัญหา ต่างจาก Domain Controller เซิร์ฟเวอร์นี้ (VM) อยู่บน VMWare ESXi Host ที่เวลาผิด และเปิดตัวเลือก Time synchronization with the ESX Server ใน VMWare Tools

ต้องปิดการซิงค์เวลากับ ESXi และรีสตาร์ท Windows Time Service เพื่อซิงค์กับ DC:

net stop w32time
net start w32time

ข้อผิดพลาด RDP: รายการเก่าใน DNS Cache (Outdated entry in the DNS cache)

หลังจากนั้น ผู้ใช้เชื่อมต่อทุกเซิร์ฟเวอร์ใน RDS Farm ได้ปกติโดยไม่มีข้อผิดพลาด

Note ข้อผิดพลาด "This could be caused by an outdated entry in the DNS cache" ยังเกิดขึ้นหากเชื่อมต่อเซิร์ฟเวอร์เฉพาะใน Farm โดยชื่อ Connection Broker อาจ Redirect ไปยัง RD Host อื่น (DNS Name และ IP ต่างกัน) ทำให้เกิดความไม่ตรงกัน และ Client แจ้ง Error หลังพยายาม Authenticate ดังนั้น ควรระบุชื่อ RD Farm เสมอเมื่อเชื่อมต่อ

No