DAF-19, the only RFX TF in C. elegans, is required for developmental tph-1/tryptophan hydroxylase expression as well as to mediate tph-1/tryptophan hydroxylase transcriptional increase upon different insults including bacterial infection or cilia morphology defects. Here, RFX1 is linked to bacterial infectious disease.