Dynamical properties of liquids in restricted geometries