To resolve these issues you should run the steps in this article and check whether the groups in your sync's filtering preference contain users in Azure AD.
To flush the DNS cache, you can open the Command Prompt on Windows and enter the command `ipconfig /flushdns`.