Domains & DNS
DNS Setup for Popular Hosting Providers
What DNS records are
DNS (Domain Name System) translates a domain name (your-site.ru) into a server IP address. The main record types are:
| Type | Purpose | Example |
|---|---|---|
| A | Links a domain to an IPv4 address | 185.114.245.100 |
| AAAA | Links a domain to an IPv6 address | 2001:db8::1 |
| CNAME | Alias (points to another domain) | your-site.hosting.ru |
| MX | Mail server | mx1.mail.ru |
| TXT | Text record (verification, SPF) | v=spf1 include:... |
| NS | Domain DNS servers | ns1.reg.ru |
To migrate a site you usually only need to change the A record.
Setup by hosting provider
Timeweb
IP address: shown in the panel → Hosting → Sites → your site → IP address.
If the domain is with Timeweb:
- Domains → your domain → DNS
- Change the A record:
@→ your server's IP - Add an A record:
www→ the same IP
If the domain is with another registrar: Change the DNS servers to:
ns1.timeweb.ru
ns2.timeweb.ru
ns3.timeweb.org
ns4.timeweb.org
Or set an A record with the Timeweb IP at your current registrar.
Beget
IP address: Hosting → Sites → IP address (usually shown on the main page).
If the domain is with Beget:
- Domains → DNS → your domain
- A record
@→ server IP - A record
www→ server IP
Beget DNS servers:
ns1.beget.com
ns2.beget.com
ns1.beget.pro
ns2.beget.pro
REG.RU
IP address: Hosting → your hosting → IP address.
- Domains → your domain → DNS servers and zone management
- If DNS is on REG.RU — edit the zone:
- A record
@→ IP - A record
www→ IP
- A record
- If DNS is elsewhere — set the REG.RU DNS servers:
ns1.hosting.reg.ru
ns2.hosting.reg.ru
SprintHost
DNS servers:
ns1.sprinthost.ru
ns2.sprinthost.ru
Or set an A record to the IP from the panel.
VPS / VDS (your own server)
The IP address is your server's IP. Set an A record at the registrar:
| Record | Name | Value |
|---|---|---|
| A | @ | server IP |
| A | www | server IP |
Checking DNS
From the terminal
# Current A record
dig your-site.ru A +short
# All records
dig your-site.ru ANY
# NS servers
dig your-site.ru NS +short
# Query a specific DNS server
dig @8.8.8.8 your-site.ru A
Online services
- dnschecker.org — check DNS propagation worldwide
- mxtoolbox.com — check MX, SPF, DKIM
- intodns.com — diagnose DNS problems
Common mistakes
1. Old builder CNAMEs
After the migration, delete the CNAME records that pointed to the builder:
# Delete these records:
CNAME @ → your-site.tilda.ws
CNAME www → your-site.tilda.ws
An A record and a CNAME for the same name cannot coexist. If there is a CNAME for @, the A record will not work.
2. Cache not refreshed
The DNS cache can hold old records for up to 48 hours. Flush the local cache:
# macOS
sudo dscacheutil -flushcache
# Windows
ipconfig /flushdns
# Linux
sudo systemd-resolve --flush-caches
3. Forgot about www
If you set an A record only for @ (the root domain) but not for www, the site will not open at www.your-site.ru. Add both records.
4. Wrong TTL
TTL (Time To Live) is how long a record lives in the cache. Before a migration, set a minimal TTL (300-600 seconds) a day in advance so changes propagate faster. Once things have stabilized, set the TTL back to 3600.
FAQ
How long do DNS records take to update?
Changes are usually visible within 15 minutes to 2 hours, but full worldwide propagation can take up to 48 hours. To speed things up, lower the TTL to 300-600 seconds in advance.
A record or CNAME — which one to choose for a domain?
For the root domain (your-site.ru) use an A record with the hosting IP address. Most registrars do not support CNAME for the root. For www you can use either an A record or a CNAME.
Why does the site open at www but not at the main domain?
Most likely the A record is set only for www and not for @ (the root). Add an A record for @ with the same IP address.
Where do I get the IP address for the A record?
The server's IP address is shown in your hosting control panel — under "Hosting", "Sites" or "FTP". On a VPS/VDS it is your server's IP.
Do I need to delete the old builder DNS records?
Yes. After the migration, delete the CNAME records pointing to the builder (for example, *.tilda.ws) — otherwise they will conflict with the new A record.