# Where to edit DNS
A domain is the site's name, by which a computer finds the server with the needed site. To link a domain to a server, first find out whether your domain registrar has its own NS servers and whether you can edit DNS records.
Most popular registrars let you change DNS records directly with them.
If your registrar doesn't let you change DNS
Connect your site to Cloudflare first. After that, you'll have full control over the domain's DNS records and good free protection of your site from DDoS attacks.
# DNS records
In the control panel of your DNS provider or registrar, add two records. For example, if the public IPv4 address of your service is 12.34.56.78:
| Type | Name | Value |
|---|---|---|
A | @ | 12.34.56.78 |
A | * | 12.34.56.78 |
The record named @ links only the root domain. The record named * is needed to link the domain with all its subdomains.
If the server was ordered with the NAT option, use the shared public address from the ports table as the value instead of the server's own address, for example 23.189.104.254. See the NAT section for details.
Adding DNS records can take from 5 minutes to 24 hours, depending on the provider. You can check the current records with the Google Admin Toolbox (opens new window) service. If you've already configured a web server, simply open the domain in a browser to check.
# Server with NAT skip this if you don't have the NAT option
With the NAT option, public ports 80 and 443 can't be occupied directly. To host a small site, use Nginx Proxy Manager.
# Check that the domain is linked
Add the DNS records with the shared public address as described above and open the domain in a browser. If you see the Rifty information page about connecting Nginx Proxy Manager, the domain is successfully linked.
# Open Nginx Proxy Manager
Nginx Proxy Manager opens from the service page in the Rifty control panel. Its interface looks like this:
# Add a proxy host
Specify where to direct traffic for the linked domain. Go to Hosts › Proxy Hosts and click Add Proxy Host on the page that opens.
In the window that appears, enter the domain and the server's "Main IP".
If the web server is running on another port (not 80), you can specify it right here, without port forwarding. For example, frontend and backend frameworks may occupy ports 4200, 5173, 8080 and similar, while the Apache and Nginx web servers in HTTP mode work on the standard port 80.
# Enable HTTPS
To avoid issuing a certificate manually, select Let's Encrypt certificate issuance on the SSL tab. It's free: the server can serve only HTTP, while clients access the site via the secure HTTPS protocol.

Once the host (domain proxy rule) is added and the domain is linked, your site will immediately become available.