---
title: "set safemode"
canonical: "https://docs.infoblox.com/space/nios86/35888055/set%20safemode"
format: markdown
---
The `set`` ``safemode` command disables DNS and DHCP services. Use this command to troubleshoot a NIOS appliance with unreliable services.  
This command restarts all the services, including DNS and DHCP. DNS and DHCP remain active only long enough to write `named.conf` and `dhcp.conf` files. These services then shut down. All other services remain functional. This allows you to review the `named.conf` and `dhcp.conf` files to determine and alleviate the cause of the appliance distress.  
Once you have determined the problem, you can reinstate DNS and DHCP services using the [*<span style="color: #0000ff">set nosafemode</span>*](https://infoblox-docs.atlassian.net/wiki/spaces/nios86/pages/35823387) command.

# Syntax

`set safemode`

This command has no arguments.

# Example

`Infoblox > ``set`` ``safemode`