• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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: 6
Back
Top