dynamic dns

This commit is contained in:
Andy Killorin 2023-12-16 19:45:53 -06:00
commit fb8a03ae22
Signed by: ank
GPG key ID: B6241CA3B552BCA4

View file

@ -1,3 +1,12 @@
GLOBAL_IP=`dig +short @dns.toys -4 ip`
.PHONY: server server-opt
server: surnames.txt names.txt
GLOBAL_IP=$(GLOBAL_IP) cargo run
server-opt: surnames.txt names.txt
GLOBAL_IP=$(GLOBAL_IP) cargo run --release
surnames.txt:
curl https://raw.githubusercontent.com/Hyneman/moby-project/672f6bdca054c42d375f065ffee87e8ceba0c242/moby/mwords/21986na.mes |\
iconv -f cp1252 - > surnames.txt