REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.36 KB
Close
/home/godevadmin/public_html/upload_images/home/000~ROOT~000/usr/share/doc/python3-unbound/dnssec_test.py
Text
Base64
#!/usr/bin/env python from __future__ import print_function from unbound import ub_ctx, RR_TYPE_A, RR_TYPE_RRSIG, RR_TYPE_NSEC, RR_TYPE_NSEC3 import ldns def dnssecParse(domain, rrType=RR_TYPE_A): print("Resolving domain", domain) s, r = resolver.resolve(domain) print("status: %s, secure: %s, rcode: %s, havedata: %s, answer_len; %s" % (s, r.secure, r.rcode_str, r.havedata, r.answer_len)) s, pkt = ldns.ldns_wire2pkt(r.packet) if s != 0: raise RuntimeError("Error parsing DNS packet") rrsigs = pkt.rr_list_by_type(RR_TYPE_RRSIG, ldns.LDNS_SECTION_ANSWER) print("RRSIGs from answer:", sorted(rrsigs)) rrsigs = pkt.rr_list_by_type(RR_TYPE_RRSIG, ldns.LDNS_SECTION_AUTHORITY) print("RRSIGs from authority:", sorted(rrsigs)) nsecs = pkt.rr_list_by_type(RR_TYPE_NSEC, ldns.LDNS_SECTION_AUTHORITY) print("NSECs:", sorted(nsecs)) nsec3s = pkt.rr_list_by_type(RR_TYPE_NSEC3, ldns.LDNS_SECTION_AUTHORITY) print("NSEC3s:", sorted(nsec3s)) print("---") resolver = ub_ctx() resolver.add_ta(". IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5") resolver.add_ta(". IN DS 20326 8 2 E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D") dnssecParse("nic.cz") dnssecParse("nonexistent-domain-blablabla.cz") dnssecParse("nonexistent-domain-blablabla.root.cz")
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 19
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
async-lookup.py
2.16 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
avahi-resolver.py
17.63 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
calc.py
3.27 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dict.py
4.13 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dict_data.txt
163 B
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dns-lookup.py
1.83 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dnssec-valid.py
2.08 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dnssec_test.py
1.36 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
edns.py
8.64 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
example8-1.py
2.40 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
idn-lookup.py
2.60 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
inplace_callbacks.py
12.87 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
log.py
4.24 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mx-lookup.py
2.11 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ns-lookup.py
1.87 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resgen.py
3.12 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resip.py
3.95 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resmod.py
3.44 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
reverse-lookup.py
1.82 KB
lrw-r--r--
2022-08-01 11:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).