fix: use newly created function to resolve domains from hostnames.