We improve the density-matrix renormalization group (DMRG) evaluation of the Kubo formula for the zero-temperature linear conductance of one-dimensional correlated systems.The dynamical DMRG is used to compute the linear response of a finite system to an applied AC source-drain voltage, then the low-frequency finite-system response is extrapolated to the thermodynamic limit to obtain the DC conductance of an infinite system. The method is demonstrated on the one-dimensional spinless fermion model at half filling. Our method is able to replicate several predictions of the Luttinger liquid theory such as the renormalization of the conductance in an homogeneous conductor, the universal effects of a single barrier, and the resonant tunneling through a double barrier.