fixed bugs
added "." at the end of line of DNS name