def get_can_enable_dns():
 if has_module(u'DNS'):
  return (True, None)
 else:
  return (False, _(u'PyDNS, which is required to find the domain controller, is not installed.'))

def get_can_enable_dns ( ) : if has_module ( u'DNS' ) : return ( True , None ) else : return ( False , _ ( u'PyDNS, which is required to find the domain controller, is not installed.' ) )
check whether we can query dns to find the domain controller to use .