How deep should a dry well be?

How deep should a dry well be? How far from the house should it be?