Add resolv.conf and change main to use that file.