diff options
Diffstat (limited to 'hosts/kay/modules/dns')
-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 |