This error usually occur if the computer that you want to join to the domain is not able to resolve the domain name. Please try to configure the IP addresses of Azure AD Domain Services object as DNS server address in the V-Net. You can find the IP Address in the overview blade of the Network Interfaces created for Azure AD Domain Services and in properties of Azure AD Domain Services object as well.
Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.