webnsupdate (0.3.7)

Published 2025-08-29 22:48:51 +02:00 by jalil in jalil/webnsupdate

Installation

[registry]
default = "forgejo"

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

[net]
git-fetch-with-cli = true
cargo add webnsupdate@0.3.7

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;
            # ...
          };
        }
      ];
    };
    # ...
  };
}

Dependencies

ID Version
axum ^0.8
axum-client-ip ^1.0
base64 ^0.22
clap ^4
clap-verbosity-flag ^3
http ^1
humantime ^2.2.0
miette ^7
ring ^0.17
serde ^1
serde_json ^1
thiserror ^2
tokio ^1
tower-http ^0.6
tracing ^0.1
tracing-subscriber ^0.3
insta =1.43.1

Keywords

dns dyndns dynamic-ip
Details
Cargo
2025-08-29 22:48:51 +02:00
4
MIT
38 KiB
Assets (1)
Versions (2) View all
0.3.7 2025-08-29
0.3.6 2025-08-29