make sure hostanem is correctly set