- got rid of unnecessary read commands to set variables - de-duplicate the list of nameservers to check before checking