Also, before you get that replacement, you need to ask yourself several questions:
1. Do I actually use optical media these days? (If yes, then finish the questions, if not don't even bother with a replacement).
2. Do I use optical media often? (Particularly if this is a laptop). If the answer is no then you really should consider getting a self-contained external optical drive that connects via USB.
3. Do I want to have an optical drive for occasional use into the foreseeable future? If yes, then an external drive is the only way to go. I have a LiteOn external DVD drive that's over 10 years old, it may be coming close to 15 or more, that still works like new. It gets only very occasional use and is "built tougher" than most internal optical drives are (whether in a laptop or desktop).