dotfiles/.bin/edit-dns
2024-01-17 18:18:42 +01:00

15 lines
180 B
Bash
Executable File

#!/bin/sh
ZONE=codevoid.de
if [ ! -z $1 ]
then
ZONE=$1
fi
ssh -t dns.codevoid.de \
"doas vim /var/nsd/zones/master/$ZONE \
&& doas nsd-control reload"
sleep 2