In the lungs of the dysbiotic mice, there was an increase in IDO1 (Indoleamine 2,3‐dioxygenase 1) activity and an accumulation of kynurenine after infection, and IDO1−/− mice were resistant to infection after induction of dysbiosis. This evidence concerns the gene IDO1 and infection.