Network Optimius is a lightweight, privacy-focused Linux tool written in pure Bash that automatically selects the best DNS server for your network and location based on real-time latency, packet loss, and jitter measurements.
It can run manually or automatically on a custom schedule (minutes, hours, days, weeks) and is fully reversible, restoring your system back to DHCP at any time.
-
Smart DNS selection
-
Tests router (ISP) DNS
-
Tests public DNS providers (Cloudflare, Google, Quad9, etc.)
-
Chooses the best DNS using a weighted scoring algorithm
-
Advanced network metrics
-
Average latency (ms)
-
Packet loss (%)
-
Jitter (network stability)
-
Automation
-
Run once
-
Run every
30m,1h,1d,1w(custom cron scheduling) -
Safe restore
-
Reverts DNS settings back to DHCP
-
Removes cron jobs cleanly
-
Privacy-first
-
No tracking
-
No telemetry
-
No external services
-
100% local execution
-
Logging
-
Full audit log stored in
/var/log/network-optimuis.log
- Linux distributions using NetworkManager
- Arch Linux / Manjaro
- Ubuntu / Debian
- Fedora
- OpenSUSE
bashiproute2networkmanageriputils(ping)bc- Root privileges (
sudo)
sudo pacman -S --needed iproute2 networkmanager iputils bcsudo apt update
sudo apt install -y iproute2 network-manager iputils-ping bcsudo dnf install -y iproute networkmanager iputils bcsudo zypper install -y iproute2 NetworkManager iputils bcchmod +x noptimuis
sudo ./noptimuis| Input | Meaning |
|---|---|
30m |
Run every 30 minutes |
1h |
Run every hour |
1d |
Run once per day |
1w |
Run once per week |
score = latency + (packet_loss × 10) + (jitter × 2)
Lower score = better DNS.
Restores:
- DHCP DNS
- Auto DNS
- Removes cron jobs
- Runs only on your local machine
- Does not modify router firmware
- Does not affect other devices
- Requires root only for DNS changes
Network-Optimius/
├── noptimuis
├── README.md
└── LICENSE
KarmsDev
#bash #linux #networking #dns #dns-optimizer #network-optimization #devops #sysadmin #automation #cron #network-management #network-monitoring #network-tools #privacy #performance #bash-script
- GPL-3.0 license