fix issue 21,add judge host or dmain, and check domain