(hostname)
| 149 | |
| 150 | |
| 151 | def _check_dns(hostname): |
| 152 | debug2(' > dns: %s' % hostname) |
| 153 | try: |
| 154 | ip = socket.gethostbyname(hostname) |
| 155 | debug3('< %s' % ip) |
| 156 | check_host(ip) |
| 157 | found_host(hostname, ip) |
| 158 | except (socket.gaierror, UnicodeError): |
| 159 | pass |
| 160 | |
| 161 | |
| 162 | def _check_netstat(): |
nothing calls this directly
no test coverage detected