dotfiles/.bin/OLD/edit-dns

15 lines
180 B
Plaintext
Raw Normal View History

2023-01-10 22:18:46 +01:00
#!/bin/sh
ZONE=codevoid.de
if [ ! -z $1 ]
then
ZONE=$1
fi
2023-01-10 22:18:46 +01:00
ssh -t dns.codevoid.de \
"doas vim /var/nsd/zones/master/$ZONE \
2023-01-10 22:18:46 +01:00
&& doas nsd-control reload"
sleep 2