Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

See if I am running dnsonly using CLI

Discussion in 'General Discussion' started by Erik Ellsinger, Sep 21, 2017.

Tags:
  1. Erik Ellsinger

    Erik Ellsinger Well-Known Member

    Joined:
    Sep 25, 2015
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Is it possible to see if I'm running cPanel DNSonly from the command line?

    It's for a script that needs to know if it's running on a normal cPanel server or a DNSonly server.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, you can simply check to see if the following file exists:

    Code:
    /var/cpanel/dnsonly
    Thank you.
     
Loading...

Share This Page