| 1 |
"""View host names.""" |
| 2 |
|
| 3 |
from censys.search import CensysHosts |
| 4 |
|
| 5 |
h = CensysHosts() |
| 6 |
|
| 7 |
# Fetch a list of host names for the specified IP address. |
| 8 |
names = h.view_host_names("1.1.1.1") |
| 9 |
print(names) |
| 10 |
# [ |
| 11 |
# "one.one.one.one", |
| 12 |
# ... |
| 13 |
# ] |