0
0
mirror of https://github.com/thegeeklab/corenetworks.git synced 2024-11-14 06:40:39 +00:00

fix example formatting

This commit is contained in:
Robert Kaussow 2020-04-15 17:20:16 +02:00
parent ffcd291619
commit 51b2b71374

View File

@ -35,7 +35,13 @@ try:
records = dns.records(zone="example.com") records = dns.records(zone="example.com")
print(records) print(records)
# [{'name': '@', 'ttl': '1800', 'type': 'SOA', 'data': 'ns1.core-networks.de. [...]'}, {'name': 'test', 'ttl': '60', 'type': 'A', 'data': '1.2.3.4'}, {'name': '@', 'ttl': '86400', 'type': 'NS', 'data': 'ns1.core-networks.de.'}, {'name': '@', 'ttl': '86400', 'type': 'NS', 'data': 'ns2.core-networks.eu.'}, {'name': '@', 'ttl': '86400', 'type': 'NS', 'data': 'ns3.core-networks.com.'}] # [
# {'name': '@', 'ttl': '1800', 'type': 'SOA', 'data': 'ns1.core-networks.de. [...]'},
# {'name': 'test', 'ttl': '60', 'type': 'A', 'data': '1.2.3.4'},
# {'name': '@', 'ttl': '86400', 'type': 'NS', 'data': 'ns1.core-networks.de.'},
# {'name': '@', 'ttl': '86400', 'type': 'NS', 'data': 'ns2.core-networks.eu.'},
# {'name': '@', 'ttl': '86400', 'type': 'NS', 'data': 'ns3.core-networks.com.'}
# ]
filtered = dns.records(zone="example.com", params={"type": ["A", "AAAA"]}) filtered = dns.records(zone="example.com", params={"type": ["A", "AAAA"]})
print(filtered) print(filtered)