Active Directory, DNS, Windows Server 2012

Naming Information cannot be located because: The specified domain either doesn’t exist or could not be contacted. (Windows Server 2012/2016/2019/2022)

Good news! the fix is working for Windows Server 2022 also! Following comment is useful Just had a similar problem on Windows Server 2022. EventId