Displaying users having certain criteria

I want to display the users from user_entity database that meets certain criteria, how can i do that,

suppose i want to display the name and email address of users they are using email from a specific domain eg display name and email address of all users they are using email with domain mydomain.com