From 35a609f12cd37c1d39bbb4c35eae0a86147c5fb8 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Thu, 30 May 2024 11:27:52 +0200 Subject: [PATCH] ddns: also update A records --- nixos/modules/ddns.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/ddns.nix b/nixos/modules/ddns.nix index 807949e..af7d725 100644 --- a/nixos/modules/ddns.nix +++ b/nixos/modules/ddns.nix @@ -42,7 +42,8 @@ with lib; let curl_url=$(url "$user" "$password" ${domain}) - ${pkgs.curl}/bin/curl -6 "$curl_url" ${if interface == null then "" else "--interface ${interface}"} + ${pkgs.curl}/bin/curl --ipv4 "$curl_url" ${if interface == null then "" else "--interface ${interface}"} || true + ${pkgs.curl}/bin/curl --ipv6 "$curl_url" ${if interface == null then "" else "--interface ${interface}"} ''; })); };