Background: The fruit fly Drosophila melanogaster lives in natural habitats and has also long been used as a model organism in biological research. In this study, we used a molecular barcoding approach to analyse the airways microbiome of larvae of D. melanogaster, which were obtained from eggs of flies of the laboratory strain w1118 and from immune deficient flies (NF-kB-K), and from wild-caught flies. To assess intergenerational transmission of microbes, all eggs were incubated under the same semi-sterile conditions. Results: The airway microbiome of larvae from both lab-strains was dominated by the two families Acetobacteraceae and Lactobacillaceae, while larvae from wild-caught flies were dominated by Lactobacillaceae, Anaplasmataceae and Leuconostocaceae. Barcodes linked to Anaplasmataceae could be further assigned to Wolbachia sp., which is a widespread intracellular pathogen in arthropods. For Leuconostoceae, the most abundant reads were assigned to Weissella sp. Both Wolbachia and Weissella affect the development of the insects. Finally, a relative high abundance of Serratia sp. was found in larvae from immune deficient relish−/− compared to w1118 and wild-caught fly airways. Conclusions: Our results show for the first time that larvae from D. melanogaster harbor an airway microbiome, which is of low complexity and strongly influenced by the environmental conditions and to a lesser extent by the immune status. Furthermore, our data indicate an intergenerational transmission of the microbiome as shaped by the environment.