๐ Domain & DNS โ
This page explains how to point your domain name to your KitchenAsty server.
๐ What You Need โ
- ๐ A registered domain name (e.g.,
yourdomain.com) - ๐ฅ๏ธ Your server's public IP address (e.g.,
203.0.113.50) - ๐ง Access to your domain registrar's DNS settings
1๏ธโฃ Step 1: Access Your DNS Settings โ
Log in to your domain registrar (Namecheap, Cloudflare, GoDaddy, Google Domains, etc.) and navigate to the DNS management page for your domain.
2๏ธโฃ Step 2: Create DNS Records โ
Add the following A records pointing to your server's IP address:
| Type | Name | Value | TTL |
|---|---|---|---|
| A | admin | 203.0.113.50 | 300 |
| A | order | 203.0.113.50 | 300 |
| A | api | 203.0.113.50 | 300 |
This creates three subdomains:
- ๐ง
admin.yourdomain.comโ Admin Dashboard - ๐
order.yourdomain.comโ Customer Storefront - ๐
api.yourdomain.comโ API Server
โ๏ธ Using Cloudflare?
If you use Cloudflare as your DNS provider, you get free DDoS protection and caching. Set the Proxy status to "Proxied" (orange cloud icon) for the admin and order subdomains. For the api subdomain, you may want to keep it "DNS only" (grey cloud) to avoid issues with WebSocket connections, unless you configure Cloudflare WebSocket support.
3๏ธโฃ Step 3: Verify DNS Propagation โ
DNS changes can take anywhere from a few minutes to 48 hours to propagate, though it's usually under 10 minutes.
Check propagation from your server:
# Check admin subdomain
dig admin.yourdomain.com +short
# Should return: 203.0.113.50
# Check order subdomain
dig order.yourdomain.com +short
# Should return: 203.0.113.50
# Check API subdomain
dig api.yourdomain.com +short
# Should return: 203.0.113.50If dig is not installed:
sudo apt install -y dnsutilsYou can also check propagation from external tools:
- ๐ dnschecker.org
- ๐ whatsmydns.net
๐ Alternative: Single Domain with Path-Based Routing โ
If you prefer not to use subdomains, you can use a single domain with path-based routing:
| Path | Service |
|---|---|
๐ yourdomain.com/ | Customer Storefront |
๐ง yourdomain.com/admin/ | Admin Dashboard |
๐ yourdomain.com/api/ | API Server |
In this case, create a single A record:
| Type | Name | Value | TTL |
|---|---|---|---|
| A | @ | 203.0.113.50 | 300 |
The reverse proxy configuration (next step) will handle routing by path instead of subdomain.
๐ Registrar-Specific Instructions โ
๐ข Namecheap โ
- Log in to Namecheap โ Domain List โ Manage next to your domain
- Click Advanced DNS
- Click Add New Record for each A record above
- Set Type to
A Record, Host to the subdomain name, Value to your IP
โ๏ธ Cloudflare โ
- Log in to Cloudflare โ Select your domain
- Go to DNS โ Records
- Click Add Record for each entry above
๐ต GoDaddy โ
- Log in to GoDaddy โ My Products โ DNS next to your domain
- Click Add in the Records section
- Select A type, enter the subdomain in Name, your IP in Value
๐ด Google Domains (now Squarespace) โ
- Log in to domains.google.com
- Click your domain โ DNS in the left sidebar
- Scroll to Custom records โ Click Manage custom records
- Add each A record
โก๏ธ Next Step โ
Once DNS is propagating, continue to Reverse Proxy & SSL to enable HTTPS.