MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / _check_dns

Function _check_dns

sshuttle/hostwatch.py:151–159  ·  view source on GitHub ↗
(hostname)

Source from the content-addressed store, hash-verified

149
150
151def _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
162def _check_netstat():

Callers

nothing calls this directly

Calls 4

debug2Function · 0.90
debug3Function · 0.90
check_hostFunction · 0.85
found_hostFunction · 0.85

Tested by

no test coverage detected