a simple client to observe dns pollution network situation under Great Firewall.
Project description
dns-observe
a simple client to observe dns pollution network situation under The Great Firewall of China.
So far, only type A DNS queries have been implemented.
Installing
Install and update using pip:
pip install dns-observe
usage
cli
> dns-observe -h
usage: dns-observe [-h] [-s DNS_SERVER] [-t LISTEN_TIME] [-v] domain
Observing DNS pollution
positional arguments:
domain query domain
options:
-h, --help show this help message and exit
-s DNS_SERVER, --dns_server DNS_SERVER
DNS server (default: 1.1.1.1)
-t LISTEN_TIME, --listen_time LISTEN_TIME
listen time (default: 5)
-v, --version show program's version number and exit
python:
> python -m dns_observe api.openai.com
from dns_observe import DNSQuery, RecordType
dns = DNSQuery('1.1.1.1')
dns.query('api.openai.com')
dns.query('claude.ai', RecordType.AAAA)
output:
- Time: 2024-11-22 11:18:16.977688, Name: api.openai.com, TTL: 153, A: 103.56.16.112
- Time: 2024-11-22 11:18:16.978715, Name: api.openai.com, TTL: 206, A: 192.133.77.145
┌ Time: 2024-11-22 11:18:17.140652, Name: api.openai.com, TTL: 46, A: 162.159.140.245
└ Time: 2024-11-22 11:18:17.140652, Name: api.openai.com, TTL: 46, A: 172.66.0.243
How to Packaging Python Projects
https://packaging.python.org/en/latest/tutorials/packaging-projects/
python -m build
# testpypi
py -m twine upload --repository testpypi dist/*
# pypi
py -m twine upload dist/*
dev
> pip install -e .
test
> python tests/test_run.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dns_observe-0.6.6.tar.gz.
File metadata
- Download URL: dns_observe-0.6.6.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5412786c494eb7daf8f0c45681884fe3183e59d031eb70bf3dcc2034c3467d16
|
|
| MD5 |
3439f94ef889a8166905582a1476cc0c
|
|
| BLAKE2b-256 |
4fdf22617d3a54508d8709360c3f30df441694eddb6fcca42308abba1920bd39
|
Provenance
The following attestation bundles were made for dns_observe-0.6.6.tar.gz:
Publisher:
publish-to-test-pypi.yml on xavierskip/dns-observe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dns_observe-0.6.6.tar.gz -
Subject digest:
5412786c494eb7daf8f0c45681884fe3183e59d031eb70bf3dcc2034c3467d16 - Sigstore transparency entry: 1309009819
- Sigstore integration time:
-
Permalink:
xavierskip/dns-observe@36b90d073276ae07240a21d74440b23392d25039 -
Branch / Tag:
refs/tags/0.6.6 - Owner: https://github.com/xavierskip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@36b90d073276ae07240a21d74440b23392d25039 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dns_observe-0.6.6-py3-none-any.whl.
File metadata
- Download URL: dns_observe-0.6.6-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4cf78a9960546294cdf8faa39161a7a11dd09a3212bf58ba734d33f3bce39e9
|
|
| MD5 |
9f0da7bf428a0734393df51c0d6b6ff2
|
|
| BLAKE2b-256 |
2fccf99295ca01d213f0f1285c959e6964ee148dd6bc858b3ebb50d54840767f
|
Provenance
The following attestation bundles were made for dns_observe-0.6.6-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on xavierskip/dns-observe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dns_observe-0.6.6-py3-none-any.whl -
Subject digest:
a4cf78a9960546294cdf8faa39161a7a11dd09a3212bf58ba734d33f3bce39e9 - Sigstore transparency entry: 1309009881
- Sigstore integration time:
-
Permalink:
xavierskip/dns-observe@36b90d073276ae07240a21d74440b23392d25039 -
Branch / Tag:
refs/tags/0.6.6 - Owner: https://github.com/xavierskip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@36b90d073276ae07240a21d74440b23392d25039 -
Trigger Event:
push
-
Statement type: