INNER CODE UNIT · Python
verify_dns
kubernetes/k8s.io · dns/check-zone.py:119
def verify_dns(queries):
"""
Iterate over the queries comparing the responses to the record configuration
"""
dns_error = False
for record, responses in sorted(queries.items(), key=lambda d: d[0]):
record_error = False
# Print out a log each record
stdout.write(record.fqdn)
stdout.write(',')
stdout.write(record._type)
stdout.write(',')
stdout.write(unicode(record.ttl))
# pull out the values we want to configure for this record
record_values = record_value_list(record)