Usual linux place for dns settings is /etc/resolv.conf - but if it is ubuntu based 127.0.0.1 is correct.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)