wagon/back/lib/ns_update_send

10 lines
259 B
Plaintext
Raw Normal View History

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