refactor:add domain length validation,domain without last dot length >=3
and <=253