Dublin/Pleasanton/San Ramon are suburban "bedroom" communities that offer access to BART (commuter train) for the trip to San Francisco with 2 stations in Dublin. Depending upon your company, those areas are served by corporate busses (for example, Genentech has a bus that picks up their employees at a spot in San Ramon for the trip to South San Francisco). It is about a 45 minute ride from West Dublin to Embarcadero. For the trip to Mountain view, Pleasanton and Dublin would be better choices, saving perhaps 15 -20 minutes each way in commute time.
Other areas, like Walnut Creek (35 minutes to SF on BART) or Piedmont (20 minute BART ride) but the commute from WC to Mtn View would be an additional 30 minutes than from Dublin, and from Piedmont, maybe 10 to 15 minutes longer.
There are communities on the peninsula that also could work well for you with maybe a shorter commute to both locations. However, the prices are significantly higher there. I pulled up homes in San Carlos, Redwood City, Foster City,and a couple others, and found (1) 3 bed, 2 bath home with at least 1800 sq ft listed for $1.095,000, on a 2350 sq ft lot. I found 36 listings in Dublin, Pleasanton, San Ramon (tri-valley, or san ramon valley) priced from $639,000 to $800,000 with lots ranging from 2800 to 41,000 sq ft. There are 3 homes in the SRV priced between $1,mil and $1,095, and they are all over 3000 sq ft of living space. So the choice depends upon how important the house is to you. .if you are ok with the cost differential and are willing to accept a smaller house for the same money, the peninsula could be a choice for you. .
I have lived in all of those areas, and they all have something great to offer. If I were to set up a home search for you, my system allows you to put in important addresses (like that of your work) and it will tell you how far and how long that particular home is from your important place. If that sounds helpful to you, let me know.