International Whois Servers no longer show the names of the registering organization. This provides the opportunity to match based on the name server instead. This is saved in the config collection.
(mongo_connector, name_server)
| 329 | |
| 330 | |
| 331 | def add_whois_name_server(mongo_connector, name_server): |
| 332 | """ |
| 333 | International Whois Servers no longer show the names of the registering organization. |
| 334 | This provides the opportunity to match based on the name server instead. |
| 335 | This is saved in the config collection. |
| 336 | """ |
| 337 | config_collection = mongo_connector.get_config_connection() |
| 338 | now = datetime.now() |
| 339 | |
| 340 | print("Adding Whois Name Server: " + name_server.lower()) |
| 341 | config_collection.update_many( |
| 342 | {}, |
| 343 | { |
| 344 | "$addToSet": {"Whois_Name_Servers": name_server.lower()}, |
| 345 | "$set": {"updated": now}, |
| 346 | }, |
| 347 | ) |
| 348 | |
| 349 | |
| 350 | def create_zone(zone): |
no test coverage detected