On Sun, 20 Dec 2015 12:34:40 +, Emil Natan wrote:
> I'm completely new to Python.
> parent_domain = domainname.partition('.')[2]
> try:
> print('Test for parent domain %s' % parent_domain)
> z = dns.resolver.query(parent_domain, 'SOA')
> print('the parent
I'm completely new to Python.
I have the following function to find the parent for domain. It removes the
left most label from the name and then checks if SOA record exists for the
reminder, if not it calls itself recursively removing another label and
checking again for SOA record. It works well
On 2015-12-20, Emil Natan wrote:
> I have the following function to find the parent for domain. It removes the
> left most label from the name and then checks if SOA record exists for the
> reminder, if not it calls itself recursively removing another label and
> checking again