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)
| 299 | |
| 300 | |
| 301 | def 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 | |
| 316 | def add_whois_org(mongo_connector, org): |
no test coverage detected