Skip to main content

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

This will:
  1. Check the GitLab releases API for newer versions
  2. Compare with your current version
  3. Download the correct binary for your OS and architecture
  4. Replace the running executable
  5. 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:
This check has a 3-second timeout so it never delays startup.

JSON Output

For scripting, you can check for updates with JSON output:

Supported Platforms

Auto-update downloads the correct binary for your platform: