- curIPv4 = getCurIPv4(domain)
- curIPv6 = getCurIPv6(domain)
- if verbose:
- print("Current status of domain {0} is: IPv4 address '{1}', IPv6 address '{2}'".format(domain, curIPv4, curIPv6))
+ res = getResolver(server)
+ if verbose >= VERBOSE_FULL:
+ print("Resolving names using {}".format(res.nameservers))
+ curIPv4 = getCurIP(domain, 'A', res)
+ curIPv6 = getCurIP(domain, 'AAAA', res)
+ if verbose >= VERBOSE_FULL:
+ print("Current status of domain {} is: IPv4 address '{}', IPv6 address '{}'".format(domain, curIPv4, curIPv6))