Skip to content

Installing DNClient

DNClient connects a device to your Managed Nebula network. It comes in three variants:

  • DNClient Desktop is an app for macOS and Windows laptops and workstations. You enroll and manage networks from its menu bar or taskbar icon.
  • DNClient Server runs dnclient as a background service with no user interface. Use it on servers, on Linux, and in containers.
  • Mobile Nebula is the app for iOS and Android phones and tablets.

Each method below ends by enrolling the host with an enrollment code. A Managed Nebula administrator gets the code from the admin panel after creating or re-enrolling the host. If your organization has set up endpoint SSO, DNClient Desktop users can instead enroll by signing in with your identity provider, with no code.

DNClient Desktop supports macOS 13 (Ventura) and later. You need an administrator account to install it, and any network it connects to is available to every user of the computer.

If you use Homebrew, install the dnclient cask:

Terminal window
brew install --cask dnclient

Then open DNClient Desktop and continue to enroll.

  1. Download DNClient Desktop for macOS from the downloads page and open DNClient-Desktop.dmg.
  2. Drag the DNClient Desktop icon onto the Applications shortcut.
  3. Open DNClient Desktop from Spotlight, Launchpad, or the Applications folder.

The first time the app opens, it walks you through letting it run in the background at startup, which it needs to start DNClient connections. After you click “Get started”, macOS shows a notification that a background item was added. Hover over the notification, click Options, then Allow, and enter your password.

  1. Click the DNClient Desktop icon in the menu bar and select “Join network”.
  2. To sign in with your organization’s identity provider through endpoint SSO, click “Authenticate with email” and finish signing in in the browser window that opens.
  3. To use an enrollment code instead, click “Enter it here” next to “Have an enrollment token?”, paste the code, and click “Enroll device”.

The network connects once enrollment finishes and reconnects each time the app starts. To disconnect a network or stop it from connecting at startup, use the DNClient Desktop menu.

  1. Install the dnclient-server cask:
Terminal window
brew install --cask dnclient-server
  1. Install dnclient as a service, start it, and enroll the host, replacing <ENROLL_CODE> with your enrollment code. The service runs the binary from Homebrew’s bin directory, so brew upgrade --cask dnclient-server updates it in place.
Terminal window
sudo dnclient install
sudo dnclient start
sudo dnclient enroll -code <ENROLL_CODE>

DNClient Server for macOS comes as a standalone binary and as a .dmg. The two are identical, except that the .dmg suits offline installs, because its signing information doesn’t need to be fetched from Apple’s servers.

  1. Copy the link for the latest dnclient binary or DNClient-Server.dmg from the downloads page, under “All available architectures”.
  2. From the directory you want dnclient in, download it, replacing <DL_URL> with that link:
Terminal window
curl -O <DL_URL>
  1. If you downloaded DNClient-Server.dmg, mount it and copy the binary out. If you downloaded the binary, make it executable:
Terminal window
sudo chmod +x dnclient
  1. Install dnclient as a service. The service runs the binary from its current directory, so move it first if you want it somewhere else.
Terminal window
sudo ./dnclient install
  1. Start dnclient. As a service, it starts again on every reboot.
Terminal window
sudo ./dnclient start
  1. Enroll the host, replacing <ENROLL_CODE> with your enrollment code:
Terminal window
sudo ./dnclient enroll -code <ENROLL_CODE>

If a host doesn’t connect, check its logs. The Viewing DNClient logs guide covers every variant and platform. Once a host is enrolled and online, you can also stream its logs and run diagnostic commands from the admin panel, without signing in to the machine. See Running host diagnostics.

If you’re switching a computer between DNClient Server and DNClient Desktop, uninstall the one you’re replacing and enroll the computer again with a new code. See re-enroll a host.