Animals use pheromones as a conspecific chemical language to respond appropriately to environmental changes. The soil nematode Caenorhabditis elegans secretes ascaroside pheromones throughout the lifecycle, which influences entry into dauer phase in early larvae, in addition to sexual attraction and aggregation. In adult hermaphrodites, pheromone sensory signals perceived by worms usually elicit repulsion as an initial behavioral signature. However, the molecular mechanisms underlying neuronal pheromone sensory process from perception to repulsion in adult hermaphrodites remain poorly understood. Here, we show that pheromone signals perceived by GPA-3 is conveyed through glutamatergic neurotransmission in which neuronal DAF-16/FoxO plays an important modulatory role by controlling glutaminase gene expression. We further provide evidence that this modulatory role for DAF-16/FoxO seems to be conserved evolutionarily by electro-physiological study in mouse primary hippocampal neurons that are responsible for glutamatergic neurotransmission. These findings provide the basis for understanding the nematode pheromone signaling, which seems crucial for adaptation of adult hermaphrodites to changes in environmental condition for survival.