If we get a CNAME response, the domain exists. Maybe the target does
not, but that could change at any time.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# The response did not contain an answer to our question
except dns.resolver.NoAnswer as e:
- response = e.response()
-
- if response:
- # If we have received a CNAME, we will resolve again
- for rrset in response.answer:
- if rrset.rdtype == dns.rdatatype.CNAME:
- for record in rrset:
- hostname = record.target.to_text(omit_final_dot=True)
-
- return self.submit(domain, hostname=hostname)
-
# If we have received no response, that does mean that we might not
# have found the root of the domain, but something at least responded.
status = True