diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-02-03 13:57:45 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-02-03 14:02:52 +0530 |
commit | 45f07b6392cfba92912e7488749523b91c764f4f (patch) | |
tree | 9931f8af0021b705a6eb0971c79ebad5bc1b9622 /hosts/kay/modules | |
parent | d5c0a5ff4dc3936443d6bd410c6e5f71c24f3be2 (diff) |
kay/dns: fix race condition in ddns
Diffstat (limited to 'hosts/kay/modules')
-rw-r--r-- | hosts/kay/modules/dns/ddns.nix | 4 |
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 |