Comments on: How to Point a Domain Name to VPSΒ Using A Records and Custom Nameservers https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps Fri, 01 Sep 2023 05:13:25 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Tomislav T. https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps#comment-169925 Fri, 06 Nov 2020 09:25:35 +0000 https://www.hostinger.com/tutorials/?p=9541#comment-169925 In reply to siti.

Hey siti! πŸ™‚
The examples you’ve given enable WWW so your website is accessible with WWW. However, it doesn’t exactly redirect the website to www.
You can use the following code in your .htaccess for most of the popular CMS to force a www redirect (this is a https://www.domain.com redirect, so it will force your HTTPS connection too):
RewriteEngine on
​
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

]]>
By: siti https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps#comment-151031 Fri, 28 Aug 2020 01:23:11 +0000 https://www.hostinger.com/tutorials/?p=9541#comment-151031 Does the below enable redirect to the ‘www’ version? I want example.com to be redirected to http://www.example.com

Option 1 – Using two A records
Name TTL Type Address
example.com 14400 A 153.92.211.25
http://www.example.com 14400 A 153.92.211.25

Option 2 – Using A record and CNAME
Name TTL Type Address
example.com 14400 A 153.92.211.25
http://www.example.com 14400 CNAME example.com

]]>
By: Morten https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps#comment-143110 Fri, 07 Aug 2020 06:06:22 +0000 https://www.hostinger.com/tutorials/?p=9541#comment-143110 The last part where the child servers names are also added to the primary nameserver does not seem to work.
I get the error that nameservers cannot be the same as the child server names. Any ideas?

So if the primary nameserver cannot be empty and not be the same as the child server names… What are you supposed to put there?

]]>
By: Tomislav T. https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps#comment-134330 Tue, 14 Jul 2020 07:00:20 +0000 https://www.hostinger.com/tutorials/?p=9541#comment-134330 In reply to Alejandro De Castro.

Hey Alejandro! πŸ™‚
The procedure should be the same for Linux and Windows, as you are only configuring the DNS zone. For example – setting up the A record to your VPS is just showing your domain what IP address it’s drawing content from.
The configuration within the server could be different, for which you’d need to contact your VPS provider’s support team, but the domain configuration should be exactly as it is on the guide above πŸ™‚

]]>
By: Alejandro De Castro https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps#comment-133853 Mon, 13 Jul 2020 00:59:53 +0000 https://www.hostinger.com/tutorials/?p=9541#comment-133853 in my case i have a Windows Server R2 VPS. Is there any instructions for this case?
Thank you!

]]>
By: Sandra https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps#comment-116822 Tue, 24 Mar 2020 10:12:57 +0000 https://www.hostinger.com/tutorials/?p=9541#comment-116822 Great stuff indeed. No doubt DNS propagation is a time-consuming process. I checked the tool that you mentioned for the DNS Propagation, as I was Googling for more tool, So I came across a handy online tool dnschecker.org, that provides 300+ DNS servers for lookup comparing to other tools. I shared the tool for the better help of the users.

]]>
By: Gaurav https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps#comment-106483 Sat, 03 Aug 2019 10:36:27 +0000 https://www.hostinger.com/tutorials/?p=9541#comment-106483 In reply to Gaurav.

Its in lib64

]]>
By: Gaurav https://www.hostinger.ph/tutorials/dns/how-to-point-domain-to-vps#comment-106482 Sat, 03 Aug 2019 10:33:34 +0000 https://www.hostinger.com/tutorials/?p=9541#comment-106482 there is no bind folder in etc folder ….

]]>