#!/bin/bash hostname=$1 type=$2 # A or AAAA domain=dyn.colgarra.priv.at echo -e "update delete $hostname.$domain $type\n" | nsupdate -l