In summary, IN vaccination of mice with DnaK generated lung tissue-resident IL-17-secreting CD4+ T cells, offering similar protective efficacy against TB as SC BCG vaccination. This evidence concerns the gene IL17A and tuberculosis.