wagon/back/lib/ns_update_send

10 lines
259 B
Bash
Executable File

#!/bin/bash
# FILE: wagon:back/lib/ns/update/send
# DESCRIPTION: Send stuff to the nsupdate server
# USAGE: send cmd
source /etc/wagon/config
printf 'server %s\n%s\nsend\n' "${DNS_MASTER}" "${1}" \
| nsupdate -y "${DNS_KEY}" | tee >(cat 1>&2)