user registration limit to email domain

upon users registering on the site,, how can I restrict users to only registering and activating a site with only a .mil address. They can change their email in their profile later, but I don’t want the general public to be able to register with a account, or whatever public domain.