1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-26 00:41:23 +00:00

16 lines
260 B
Python
Raw Normal View History

2011-03-25 11:23:32 -05:00
#!/usr/bin/python
import ldns
#Read zone from file
zone = ldns.ldns_zone.new_frm_fp(open("zone.txt","r"), None, 0, ldns.LDNS_RR_CLASS_IN)
print zone
print "SOA:", zone.soa()
for r in zone.rrs().rrs():
print "RR:", r
zone = ldns.ldns_zone()
#print zone