fix resolv.sh so domains with 3 components are not truncated
and removed the dependency on krb5.conf