Account DNS Check alternative
-
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. 0 -
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 status0 -
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: 0 -
That"s why I"m searching for an alternative like a bash script or another plugin/script 0 -
Can you try this and see if that will work for you? 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*'
0 -
This code just to match between the dns zones and hosted sites What I need is to check if the hosted site is pointed to the server ip 0 -
I don't have any ready-made tools that would do that. 0 -
Thank you for responding. I will try to reaching the developer of account dns check and let"s hope if someone has a solution thanks again 0 -
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 use0 -
Where is the link to the GIT Repo for this?
0 -
egillette - I'll grab that tomorrow - it looks like this thread was one of the ones where the links didn't migrate from last years' Forums migration.
0 -
I've updated the original post with the link and example.
0
Please sign in to leave a comment.
Comments
14 comments