---
title: "set restart_anycast_with_dns_restart"
canonical: "https://docs.infoblox.com/space/nios86/35757385/set%20restart_anycast_with_dns_restart"
format: markdown
---
<span style="color: #000000">The </span>`set restart_anycast_with_dns_restart`<span style="color: #000000"> command sets the DNS and anycast start and restart sequence to the appliance. This command stops the anycast service during a restart or stop of the DNS service and redirects the traffic present on the anycast IP address to another site. You can use this command only on Grid Master. </span><span style="color: #000000">To view information about the current status of the command, see </span>[*<span style="color: #000000">show restart_anycast_with_dns_restart</span>*](https://infoblox-docs.atlassian.net/wiki/spaces/nios86/pages/35757366)<span style="color: #000000"> .</span>

# <span style="color: #000000">Syntax</span>

`set restart_anycast_with_dns_restart [ on | off ] `

| <span style="color: #000000">**Argument**</span> | <span style="color: #000000">**Description**</span> |
| --- | --- |
| `on` | <span style="color: #000000">Restarting the DNS service stops the anycast service followed by a DNS service stop. The anycast service restarts after the DNS service loads all the zones. In case the DNS service stops, anycast service also stops. The DNS service start triggers anycast service start, after the DNS service loads all the zones.   </span> |
| `off` | <span style="color: #000000">Restarting the DNS service will not trigger the restart of anycast service. In case of the DNS service stop, anycast service stops after approximately 30-60 seconds of DNS service stop.</span><br><span style="color: #000000">In case of DNS service start:</span><br>- <span style="color: #000000">If the DNS service takes more than approximately 30 seconds to load all the zones, anycast service starts at approximately 30 seconds after DNS service starts.</span>
- <span style="color: #000000">If the DNS service loads immediately, anycast service starts immediately after DNS service starts.</span> |

# <span style="color: #000000">Example</span>

<span style="color: #000000">The following is an example to restart anycast. </span>

`Infoblox >`` set restart_anycast_with_dns_restart on `