Auto-Update
DNS-MNS v3.0.0 includes a built-in self-update mechanism that checks for new releases on GitLab and downloads the correct binary for your platform.Usage
- Check the GitLab releases API for newer versions
- Compare with your current version
- Download the correct binary for your OS and architecture
- Replace the running executable
- Report success
How It Works
- Queries
https://gitlab.com/api/v4/projects/E-Gurl%2Fdns-mns/releases - Uses semantic versioning (semver) to compare versions
- Downloads the matching binary:
dns-mns-{os}-{arch}(e.g.,dns-mns-linux-amd64) - Performs atomic replacement: backup old binary, install new one, clean up
Startup Check
When running in interactive mode, DNS-MNS performs a non-blocking background version check on startup. If a newer version is available, you’ll see a notification:JSON Output
For scripting, you can check for updates with JSON output:Supported Platforms
Auto-update downloads the correct binary for your platform:| Platform | Binary Name |
|---|---|
| Linux x86_64 | dns-mns-linux-amd64 |
| Linux ARM64 | dns-mns-linux-arm64 |
| macOS Intel | dns-mns-darwin-amd64 |
| macOS Apple Silicon | dns-mns-darwin-arm64 |
| Windows x86_64 | dns-mns-windows-amd64.exe |