• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Check if all domains resolve to server

anli

New Pleskian
Hi *,
as time goes by our servers get older and customers come and go. Sometimes the domains are deleted from the server, sometimes this is forgotten. Is there an easy (batch) way to check which domains resolve to the server and which don't?
Have a great weekend!
 
Also looking for a solution for this. Does anyone have any ideas?

There's a similar post with a solution of
Code:
# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do dig $i A +nostats; done

But that's for a linux box, any ideas for Windows?

I can retrieve a list of domains easy enough from Plesk DB but it's the resolving to the server IP (or array of IP's if multiple) that I'd like to know.
 
Back
Top