# Forward a domain to another address

> How to set up domain forwarding on ZRAZU: the root and www open the address you give, with code 301 or 302, keeping the path and parameters or not.

URL: https://zrazu.com/en/docs/dns-forward/

Forwarding (a redirect) sends visitors of a domain to another address. For example, `example.com` and `www.example.com` lead to your site on a builder or to your main domain.

It works for domains on ZRAZU name servers. If the domain is not there yet, forwarding starts once it moves: see [the DNS zone on ZRAZU servers](https://zrazu.com/en/docs/dns-zone.md).

## What to know

Turning it on **replaces your A, AAAA and CNAME records for `@` and `www`** with ZRAZU server records. A site on the domain root stops opening and is replaced by the redirect. The cabinet warns you before you click, and after turning it on it shows which of your records were removed. Other records (for example mail) are not changed.

## How to set it up

1. In the [cabinet](https://vse.zrazu.com/domains/) open the domain and its **DNS** tab.
2. In the **Redirect** block click **Set up a redirect**.
3. In **Redirect to** enter the full address starting with `http://` or `https://`, for example `https://shop.example.com/`.
4. Choose the **Redirect type**: **Permanent (301)** for a final move or **Temporary (302)**.
5. If needed, tick **Keep the path and parameters**: then `example.com/page?x=1` opens the matching page on the new address, not its home page.
6. Click **Turn on redirect**. The cabinet says "Redirect saved".

Current settings are shown in the "Now" line. You can change them with **Change** and **Save**.

We issue the certificate for forwarded addresses automatically, so `https://example.com` works too.

## How to turn it off

Click **Turn off** and confirm with **Yes, turn off**. A ZRAZU placeholder page stays on `@` and `www` until you add your own records. Previous records are not restored, so add them again in [the editor](https://zrazu.com/en/docs/dns-zone.md). Examples for a site are in [typical records](https://zrazu.com/en/docs/dns-records.md).

Forwarding can be changed by a role with DNS rights: owner, administrator or technician.

## If it didn't work

- **"The address must start with http:// or https://".** Enter the full address.
- **"Enter an address with a site name, not an IP".** Forwarding to an IP address is not supported.
- **"An address with a login or password is not suitable".** Remove the login and password from the address.
- **"An address with # is not suitable".** Remove the part after `#`.
- **"A domain cannot forward to itself".** Enter a different address.
- **"The address is too long or has spaces or control characters".** Shorten it and remove spaces.
- **"The domain is not on ZRAZU name servers yet".** Forwarding starts once the domain moves to `ns1`–`ns3`.
- **"The redirect is being changed right now".** Refresh the page and try again.
