Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zone "example.com" IN {
- type master;
- file "example.com.zone";
- };
- sed -nie '/"example.com"/,/^};$/d;p;' /etc/named.conf
- #!/bin/sh
- [ $# -lt 1 ] && {
- echo "usage: $0 <domain>"
- exit 1
- }
- domain=$1
- sed -nie '/"$domain"/,/^};$/d;p;' /etc/named.conf
- rndc reload
- echo Zone: $domain deleted successfully
- ./rm-zone.sh example.com
- sed -nie '/"example.com"/,/^};$/d;p;' /etc/named.conf
Add Comment
Please, Sign In to add comment