- Start migration of dns, network & vpn lib,
- Start migration of rx3_net_adm.
This commit is contained in:
19
usr/sbin/ip_host_update
Executable file
19
usr/sbin/ip_host_update
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
host=$1
|
||||
zone=$2
|
||||
ip=$3
|
||||
ttl=$4
|
||||
|
||||
|
||||
|
||||
date="$(date --rfc-3339 seconds)"
|
||||
|
||||
(
|
||||
echo "prereq yxrrset ${host}.${zone}. A"
|
||||
echo "update delete ${host}.${zone}. A"
|
||||
echo "update add ${host}.${zone}. ${ttl} A ${ip}"
|
||||
echo "update delete ${host}.${zone}. TXT"
|
||||
echo "update add ${host}.${zone}. ${ttl} TXT ${date}"
|
||||
echo ""
|
||||
) | nsupdate
|
||||
Reference in New Issue
Block a user