DVR and DVR software

Any recommendations on DVR software and hardware

Looking for DVR software for current site that has 30-40 IP cameras in place. If not I would use Ubiquiti. They have about 40 cameras with a 5 year old DVR that is dead to the world.