Do you want the hydrogen bonds between a specific protein residue and a specific nucleotide? If that's the case, just make each residue its own group and select those two groups when prompted by g_hbond.
If that's how it is listed in the input file, yes. The 'r' option always takes an integer value or range of values for the desired residue(s). It is simple to check the output to make sure that the atom numbers correspond to the residue(s) you want to analyze.