Palmitoylation, the modification of proteins with the lipid palmitate, is a key regulator of protein targeting and trafficking. However, knowledge of the roles of specific palmitoyl acyltransferases (PATs), which catalyze palmitoylation, is incomplete. For example, little is known about which PATs are present in neuronal axons, even though long-distance trafficking of palmitoyl-proteins is important for axon integrity and for axon-to-soma retrograde signaling, a process critical for axon development and for responses to injury. Identifying axonally targeted PATs might thus provide insights into multiple aspects of axonal biology. We therefore comprehensively determined the subcellular distribution of mammalian PATs in Dorsal Root Ganglion (DRG) neurons and, strikingly, found that only 2 PATs, ZDHHC5 and ZDHHC8, were enriched in DRG axons. Signals via the Gp130/JAK/STAT3 and DLK/JNK pathways are important for axonal injury responses, and we found that ZDHHC5 and ZDHHC8 were required for Gp130/JAK/STAT3, but not DLK/JNK, axon-to-soma signaling. ZDHHC5 and ZDHHC8 robustly palmitoylated Gp130 in cotransfected non-neuronal cells, supporting the possibility that Gp130 is a direct ZDHHC5/8 substrate. In DRG neurons, Zdhhc5/8 shRNA knockdown reduced Gp130 palmitoylation, and even more markedly reduced Gp130 surface expression, potentially explaining the importance of these PATs for Gp130-dependent signaling. Together, these findings provide new insights into the subcellular distribution and roles of specific PATs and reveal a novel mechanism by which palmitoylation controls axonal retrograde signaling.