From ac44b04d99f26c2a09fe69d03340e85191f7cc2f Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 12 Dec 2022 11:35:47 +0000 Subject: [PATCH] servo: trust-dns: note about maybe using `dig` instead of diff'ing the config --- hosts/servo/services/trust-dns/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosts/servo/services/trust-dns/default.nix b/hosts/servo/services/trust-dns/default.nix index 7441dbbdb..63c3110d2 100644 --- a/hosts/servo/services/trust-dns/default.nix +++ b/hosts/servo/services/trust-dns/default.nix @@ -27,6 +27,8 @@ ${sed} s/%NATIVE%/$ip/ ${./uninsane.org.zone} > ${zone-state}.new # see if anything changed + # TODO: instead of diffing, we could `dig` against the actual deployment. + # - that could be more resilient to races. touch ${zone-state} old_sha=$(${sha256sum} ${zone-state} | ${cut} -f 1 -d' ' ) new_sha=$(${sha256sum} ${zone-state}.new | ${cut} -f 1 -d' ' )