Not sure what you’re trying to do exactly but that screams DNS/Gateway/bad configuration problem. I think you may need to revise your network configuration.