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!

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:
    51
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Code:
    /var/cpanel/dnsonly
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice