A constant function g won't work. Here is an example which shows why. All my examples will use ordinary Lebesgue measure, and X=some subset of the real line, in fact, X=some subset of (0,\infty). Draw pictures of all these examples!
Example: f(x)=1/x^2 on X=(1,\infty). f_n doesn't matter too much, but let's say
f_n(x)=f\cdot\chi_{[1,n]} where \chi_A denotes the characteristic function of A (i.e., 1 on A and 0 elsewhere).
Then f is integrable, i.e. \int|f|<\infty but the space X=(1,\infty) doesn't have finite measure, so (nonzero) constant g won't be integrable.
-----
OK, so can you use DCT anyway with a different g? I know two main versions of DCT. Version 1 requires a single dominating function g that dominates all the f_n simultaneously. Version 2 only requires a sequence of dominating functions g_n.
Version 1 is certainly in your book and/or notes. Look to see if you have Version 2 available:
DCT 2: Suppose g_n is a sequence of integrable functions, lim g_n=g (a.e.), g is integrable, f_n is a sequence of measurable functions, |f_n|\le g_n, lim f_n=f (a.e.), and
\lim\int g_n=\int g
Then \lim\int f_n=\int f
Here is an example which shows that Version 1 (with a single g) is not going to work:
Example: X=(0,\infty), f_n(x)=\frac1n\cdot\chi_{[n,n+1]} and f\equiv0. Note that \int f_n=1/n
Any g that would dominate all f_n simultaneously would have \int g\ge\sum_{n=1}^{\infty} \frac1n=\infty
-----
Version 2 will work. Do you have it available to use?