We present a combined density-functional-perturbation-theory and inelastic neutron scattering study of the lattice dynamical properties of YNi2B2C. In general, very good agreement was found between theory and experiment for both phonon energies and line widths. Our analysis reveals that the strong coupling of certain low energy modes is linked to the presence of large displacements of the light atoms, i.e. B and C, which is unusual in view of the rather low phonon energies. Specific modes exhibiting a strong coupling to the electronic quasiparticles were investigated as a function of temperature. Their energies and line widths showed marked changes on cooling from room temperature to just above the superconducting transition at Tc = 15.2 K. Calculations simulating the effects of temperature allow to model the observed temperature dependence qualitatively.