Remove the sudo command for the resolv call because we can wan't to run the script directly in root