Server IP : 104.244.120.118  /  Your IP : 216.73.216.198
Web Server : Apache
System : Linux ded5817.inmotionhosting.com 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 14:34:46 UTC 2026 x86_64
User : persoanlinjuryla ( 1006)
PHP Version : 8.5.13
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0555) :  /../../opt/dedrads/python/../python/../python/../etc/../python/../python/../python/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //../../opt/dedrads/python/../python/../python/../etc/../python/../python/../python/../killdns
#!/bin/bash
#This script is intended to clear lingering DNS. Here is an example of the problems cleared
#[root@ash-sys-pro-imhzone ~]# grep -Rl chases /var/cpanel/users/*
#/var/cpanel/users/system
#[root@ash-sys-pro-imhzone ~]# grep -RH chases /var/cpanel/users/*
#/var/cpanel/users/system:DNS686=tester-domain-chases.com

zone=$1
echo "$zone" | grep -qP '^(([a-zA-Z](-?[a-zA-Z0-9])*)\.)*[a-zA-Z](-?[a-zA-Z0-9])+\.[a-zA-Z]{2,}$' #Validate argument is a domain
result=$?
if [[ $result == 0 ]]
  then
    echo 'Domain found'
  else
    echo 'Valid domain required';
    exit 1
  fi
echo "Executing /scripts/killdns $zone"
/scripts/killdns "$zone"
echo "Killing entry $zone from /etc/userdomains"
sed -i.$(date +%m-%d-%Y) "/^$zone:/d" /etc/userdomains
echo "Killing entry $zone from /var/cpanel/users/*"
shopt -s extglob #required for next line to not have system.bak.bak.bak.bak.bak
sed -i.bak "/DNS[0-9]\+=$zone/d" /var/cpanel/users/!(*.bak)