nsbin/add_tele_dns
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

17 lines
436 B
Text
Executable file

FORWARD=/etc/bind/tele.wdt.intern.hosts
REVERSE=/etc/bind/10.10.1.rev
read -p "Name: " name
read -p "Telefonnummer: " tele
read -p "Eintragen (strg+c zum abbrechen) "
if [ "$tele" -le 255 ]; then
echo "$name in A 10.10.1.$tele" >> $FORWARD
echo "$tele in ptr $name.tele.wdt.intern." >> $REVERSE
else
echo "$name bekommt keinen A eintrag, da zu grosse nummer"
fi
echo "$name in TXT \"$tele\"" >> $FORWARD
killall -HUP named