After purchasing a VDS server and installing your website, you need to point your domain name to the IP address of the VDS.
For example, if you want visitors entering example.com to reach the website hosted on your VDS, the appropriate DNS records must be configured.
In this guide, we explain how to point a domain to a VDS using an A record, configure the www hostname, and troubleshoot common DNS issues.
Servers communicate over the internet using IP addresses.
For example, your VDS may use:
192.0.2.10
Instead of requiring visitors to remember this IP address, DNS allows them to use:
example.com
The basic relationship becomes:
example.com → 192.0.2.10 → VDS Server
An A record is commonly used for this purpose.
An A record connects a domain or hostname to an IPv4 address.
For example:
| Type | Name | Value |
|---|---|---|
| A | @ | 192.0.2.10 |
This points:
example.com
to 192.0.2.10.
The @ symbol commonly represents the root domain, although the exact interface may vary between DNS providers.
You primarily need:
Domain:example.com
VDS IP address:192.0.2.10
Your VDS IP address is normally available from your hosting control panel or server information.
Log in to the service currently responsible for your domain's DNS.
Look for a section such as:
DNS Management
DNS Records
DNS Zone
or:
Zone Editor
If your domain uses nameservers belonging to another DNS provider, make the changes at that provider rather than at the domain registrar.
Create a DNS record similar to:
| Field | Value |
|---|---|
| Type | A |
| Name / Host | @ |
| Value / IP | 192.0.2.10 |
| TTL | Auto or default |
Save the record.
Your root domain will then point toward the VDS IP address.
If you also want:
www.example.com
to work, create a DNS record for www.
A common configuration is:
| Type | Name | Value |
|---|---|---|
| CNAME | www | example.com |
Alternatively, www can use its own A record pointing to the same IP.
Using a CNAME can make management easier because www follows the root hostname.
If your domain was previously hosted elsewhere, an old A record may still exist.
For example:
@ → 198.51.100.20
Check that the root domain points to the intended VDS.
Do not randomly delete other DNS records.
Records such as:
may be required for your email service.
DNS changes may not become visible across every network immediately.
This process is commonly known as DNS propagation.
Some DNS resolvers may see the new record quickly, while others may temporarily continue using cached information.
The time required depends on factors such as TTL values and DNS caching.
Seeing the old server shortly after a DNS change therefore does not necessarily indicate a problem.
On Windows, open Command Prompt and run:
nslookup example.com
This allows you to check the IP address returned for the domain.
You may also use:
ping example.com
but some servers block ICMP traffic. Therefore, a failed ping does not necessarily mean DNS is incorrect.
nslookup is generally more suitable for checking DNS resolution.
DNS only sends the domain toward the correct server.
Your VDS must also know which website should handle the request.
Depending on your setup, you may need:
If you use cPanel/WHM, Plesk, DirectAdmin, or another hosting panel, make sure the domain has also been added to the correct hosting account.
Think of the process as two separate layers:
DNS: Determines which server receives the request.
Web server: Determines which website should respond.
Standard web traffic commonly uses:
TCP 80 → HTTP
TCP 443 → HTTPS
If your server firewall blocks these ports, the website may remain inaccessible even when DNS is correct.
Ensure that your firewall configuration allows the required web traffic.
After the domain points to your VDS, you can configure an SSL certificate so the website is available through:
https://example.com
You can use a free certificate such as Let's Encrypt or another suitable SSL certificate.
For many domain-validation methods, the domain must resolve correctly before the certificate can be issued successfully.
No.
Changing nameservers is not always necessary when pointing a domain to a VDS.
You can continue using your existing DNS provider and simply update the A record to your VDS IP.
Nameservers generally need to be changed only when you want another service or DNS server to manage the entire DNS zone.
A nameserver identifies where a domain's DNS records are managed.
For example:
ns1.exampledns.comns2.exampledns.com
An A record identifies the IPv4 address associated with a hostname.
For example:
example.com → 192.0.2.10
In simple terms, nameservers determine where DNS is managed, while an A record determines which IPv4 address a hostname resolves to.
If your domain uses Cloudflare nameservers, edit the DNS records from the Cloudflare DNS management interface rather than from your registrar's DNS panel.
A typical configuration may include:
A → @ → VDS_IP
and:
CNAME → www → example.com
If Cloudflare's proxy feature is enabled, DNS lookups may return Cloudflare IP addresses rather than your VDS IP. This can be normal.
An A record is used for IPv4 addresses, while an AAAA record is used for IPv6.
If your VDS has properly configured IPv6 connectivity, an AAAA record can point your domain to that IPv6 address.
Do not create an AAAA record unless IPv6 is correctly configured on the server, because an incorrect IPv6 configuration may cause connectivity problems for some visitors.
Changing only the website's A record will not normally change your email service.
However, if you replace the domain's nameservers entirely, the existing DNS records must also be recreated on the new DNS service.
Pay particular attention to:
records.
Otherwise, your website may work while your email service stops working correctly.
If the server IP changes, update the domain's A record.
For example:
Old:
example.com → 192.0.2.10
New:
example.com → 203.0.113.10
After updating the DNS record, allow time for DNS caches to refresh.
Not necessarily. You can usually keep your existing DNS provider and point the A record to the VDS IP.
An A record maps a hostname to an IPv4 address.
Usually yes. You can configure www using a CNAME or an A record.
Some users may see the new record quickly, while cached DNS information can cause the old record to remain visible for longer.
Check your web server configuration, hosting account, firewall, HTTP/HTTPS ports, and SSL configuration.
Yes. Once the domain resolves to the correct server, you can configure an SSL certificate.
Pointing a domain to a VDS primarily involves configuring the domain's DNS records with the server's IP address.
A common configuration is:
A → @ → VDS IP
and for www:
CNAME → www → root domain
However, DNS is only one part of the configuration. Your VDS web server, firewall, hosting configuration, and SSL certificate must also be configured correctly.
When using an İde Bilişim VDS service, you can point your domains to your server using the IP address assigned to your VDS and the appropriate DNS records