Skip to main content

Account DNS Check alternative

Comments

14 comments

  • cPRex Jurassic Moderator
    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
  • Suhaib Al-Fahdawi
    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
    0
  • cPRex Jurassic Moderator
    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
  • Suhaib Al-Fahdawi
    That"s why I"m searching for an alternative like a bash script or another plugin/script
    0
  • cPRex Jurassic Moderator
    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
  • Suhaib Al-Fahdawi
    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
  • cPRex Jurassic Moderator
    I don't have any ready-made tools that would do that.
    0
  • Suhaib Al-Fahdawi
    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
  • ServerHealers

    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

    0
  • Suhaib Al-Fahdawi
    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 -
    0
  • egillette

    Where is the link to the GIT Repo for this?

    0
  • cPRex Jurassic Moderator

    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
  • cPRex Jurassic Moderator

    I've updated the original post with the link and example.

    0

Please sign in to leave a comment.