Apple IPv6 $http Ionic reject

Yesterday I have tried to change CDVReachability.m to work with “reachabilityWithHostName” instead of “reachabilityWithAddress” but I don’t know how I can do it because I don’t know where can I obtain the hostname instead IP address. I have tried with AFNetworkReachabilityManager too, changing “managerForAddress” instead of “managerForDomain” but i’m unable to do it too. Anyone can help me, please?