Feb 3, 2023
6
3
3
Iraq
cPanel Access Level
Root Administrator
Hello there,

I'm asking if there's an alternative for the plugin: account dns check because it's not working.

I have tried to re-install it many times but still hangs up when I request to generate a report

I'm using cPanel 106 on CloudLinux v7

If there's a similar plugin or script

Regards.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,252
2,218
363
cPanel Access Level
Root Administrator
Hey there! This plugin isn't something that is created by cPanel, so I can't be sure how it functions or what all it does.

Can you let me know what you're trying to check? There is almost certainly a manual way to do that work outside of that plugin.
 
Feb 3, 2023
6
3
3
Iraq
cPanel Access Level
Root Administrator
Hey there! This plugin isn't something that is created by cPanel, so I can't be sure how it functions or what all it does.

Can you let me know what you're trying to check? There is almost certainly a manual way to do that work outside of that plugin.

Hello,

the plugin used to show a list of all domains hosted into cpanel and show the IP that points to depending on the DNS so I can check if some site not point to the server or maybe there’s an issue with dns from domain side
It’s possible to do it manually for few domains but it will be better if I can see all domains and its status
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,252
2,218
363
cPanel Access Level
Root Administrator
Thanks for the information. I don't have any graphical ways to perform that type of work on my end. Unfortunately I don't have a way to install that plugin. When I tried to test it on my end, it caused errors with the cPanel interface.

You may want to reach out the developers directly to let them know about this issue:

 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,252
2,218
363
cPanel Access Level
Root Administrator
Can you try this and see if that will work for you?

Code:
for zone in $(ls -1 *.db); do domain="${zone/.db/}"; echo -n "zonefile $zone "; if [[ $(grep $domain /etc/userdomains) ]]; then echo 'is a domain hosted on this server'; else echo 'is *NOT* a domain hosted on this server'; fi; done|grep '*NOT*'
 

ServerHealers

Well-Known Member
Sep 21, 2015
100
57
78
India
cPanel Access Level
Root Administrator
Suhaib Al-Fahdawi

We had a script written to perform this task when we doing migrations. I've now uploaded this script to a Git repo and here is it for you -


This has two drawbacks which we will improve later:

- This will mark those domains hosted through an external CDN like CloudFlare as not hosted on the server due to the IP masking
- This will not fetch the IPs correctly on NAT network servers thus won't work ( On AWS EC2 instances for eg)

Sample Output:

sub.domain.com - 65.105.74.12 [Hosted within this server]
sub2.domain.com - NO_A_RECORD [NOT Hosted within this server]
domain.com - 104.21.58.132 [NOT Hosted within this server] # Due to CloudFlare in use
 
  • Like
Reactions: Suhaib Al-Fahdawi
Feb 3, 2023
6
3
3
Iraq
cPanel Access Level
Root Administrator
Suhaib Al-Fahdawi

We had a script written to perform this task when we doing migrations. I've now uploaded this script to a Git repo and here is it for you -


This has two drawbacks which we will improve later:

- This will mark those domains hosted through an external CDN like CloudFlare as not hosted on the server due to the IP masking
- This will not fetch the IPs correctly on NAT network servers thus won't work ( On AWS EC2 instances for eg)

Sample Output:

sub.domain.com - 65.105.74.12 [Hosted within this server]
sub2.domain.com - NO_A_RECORD [NOT Hosted within this server]
domain.com - 104.21.58.132 [NOT Hosted within this server] # Due to CloudFlare in use

This is great, Thank you so much :)