Only add search if the domain is set and add spacing to resolv.conf