summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-02-03 13:57:45 +0530
committersinanmohd <sinan@sinanmohd.com>2024-02-03 14:02:52 +0530
commit45f07b6392cfba92912e7488749523b91c764f4f (patch)
tree9931f8af0021b705a6eb0971c79ebad5bc1b9622 /hosts
parentd5c0a5ff4dc3936443d6bd410c6e5f71c24f3be2 (diff)
kay/dns: fix race condition in ddns
Diffstat (limited to 'hosts')
-rw-r--r--hosts/kay/modules/dns/ddns.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/hosts/kay/modules/dns/ddns.nix b/hosts/kay/modules/dns/ddns.nix
index 5b87968..6d0a944 100644
--- a/hosts/kay/modules/dns/ddns.nix
+++ b/hosts/kay/modules/dns/ddns.nix
@@ -22,7 +22,9 @@
type = "ipv6-up";
text = ''
- ipv6="$(ip -6 addr show dev $1 scope global | grep -o '[0-9a-f:]*::1')"
+ while ! ipv6="$(ip -6 addr show dev "$1" scope global | grep -o '[0-9a-f:]*::1')"; do
+ sleep 0.2
+ done
cat <<- EOF | knsupdate
server 2001:470:ee65::1