mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 15:44:21 +00:00
ldns base 1.6.9 from tarball
This commit is contained in:
1 parent
d09f96d44f
commit
579927b53a
240 files changed
+115445
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
|
||||
Reference in new issue
Block a user