☁️Hosting·4 min read

DNS Setup for Hosting

Point your domain to your hosting instance with the correct DNS records.

Automatic DNS (Recommended)

When you link a domain through NexusHost:

1.Go to your hosting instance detail page
2.Click "Link Domain"
3.Select a domain that you own in NexusHost
4.An A record is auto-created pointing to your server IP

This is the easiest and recommended approach.

Manual DNS Configuration

If your domain is registered elsewhere, configure these records:

Root Domain

TypeNameValueTTL
A@YOUR-SERVER-IP3600

WWW Subdomain

TypeNameValueTTL
CNAMEwwwyourdomain.com3600

Subdomains

For each subdomain (api, blog, app):

TypeNameValueTTL
AapiYOUR-SERVER-IP3600
AblogYOUR-SERVER-IP3600

Email DNS (if hosting email on the server)

TypeNameValuePriority
MX@mail.yourdomain.com10
AmailYOUR-SERVER-IP
TXT@v=spf1 a mx ~all

Verifying DNS

After setting records, verify propagation:

Use https://dnschecker.org to check global propagation
Or in terminal: dig yourdomain.com A
DNS changes typically propagate in 1-4 hours (up to 48 in rare cases)

Multiple Domains on One Server

You can point multiple domains to the same server IP, then use virtual hosts (Apache) or server blocks (Nginx) to serve different content per domain.

Knowledge Base — NexusHost | NexusHost