• 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

How to identify the current DNS server in Plesk for windows?

Mansoor

New Pleskian
I'm creating a script that will dump the DNS zones in a windows server 2008 running plesk 12. Since windows can have either Microsoft DNS or BIND as the DNS server, they both have different methods to dump the zone files. Is there any reliable way to identify the current DNS server being used from the command line.
Here are the option i have now
1. Check the running process name to check if BIND or MS DNS - Not the best method

Any valuable suggestion will be greatly appreciated. Thank you.
 
You can only have 1 DNS server running at one time (although you can install multiple DNS servers, Plesk will only allow 1 to be running at any 1 time). If you want to check to see which one is running via command prompt then just need to issue:

sv query dns
and
sv query named

(dns is the service for Microsoft DNS while named is the service for BIND)

Look at the state for each, if the state is showing STOPPED then that service is not running, if the service is showing RUNNING then that's the one that's running. You can see an example with the attached screen shot.

If you want to check/switch DNS servers, log into your control panel and navigate to Tools & Settings > Server Components > DNS Server and simply change the DNS server to which one you'd like to use (in fact, under Server Components, the service light up in green is the service that's being used as well without having to remote into your server).

Hope this helps you.
 

Attachments

  • Capture.PNG
    Capture.PNG
    49.2 KB · Views: 5
Back
Top