|client you want to join needs to be pointed at the MS dns server for dns not the internet or gateway.|
if you have to use ip address it means DNS server is not setup correctly and that will lead to further issues with Active Directory.
Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's