# Point your domain at your site (no coding)

Source: https://help.ruuster.com/idx/point-your-domain

> Step by step, with no coding, how to put your listings site on your own web address by adding DNS records where you bought your domain, how to use a subdomain beside an existing site, and how to check it.

Your host gives your site an address of its own, such as `listings-site.vercel.app`. This page puts
the site on your own web address instead, such as `www.yourbrokerage.com`. You add one or two small
settings, called **DNS records**, where you bought the domain. It takes about 10 minutes of clicks,
then a wait of up to a day.

Do [Put your site online](https://help.ruuster.com/idx/put-your-site-online) first. This page uses
Vercel as the host, as that one does.

## What a DNS record is

DNS is the internet's address book. A DNS record is one line in it that says which computers answer
for a name. You only need two kinds:

| Record | What it does | Example |
|---|---|---|
| **A record** | Points your bare domain at your host's number address | `yourbrokerage.com` points at a number such as `76.76.21.21` |
| **CNAME record** | Points a name under your domain at your host's name | `www` or `homes` points at a name such as `cname.vercel-dns.com` |

Always use the exact values your host shows you in step 2. The ones above are examples.

## Choose your address first

- **A new site for your whole business:** use `www.yourbrokerage.com`, and point the bare
  `yourbrokerage.com` at it too.
- **Listings beside a site you keep**, such as a Squarespace or Wix site: use a subdomain, such as
  `homes.yourbrokerage.com`. Your existing site stays where it is. You add one CNAME record, and a
  link to the new address in your existing site's menu.

Each MLS approves your web address before real listings show there. An approval for
`yourbrokerage.com` covers `www.yourbrokerage.com`, `homes.yourbrokerage.com` and every other name
under it. [Keys, domains and environment names](https://help.ruuster.com/idx/keys-and-domains)
explains it.

## Before you start

Have these ready:

- **Your domain**, and the sign-in for the company you bought it from. That company is your
  **registrar**: GoDaddy, Namecheap, Squarespace Domains, Cloudflare and so on. If you don't know
  which one it is, search your email for the receipt.
- **Your Vercel project** from [Put your site online](https://help.ruuster.com/idx/put-your-site-online).

## Step 1: Add the address in Vercel

1. In Vercel, open your project, then **Settings**, then **Domains**.
2. Type your address, such as `www.yourbrokerage.com` or `homes.yourbrokerage.com`, and click
   **Add**.
3. If Vercel offers to add the bare domain and send it to `www`, accept. Skip this for a subdomain.

## Step 2: Read the records Vercel asks for

Vercel now lists your address with **Invalid Configuration** beside it, and the records to create.
Keep this page open. You will see one or both of these:

- for `www` or a subdomain: **Type** `CNAME`, **Name** `www` (or `homes`), and a **Value** that is a
  name;
- for the bare domain: **Type** `A`, **Name** `@`, and a **Value** that is four numbers with dots.

## Step 3: Add the records at your registrar

1. Sign in to your registrar in a new browser tab.
2. Open your domain's DNS settings. The menu is named a little differently at each company:

   | Registrar | Where to click |
   |---|---|
   | GoDaddy | **My Products**, then **DNS** beside your domain |
   | Namecheap | **Domain List**, then **Manage**, then **Advanced DNS** |
   | Squarespace Domains | **Domains**, your domain, then **DNS**, then **DNS Settings** |
   | Cloudflare | Your domain, then **DNS**, then **Records** |
   | Any other | Look for **DNS**, **DNS records**, **Zone editor** or **Advanced DNS** |

3. Click **Add record**. Some registrars say **Add new record** or **Add**.
4. For each record Vercel listed, choose the **Type**, type the **Name** (some registrars call it
   **Host**), and paste the **Value** (some call it **Points to** or **Target**). Leave **TTL** as
   it is.
5. Click **Save**.

Three things to watch:

- **If a record with the same Type and Name is already there**, edit it rather than adding a second
  one. Two A records for `@` with different numbers send some visitors to the wrong place.
- **Leave the MX and TXT records alone.** Those run your email.
- **On Cloudflare**, click the orange cloud beside each new record so it turns grey (**DNS only**).

## Step 4: Wait, then check in Vercel

1. Go back to Vercel's **Domains** page and click **Refresh** beside your address.
2. When the records are found, **Invalid Configuration** changes to **Valid Configuration**. Most
   registrars take a few minutes. Some take up to a day.
3. Vercel then sets up the padlock (HTTPS) for your address by itself. That takes another minute or
   two.

## Step 5: Tell your site and your console the new address

1. In Vercel, open **Settings**, then **Environment Variables**. Change `SITE_ORIGIN` to your new
   address, such as `https://www.yourbrokerage.com`, and click **Save**.
2. Open **Deployments**, click the three dots on the newest one, then **Redeploy**.
3. In your Listings API console, open **Keys and domains**. Under **Website addresses your pages run on**, click **Add a
   domain** and type the new address.
4. Open **Website** in your console and set your listing page link to your listing pages on the new
   address, such as `https://www.yourbrokerage.com/homes/{slug}`. Then save.
5. If you use the map, add the new address to your Google Maps key, as in step 5 of
   [Get your Google Maps key](https://help.ruuster.com/idx/google-maps-key).

For real listings, each MLS approves this address. Your go-live request lists it, or you request it
later under **MLS approval for each domain** on **Keys and domains**.
[Going live](https://help.ruuster.com/idx/guide-go-live) has each step.

## Check that it works

Open your new address in a browser. You should see your site, with a padlock in the address bar.
Open your search page and check that the listing cards show.

Your AI coding tool can check it too. Ask it to look up your address with `nslookup` and to load the
page.

## If something goes wrong

| What you see | What it means | What to do |
|---|---|---|
| Vercel still says **Invalid Configuration** after a day | A record has a typing mistake, or an old record is in the way | Compare each record with Vercel's list, letter by letter. Remove an old A or CNAME record with the same name |
| The browser says the site can't be reached | The records haven't spread yet | Wait an hour and try again |
| The browser warns that the connection isn't private | The padlock isn't set up yet | Wait ten minutes after **Valid Configuration** shows, then reload |
| Your old site still shows | Your browser kept the old address | Open the address in a private window, or wait an hour |
| Your email stopped working | An MX record was changed or removed | Put the MX records back as your email company lists them |
| The search box does nothing on the new address | The address isn't on your account's allowed domains | Do step 5, item 3 |

## Another host

The steps are the same with any host: add the address in the host's domain settings, copy the
records it shows, add them at your registrar, wait, and check. Only the values differ.
