goodbye ydns
This commit is contained in:
parent
3ce8688070
commit
cf0c23f54f
41
jobs.nix
41
jobs.nix
@ -15,47 +15,6 @@ with lib;
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.ydns = {
|
|
||||||
description = "update ydns address record";
|
|
||||||
wants = [ "network-online.target" ];
|
|
||||||
after = [ "network-online.target" ];
|
|
||||||
startAt = "*:0/30";
|
|
||||||
|
|
||||||
serviceConfig.Type = "oneshot";
|
|
||||||
serviceConfig.environmentFile = config.secrets.environments.ydns;
|
|
||||||
|
|
||||||
path = with pkgs; [ curl cacert gawk iproute ];
|
|
||||||
environment = {
|
|
||||||
YDNS_HOST = config.var.hostname;
|
|
||||||
CURL_CA_BUNDLE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
||||||
};
|
|
||||||
|
|
||||||
script = ''
|
|
||||||
update() {
|
|
||||||
ret=$(curl -$1 --basic --silent \
|
|
||||||
-u "$YDNS_USER:$YDNS_PASSWD" \
|
|
||||||
"https://ydns.io/api/v1/update/?host=$YDNS_HOST&ip=$2" || exit 0)
|
|
||||||
|
|
||||||
case "$ret" in
|
|
||||||
ok)
|
|
||||||
echo "updated successfully: $YDNS_HOST ($2)"
|
|
||||||
;;
|
|
||||||
|
|
||||||
badauth)
|
|
||||||
echo "updated failed: $YDNS_HOST (authentication failed)"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo "update failed: $YDNS_HOST ($ret)"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
update 4 "$(curl -s -4 https://ydns.io/api/v1/ip)"
|
|
||||||
update 6 "$(ip addr show mngtmpaddr | awk '/inet6/{print $2; exit}' | cut -d/ -f1)"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.backup =
|
systemd.services.backup =
|
||||||
let
|
let
|
||||||
saved = pkgs.writeText "backup-saved" ''
|
saved = pkgs.writeText "backup-saved" ''
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
# Configures the bit. zone
|
# Configures the bit. zone
|
||||||
resolveNamecoin = true;
|
resolveNamecoin = true;
|
||||||
dns.port = 54;
|
dns.port = 54;
|
||||||
settings.export-etc-hosts = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Public DNS resolver
|
# Public DNS resolver
|
||||||
|
@ -1,64 +1,63 @@
|
|||||||
U2FsdGVkX19Beh+m1FJMvUT8YVRn9/SaJTpPC7OlZt/wPuLTZACeborU3sKPkV6/
|
U2FsdGVkX19qvOTKGVfKbHgmdTUafGXdmoCA97hKTs9KeN1qe3GlpK73jm63uq/h
|
||||||
qIhjM4zLrN3+2ILD9aHP0cqTrY6WAJZDHwqgRXz5v4M7x5LGP1FUXQ/Sm1IjQ7HG
|
IPaJK4SuWEwXP6tLVMTp0SudsJ/fjyI0Edf12j4rxq7v/tF/SsdBnJf+I5QphUhq
|
||||||
k9tVZFMcQ02EnxBiYR9P8GJDfjJ+iBu2CodzxcCIRJqvLtFh90UP7Atk9EIN+Wqr
|
P9gR4fg4aAoWnX0PO6DjZvVqTEsDyCAaSP8jaEAQ7lMeOMboaMawpQh8OPN8+wyg
|
||||||
k22RW2mS8pFqnnHtYupnrs6wPs2VDV7qk5jsdwUKX3nN3mqF1OWnlCnqsWpTnKKQ
|
B0JoJPszoeCLLegTreGnNLColeLiN5kyucGscu+GfidnR3y/QRRqRH0NW+5RN1ZC
|
||||||
TAfQBKIyTdzh8Q05OIEoI3eN1QvBtKmMHrjtvVPjlnjh38hf/2G51cRJDri1u+Xj
|
rI45Q+n8d4dmmWZ/uSv2QVfgMxq6OFPM1QsWGbUpU6eH35G2tMh/cBqaPoZxh/ve
|
||||||
bwz10u0mqKLqpFcW6TMIYBiixBHZfClrZ7ZqWKvaaM2EwSD/4jWU5mi51kdyvovJ
|
1Jh0Emg9U6HRG7IPP/EWIAjCusVximsB1BlF6RInHPq2DzFpZbtSxyCR28dL/wNN
|
||||||
Fued7ng7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NQ6FvPZOOmPdH
|
||||||
XHntFyCU5EVsW8k3FLJmJNMJQcMdS7vehnLNNFsnc3iltpbNknXg7Z0ZvUePlwF7
|
YcHX4LzrTtak7Xfu5lWT1h5leWG5iEHTpzj3Lvkdfb1Q38maqGGv7TQEQkHhQIfe
|
||||||
wQD66lPzA96sc5rfSGvUZcAg0d3GfX6gcb9EPE0egu2sqqz624ZkhconcQ02ldef
|
/RRwMmPObImKt129XslxTT7g5j0=
|
||||||
rPPURbVrgYuVHKDff2n36bc=
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
U2FsdGVkX1+5F6P8h69+QAnCJMdTCeqcwHAhi7MkI7FXIe8QkyTm6p+/9Q/cNXYL
|
|
||||||
LooOUU2iwIpzfsllori+qaQ5g6wR1nHJc3MM0KuSWupwLIVxK4YbM6E3bA==
|
|
Loading…
Reference in New Issue
Block a user