A drug dealer who admitted possession of cocaine for sale or supply has been sentenced to eight months in prison in the District Court.