Added a catch all for * & @, which are common references to the root domain

This commit is contained in:
Timothy Miller 2022-07-30 20:12:24 -04:00
parent 0e0e9f9989
commit 8acd8e5f59

View File

@ -107,7 +107,7 @@ def commitRecord(ip):
for subdomain in subdomains: for subdomain in subdomains:
subdomain = subdomain.lower().strip() subdomain = subdomain.lower().strip()
fqdn = base_domain_name fqdn = base_domain_name
if subdomain != '': if subdomain != '' and subdomain != '*' and subdomain != '@':
fqdn = subdomain + "." + base_domain_name fqdn = subdomain + "." + base_domain_name
record = { record = {
"type": ip["type"], "type": ip["type"],