Fixed an error in check DnsDomain exist

Added logging function