Google's advanced search allows you to search by domain name.
Entering .edu or .gov into this line will only return results from educational or US government sites, which tend to contain more reliable scholarly or factual information. You will still have to evaluate the sites for authority, accuracy, currency, and objectivity.