MCPcopy Create free account
hub / github.com/adobe/Marinus / add_whois_name_server

Function add_whois_name_server

python3_cron_scripts/setup.py:331–347  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

329
330
331def 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
350def create_zone(zone):

Callers 1

mainFunction · 0.85

Calls 1

get_config_connectionMethod · 0.45

Tested by

no test coverage detected