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–