Merge pull request #29 from cnnic/dev

merge from cnnic
fix bug: domain validate problem;
update sql.
Merge pull request #516 from forumbyr/master

fix bug: domain validate problem;