dnscheck
🔎 A Python module and CLI tool to check DNS health, resolve domains, inspect and configure system DNS settings — made for sysadmins, developers, and network engineers.
📦 Installation
Install from PyPI:
pip install py-dnscheck
🚀 Features
🌐 Resolve domains to IP addresses 📡 Check DNS and network health with ping 🧠 Get system-configured DNS nameservers 🧭 Query authoritative DNS servers (NS records) ⚙️ Change system DNS configuration (Linux only) 🧪 CLI and Python module support
🧑💻 Usage
📘 As a Python Module
from dnscheck import resolve, check_dns_health, get_nameservers, get_authoritative_dns, set_dns
# Resolve a domain
ips = resolve("example.com")
# DNS health check
healthy = check_dns_health("google.com")
# Get current nameservers
dns_servers = get_nameservers()
# Get authoritative DNS
authoritative = get_authoritative_dns("example.com")
# Change system DNS (Linux only)
set_dns(["8.8.8.8", "1.1.1.1"])
💻 As a CLI Tool
# Resolve a domain
dnscheck resolve example.com
# Check DNS health
dnscheck health
# Get current DNS servers
dnscheck nameservers
# Get authoritative DNS
dnscheck authoritative example.com
# Set DNS (Linux only)
dnscheck setdns 8.8.8.8 1.1.1.1
📜 License
MIT License.
🧑💼 Author
Santhosh Murugesan A full-stack network engineer building tools and writing blogs to make life easier for fellow engineers.
Metadata
Release files for py-dnscheck 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py_dnscheck-1.0.1.tar.gz | 4.1 kB | Without provenance | Details for py_dnscheck-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_dnscheck-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for py_dnscheck-1.0.1-py3-none-any.whl |
Total release size: 9.3 kB
Release files / py_dnscheck-1.0.1.tar.gz
| Download URL | py_dnscheck-1.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9d0a94477a4f39be5b8ca174a52734ab0ea0dc8c5851a558e216108f7a62822
|
|
BLAKE2b-256 checksum How to use checksums |
60189661e34ea1a9beaa3bdbccd5855794172991bebfa3aea6362a9a1965b6ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / py_dnscheck-1.0.1-py3-none-any.whl
| Download URL | py_dnscheck-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1abc6f79c006f95c0857324951c4e4751954660524ef07c056777f10ac02a8d
|
|
BLAKE2b-256 checksum How to use checksums |
5cf6c7e8251a5b59c4ac01a934aababe7564d51d2b0b10ed911d7a8c17ef9754
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for py-dnscheck 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.