LightYear
/Docs
DocsNetworkingConfigure DNS for Your Domain

Configure DNS for Your Domain

Point your domain to a LightYear server by configuring A, CNAME, MX, and TXT DNS records.

beginner
6 min read
LightYear Docs Team
Updated April 24, 2026
dnsdomaina-recordcnamemx
Ready to get started?

DNS (Domain Name System) translates human-readable domain names into IP addresses. This guide explains how to configure the most common DNS record types to point your domain to a LightYear server.

DNS Record Types

TypePurposeExample
AMaps a hostname to an IPv4 addressexample.com → 45.77.x.x
AAAAMaps a hostname to an IPv6 addressexample.com → 2001:db8::1
CNAMEAliases one hostname to anotherwww → example.com
MXSpecifies mail servers for a domainexample.com → mail.example.com
TXTStores arbitrary text (SPF, DKIM, verification)v=spf1 include:....
NSDelegates a zone to name serversns1.registrar.com

Step 1 — Find Your Server's IP Address

In the LightYear control panel, navigate to Servers → Your Server. The public IP address is displayed in the server overview.

Step 2 — Add an A Record

Log in to your domain registrar's DNS management panel and add:

TypeNameValueTTL
A@45.77.x.x300
Awww45.77.x.x300

The @ symbol represents the root domain (example.com). Using 300 seconds (5 minutes) TTL during initial setup allows quick changes; increase to 3600 once confirmed.

Step 3 — Verify DNS Propagation

DNS changes can take up to 48 hours to propagate globally, though typically 5–30 minutes is sufficient.

Check propagation from your terminal:

>_BASH
$dig example.com A +short
OUTPUT
45.77.x.x
>_BASH
$nslookup example.com 8.8.8.8
OUTPUT
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
Name:   example.com
Address: 45.77.x.x

Step 4 — Add a CNAME for www

If you prefer to use a CNAME for www instead of a second A record:

TypeNameValueTTL
CNAMEwwwexample.com300

[!NOTE] You cannot use a CNAME for the root domain (@). The root domain must use an A record.

Configure Email (MX Records)

To receive email at your domain, add MX records pointing to your mail provider:

TypeNameValuePriorityTTL
MX@mail.example.com103600
Amail45.77.x.x3600

Add SPF to Prevent Email Spoofing

TEXT
v=spf1 ip4:45.77.x.x include:_spf.google.com ~all

Add this as a TXT record on the root domain (@).

Was this article helpful?

Your cookie choices for this website

This site uses cookies and related technologies, as described in our privacy policy, for purposes that may include site operation, analytics, and enhanced user experience. You may choose to consent to our use of these technologies, or manage your own preferences. Cookie policy