How to Identify Abandoned or Inactive cPanel accounts? [EASY GUIDE]☑️

How to Identify Abandoned or Inactive cPanel accounts? [EASY GUIDE]☑️

Today in this short tutorial you will learn about how to find cPanel accounts with primary domains that do not resolve to the cPanel & WHM server. A domain that resolves to another server’s IP address (or does not resolve at all) is one indicator of an abandoned account. So come let us watch this video on how to identify cPanel accounts with primary domains that do not resolve to your cPanel & WHM server:

Follow the steps to identify cPanel accounts with primary domains that do not resolve to the cPanel & WHM server:

Step::1 Login to PuTTy

Step::2 Copy the command given below to identify abandoned or inactive cPanel accounts.

for user in $(whmapi1 listaccts | awk '/user:/ {print $2}'); do domain=$(whmapi1 accountsummary user=$user | awk '/domain:/ {print $2}'); assignedip=$(whmapi1 accountsummary user=$user | awk '/ip:/ {print$2}') ; dnsip=$(dig +short $domain); dnsmx=$(dig MX +short $domain @8.8.8.8 | awk '{print $2}' | xargs dig +short); if [[ $dnsip != $assignedip ]]; then echo -n "$user:$domain - A - FAILS"; if [[ "$dnsmx" == "$assignedip" ]]; then echo -e " but MX for $user:$domain does point locally"; else echo ""; fi; fi ; done

It will output a list of domains that do not resolve to their cPanel account’s assigned IP address.

Important Point to be considered– The command does not perform a DNS check on Addon Domains, Aliases, or Subdomains.

That’s it!!!

For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channelhttps://youtube.com/redserverhost.com

Facebook Page- https://facebook.com/redserverhost

Twitter Page- https://twitter.com/redserverhost.com

If you have any query, feel free to let us know via the comments section below.

Thanks for Reading!!!

Tags: cheap linux hostingbuy linux hostingcheap reseller hostingbuy reseller hostingbest reseller hostingcheap web hostingcheapest web hostingcheapest reseller hosting,  cheap reseller hostcheap linux hostcheapest linux hostingbest linux hostingbest web hosting

 

Scroll to Top