webnsupdate (0.4.4)

Published 2026-02-11 06:29:06 +01:00 by jalil in jalil/webnsupdate

Installation

[registries.forgejo]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add webnsupdate@0.4.4 --registry forgejo

About this package

An HTTP server using HTTP basic auth to make secure calls to nsupdate

Web NS update

A webserver API for nsupdate. This is only intended for my usecase, so feel free to take inspiration, but don't expect this to be useful to you.

Usage

Note

This was made because I needed it. It probably wont fit your usecase.

Using a flake NixOS configuration add these lines:

{
  inputs.webnsupdate.url = "github:jalil-salame/webnsupdate";
  # inputs.webnsupdate.inputs.nixpkgs.follows = "nixpkgs"; # deduplicate nixpkgs

  # ...
  outputs = {
    nixpkgs,
    webnsupdate,
    ...
  }: {
    # ...
    nixosConfigurations.hostname = let
      system = "...";
      pkgs = import nixpkgs {
        inherit system;
        # IMPORTANT -----------v
        overlays = [webnsupdate.overlays.default];
      };
    in {
      inherit system pkgs;
      modules = [
        webnsupdate.nixosModules.default
        {
          services.webnsupdate = {
            enable = true;
            # ...
          };
        }
      ];
    };
    # ...
  };
}

Update URL format

Follow the Fritz!BOX format for update URLs: https://fritzhelp.avm.de/help/en/FRITZ-Box-7530-AX/avm/024p2/hilfe_dyndns_update_url_bauen

Dependencies

ID Version
axum ^0.8.4
axum-client-ip ^1.1.3
base64 ^0.22.1
clap ^4.5.46
clap-verbosity-flag ^3.0.4
humantime ^2.2.0
miette ^7.6.0
ring ^0.17.14
serde ^1.0.219
serde_json ^1.0.143
thiserror ^2.0.16
tokio ^1.47.1
tower-http ^0.6.6
tracing ^0.1.41
tracing-subscriber ^0.3.20
insta ^1.43.1

Keywords

dns dyndns dynamic-ip
Details
Cargo
2026-02-11 06:29:06 +01:00
1
MIT
33 KiB
Assets (1)
Versions (7) View all
0.4.4 2026-02-11
0.4.3 2025-11-07
0.4.2 2025-10-13
0.4.1 2025-10-08
0.4.0 2025-09-18