add detect domain name.java