An biological mechanism for fire-breathing dragons

Or Robert A. Heinlein’s Glory Road (1964) covers this idea as well.

“…A proper dragon, with castles and captive princesses , has as much fire as it needs, like six-shooters in TV oaters. But these creatures fermented their own methane and couldn’t have too big a reserve tank nor under too high pressure—I hoped.”