The rapid and sustained antidepressant properties of ketamine provide evidence of the importance of the glutamatergic system in the neurobiology of depression. The antidepressant-like effects of ketamine are dependent on brain-derived neurotrophic factor (BDNF) and mammalian target of rapamycin (mTOR) in limbic brain areas. The nitrergic system is closely related to the glutamatergic system and generates antidepressant-like effects when blocked. The aim of this study was to investigate whether the behavioural effects induced by the inhibition of nitric oxide (NO) synthesis by aminoguanidine or N-methyl-D-aspartate (NMDA) receptor blockade by ketamine would affect the gene expression of Bdnf and Mtor in the ventromedial prefrontal cortex in rats. The effects of ketamine or aminoguanidine were investigated in Sprague-Dawley (SD) rats, the Flinders Sensitive Line (FSL), a genetic rat model of depression, and their controls, the Flinders Resistant Line (FRL) rats. In the studies, the three protocols evaluated to which the animals/rats were exposed were: (1) pre-test and test sessions of forced swim test (FST), (2) pre-test session of FST alone, or (3) not exposed to the FST. Ketamine and aminoguanidine both induce antidepressant-like effects in SD and FSL rats. Quantitative real-time polymerase chain reaction analyses in SD rats demonstrated that none of the treatments can change the Bdnf or Mtor gene expression, but in FSL rats the treatment with ketamine increased only Bdnf gene expression. The data obtained strengthens the role of NMDA antagonists and NO inhibitors as potential antidepressant drugs, albeit with different effects on Bdnf gene expression.