can not mstsc to a server via dns name

谭振华 1 Reputation point
2023-03-30T04:09:43.42+00:00

"I access the remote server through Remote Desktop, and I can log in to the remote desktop through an IP address. However, when I use a domain name to remotely access, I encounter a prompt of 'login failure'.". The IP obtained by ping and nslookup for the domain name is consistent. Check the event log ID and there is a log with ID 1158. How can I solve this problem

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,238 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 43,931 Reputation points
    2023-03-30T11:25:59.9833333+00:00

    Hello there,

    Have you made any recent updates that you are aware of on this device? If so try uninstalling them and check if this sorts out the issue

    For some users flushing the DNS on the system solved the issue

    ipconfig /flushdns

    Similar discussion here https://learn.microsoft.com/en-us/answers/questions/1129764/suddenly-cannot-rdp-to-server-using-dns-names-only?page=2#answers

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–