Handle IP in getBaseDomain