Checking for valid DNS labels.
Adding refresh method.