It's better to ask:
* How long is the flight?
* How long does the flight take?
These are more natural and commonly used phrases.
While the other options ("How long is the duration of the flight?" and "How long is the flight duration?") are grammatically correct, they sound more formal and less conversational.