Modify resolv.conf directly in script

Change-Id: Ia4f58e5db175bb3dfc730091a395f451d2861404