Almost all problems related to joining the domain are related to DNS.
You must make sure that the MWG is using the DNS on the Domain Controller and that there are DNS A records and PTR records for the appliance.
Both MWG and the DCs must be able to forward and reverse lookup each other.
If you cannot do this because of your environment, then you need to look into adding hosts entries for the DCs in /etc/hosts on the appliance.
I am using the IP address of domain controller while adding the appliance to domain.
So that eliminates any issue with DNS.
using the IP address does not eliminate issues with DNS. The first communication will be done via IP but Lookups will happen, because the protocol relies on DNS. From my experience using IP addresses will always cause issues, so my general recommendation is to use the FQDN instead of IP addresses. I am not sure if this is written down somewhere but I strongly recommend to use the FQDN. If DNS is a problem enter the FQDN and the associated IP address into the /etc/hosts file. This will ensure DNS works as expected in most cases.
I used FQDN instead of IP address and it worked. Since DNS server is working fine(checked from appliance CLI), I did not make any entry in /etc/hosts file.
Perfect. Thank you for letting us know.