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

Function add_dns_admin

python3_cron_scripts/setup.py:301–313  ·  view source on GitHub ↗

Whois registrations can be searched based on the contacts associated with the domain. This will add an email address of the DNS Admin to list for contact based searches. This is saved in the config collection.

(mongo_connector, dns_admin)

Source from the content-addressed store, hash-verified

299
300
301def add_dns_admin(mongo_connector, dns_admin):
302 """
303 Whois registrations can be searched based on the contacts associated with the domain.
304 This will add an email address of the DNS Admin to list for contact based searches.
305 This is saved in the config collection.
306 """
307 config_collection = mongo_connector.get_config_connection()
308 now = datetime.now()
309
310 print("Adding DNS Admin: " + dns_admin)
311 config_collection.update_many(
312 {}, {"$addToSet": {"DNS_Admins": dns_admin}, "$set": {"updated": now}}
313 )
314
315
316def add_whois_org(mongo_connector, org):

Callers 1

mainFunction · 0.85

Calls 1

get_config_connectionMethod · 0.45

Tested by

no test coverage detected