powerdns-tools/bin/vdns-rr-rep.sh

30 lines
631 B
Bash
Raw Normal View History

2024-02-07 12:10:18 -08:00
#!/bin/bash
#
# pdns-tools
# https://git.stack-source.com/msb/pdns-tools
# Copyright (c) 2024 Matthew Saunders Brown <matthewsaundersbrown@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# load include file
source /usr/local/sbin/pdns.sh
help()
{
/usr/local/sbin/pdns-rr-rep.sh -p $thisfilename -h
}
pdns:getoptions "$@"
# check for zone
if [[ -z $zone ]]; then
echo "zone is required"
exit 1
fi
zone_exists=$(/usr/local/bin/vdns-zone-ext.sh -z $zone)
if [[ $zone_exists = "true" ]]; then
2024-02-20 15:33:23 -08:00
/usr/local/sbin/pdns-rr-rep.sh "$@"
2024-02-07 12:10:18 -08:00
else
echo Zone $zone not found.
fi