Correct host name check
preferred domains
Use preferred domain for non-shortened urls