Ported domain lookup to OSX. Fixed address info memory leak with domain lookup.