Cell membranes consist of heterogeneous lipid nanodomains that influence key cellular processes. Using FRET-based fluorescent assays and fluorescence lifetime imaging microscopy (FLIM), we found that the dimension of cholesterol-enriched ordered membrane domains (OMD) varies considerably, depending on specific cell types. Particularly, nociceptor dorsal root ganglion (DRG) neurons exhibit large OMDs. Disruption of OMDs potentiated action potential firing in nociceptor DRG neurons and facilitated the opening of native hyperpolarization-activated cyclic nucleotide-gated (HCN) pacemaker channels. This increased neuronal firing is partially due to an increased open probability and altered gating kinetics of HCN channels. The gating effect on HCN channels was likely due to a direct modulation of their voltage sensors by OMDs. In animal models of neuropathic pain, we observed reduced OMD size and a loss of HCN channel localization within OMDs. Additionally, cholesterol supplementation inhibited HCN channels and reduced neuronal hyperexcitability in pain models. These findings suggest that disturbances in lipid nanodomains play a critical role in regulating HCN channels within nociceptor DRG neurons, influencing pain modulation.