Connecting your domain to your server’s IP address via DNS mapping is a simple, essential step to make your website accessible. This guide walks you through linking a domain to your AvaHost VPS or dedicated server, with clear examples and tips to ensure success.
To link your domain to an IP address, make sure you have:
You can find your server’s IP address:
Example:
IP Address: 123.123.123.123
Log in to the domain registrar or DNS provider where your domain is managed. If you bought your domain through AVA.hosting, DNS management is available directly in your client panel.
Find the section called:
Now you need to create an A record, which tells DNS:
“this domain = this IP address.”
Here’s how:
Type | Name | Value (IP) | TTL |
---|---|---|---|
A | @ | 123.123.123.123 | 3600 |
A | www | 123.123.123.123 | 3600 |
Explanation:
Optional:
If you want to use subdomains (like blog.example.com), add separate A records for each.
DNS changes can take a few minutes to 24–48 hours to fully propagate worldwide.
You can check your domain status using:
On your server (especially if using Apache or Nginx), you must ensure the server responds to the domain. This is called virtual host configuration.
server {
listen 80;
server_name example.com www.example.com;
root /var/www/example;
index index.html;
}
Once configured, restart your web server:
sudo systemctl restart nginx
If yes — congratulations! Your domain is now successfully linked to your server.
Linking your domain to your server’s IP is straightforward with DNS A records and proper virtual host setup. The examples above make it easy to get your website live. Test your setup, secure it with SSL, and enjoy a seamless online presence.