Beispiel #1
0
 def _dns_gethostbyname(self, name):
     """Get host by name wrapper.
     @param name: hostname.
     @return: IP address or blank
     """
     if cfg.processing.resolve_dns:
         ip = resolve(name)
     else:
         ip = ""
     return ip
Beispiel #2
0
 def _dns_gethostbyname(self, name):
     """Get host by name wrapper.
     @param name: hostname.
     @return: IP address or blank
     """
     if cfg.processing.resolve_dns:
         ip = resolve(name)
     else:
         ip = ""
     return ip