A magnitude 4.2 earthquake struck in Sonoma County on Thursday, the U.S. Geological Survey said.The quake hit at 12 a.m.