Support IP address host in req.subdomains

fixes #2308