2022-08-29 01:04:37 -06:00
|
|
|
#!/bin/bash
|
2023-04-02 13:46:52 -06:00
|
|
|
# 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
|
|
|
|
|
2023-04-02 13:46:52 -06:00
|
|
|
source /etc/wagon/config
|
2022-12-03 18:23:13 -07:00
|
|
|
|
2022-09-08 21:15:30 -06:00
|
|
|
printf 'server %s\n%s\nsend\n' "${DNS_MASTER}" "${1}" \
|
2022-12-03 17:07:03 -07:00
|
|
|
| nsupdate -y "${DNS_KEY}" | tee >(cat 1>&2)
|