Linux server1.hosting4iran.com 4.18.0-553.89.1.el8_10.x86_64 #1 SMP Mon Dec 8 03:53:08 EST 2025 x86_64
LiteSpeed
Server IP : 185.208.174.156 & Your IP : 216.73.216.218
Domains : 282 Domain
User : satitravel
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
python3-unbound /
Delete
Unzip
Name
Size
Permission
Date
Action
async-lookup.py
2.16
KB
-rw-r--r--
2022-08-01 11:29
avahi-resolver.py
17.63
KB
-rw-r--r--
2022-08-01 11:29
calc.py
3.27
KB
-rw-r--r--
2022-08-01 11:29
dict.py
4.13
KB
-rw-r--r--
2022-08-01 11:29
dict_data.txt
163
B
-rw-r--r--
2022-08-01 11:29
dns-lookup.py
1.83
KB
-rw-r--r--
2022-08-01 11:29
dnssec-valid.py
2.08
KB
-rw-r--r--
2022-08-01 11:29
dnssec_test.py
1.36
KB
-rw-r--r--
2022-08-01 11:29
edns.py
8.64
KB
-rw-r--r--
2022-08-01 11:29
example8-1.py
2.4
KB
-rw-r--r--
2022-08-01 11:29
idn-lookup.py
2.6
KB
-rw-r--r--
2022-08-01 11:29
inplace_callbacks.py
12.87
KB
-rw-r--r--
2022-08-01 11:29
log.py
4.24
KB
-rw-r--r--
2022-08-01 11:29
mx-lookup.py
2.11
KB
-rw-r--r--
2022-08-01 11:29
ns-lookup.py
1.87
KB
-rw-r--r--
2022-08-01 11:29
resgen.py
3.12
KB
-rw-r--r--
2022-08-01 11:29
resip.py
3.95
KB
-rw-r--r--
2022-08-01 11:29
resmod.py
3.44
KB
-rw-r--r--
2022-08-01 11:29
reverse-lookup.py
1.82
KB
-rw-r--r--
2022-08-01 11:29
Save
Rename
#!/usr/bin/python ''' dnssec-valid.py: DNSSEC validation Authors: Zdenek Vasicek (vasicek AT fit.vutbr.cz) Marek Vavrusa (xvavru00 AT stud.fit.vutbr.cz) Copyright (c) 2008. All rights reserved. This software is open source. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ''' from __future__ import print_function import os from unbound import ub_ctx,RR_TYPE_A,RR_CLASS_IN ctx = ub_ctx() ctx.resolvconf("/etc/resolv.conf") fw = open("dnssec-valid.txt","wb") ctx.debugout(fw) ctx.debuglevel(2) if os.path.isfile("keys"): ctx.add_ta_file("keys") #read public keys for DNSSEC verification status, result = ctx.resolve("www.nic.cz", RR_TYPE_A, RR_CLASS_IN) if status == 0 and result.havedata: print("Result:", sorted(result.data.address_list)) if result.secure: print("Result is secure") elif result.bogus: print("Result is bogus") else: print("Result is insecure")