Which of the following sounds better:

> How do I cook an omelet?

– or

> How to cook an omelet?

If I am asking which steps someone, in general, should take to cook an omelet.