-
Notifications
You must be signed in to change notification settings - Fork 0
/
zonefile.sh
22 lines (22 loc) · 1.05 KB
/
zonefile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
echo Generating Domain Zonefile $1 with IP $2
echo "\$TTL 86400 ">$ZPATH/$1
echo "" >>$ZPATH/$1
echo "@ IN SOA $NS1. $ZEMAIL. ( ">>$ZPATH/$1
echo " $ZSERIAL1$ZSERIAL2 ; Serial">>$ZPATH/$1
echo " $ZRFRESH ; Refresh">>$ZPATH/$1
echo " $ZRETRY ; Retry">>$ZPATH/$1
echo " $ZEXPIRE ; Expire">>$ZPATH/$1
echo " $ZMIN ) ; Minimum">>$ZPATH/$1
echo "">>$ZPATH/$1
echo " IN NS $NS1.">>$ZPATH/$1
echo " IN NS $NS2.">>$ZPATH/$1
echo " IN NS $NS3.">>$ZPATH/$1
echo "*.$1. IN A $ZPIP">>$ZPATH/$1
echo "$1. IN A $ZPIP">>$ZPATH/$1
echo "$1. IN MX $ZMX1P $ZMX1A. ">>$ZPATH/$1
echo "" >>$ZPATH/$1
echo "" >>$ZPATH/$1
echo ";;;;;;;;;;;;;;;;;;;;;;;" >> $ZPATH/$1
echo "">>$ZPATH/$1
echo "_acme-challenge TXT '""'">>$ZPATH/$1
echo Done...