Changes in the expression of the dopamine transporter (DAT), or the sensitivity of dopamine receptors, are associated with aging and substance abuse and may underlie some of the symptoms common to both conditions. In this study, we explored the role of the dopaminergic system in the anxiogenic effects of aging and acute cocaine exposure by comparing the behavioral phenotypes of wild type (WT) and DAT knockout zebrafish (DAT-KO) of different ages. To determine the involvement of specific dopamine receptors in anxiety states, antagonists to D1 (SCH23390) and D2/D3 (sulpiride) were employed. We established that DAT-KO results in a chronic anxiety-like state, seen as an increase in bottom-dwelling and thigmotaxis. Similar effects were produced by aging and acute cocaine administration, both leading to reduction in DAT mRNA abundance (qPCR). Inhibition of D1 activity counteracted the anxiety-like effects associated with DAT deficit, independent of its origin. Inhibition of D2/D3 receptors reduced anxiety in young DAT-KO, and enhanced the anxiogenic effects of cocaine in WT, but did not affect aged WT or DAT-KO fish. These findings provide new evidence that the dopaminergic system plays a critical role in anxiety-like states, and suggest that adult zebrafish provide a sensitive diurnal vertebrate model for elucidating the molecular mechanisms of anxiety and a platform for anxiolytic drug screens.