Scripts and stuff

Loading...

Skip to content
Scripts and stuff
Tel: 123-456-789
  • RSS
  • Home
  • Shell scripts
  • Uncategorised
  • About this site
  • Privacy Policy

domain already exists

Posted on 19/11/2024by Invader ZimCategories:Shell scripts

When you want to add a domain to a directadmin server and you get the message that it already exists but you can’t find it in directadmin, there might be some lingering files left over. This script will let you find them.

#!/bin/bash
DOMAIN=$1

if [[ -z "$DOMAIN" ]] ; then
	echo "Usage: "$0" domain"
	exit;
fi

echo "Bind config          : "`grep $DOMAIN /etc/named.conf`
echo "Bind zone            : "`ls -l /var/named/$DOMAIN.db`
echo "Virtual domains list : "`grep $DOMAIN /etc/virtual/domains`
echo "Virtual domainowners : "`grep $DOMAIN /etc/virtual/domainowners`
echo "Virtual domain config: "`ls -ld /etc/virtual/$DOMAIN`
echo "rndc file            : "`ls -l /var/named/*.nzf`

Invader Zim

take13.net

Comments

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

sixteen − 10 =

Tel: 123-456-789
  • RSS
© Scripts and stuff. All rights reserved.
Back to top